CSS/Javascript help greatly needed

Mike Teezie

macrumors 68020
Original poster
Nov 20, 2002
2,205
1
Like I stated in a previous thread - the company I worked for tapped me to become our web developer, even though I know exactly nothing about it. I'm trying to learn.

What I am working on right now is a redesign of our wholesale site.

Here is what it looks like as of right now, as someone outside the company designed it.

Here is the new page I am working on.

My bosses are digging the look so far, and they want to implement the old way of navigating through the shirts, just like it is here. You click on the thumbnails, and you get a larger image right there on the same page.

I've tried to do that, but I have run into some problems. I got the thumbnails and descriptions into the page, but I can't get the full size image to show up. This is what I have so far.

If anyone could help me out with this, I would really, really, appreciate it. I've been working on this all morning, and just simply lack the knowledge to figure it out.

Thanks so much.
 

jeremy.king

macrumors 603
Jul 23, 2002
5,479
1
Fuquay Varina, NC
I would suggest passing the image location in as a second argument to your showPic() function
PHP:
...
function showPic (whichpic, imageURL) {
 if (document.getElementById) {
     currentItem=whichpic.id;
 document.getElementById('placeholder').src = imageURL;
...
and your links would look like this

PHP:
<li><a onclick="return showPic(this, '../images/mens/M_wolf.jpg')" href="#" title="Wolf Thermal"><img src="../images/mens/thumbnails/M_wolf.jpg"/></a></li>
Good Luck.

PS. If this is something your employer wants you to do, perhaps you could negotiate some proper training in the web development arena. Company paid training isn't always a bad thing.
 

snkTab

macrumors 6502a
Nov 13, 2004
579
0
Cincinnati, OH
kingjr3 said:
Company paid training isn't always a bad thing.
It is when they don't have anyone to do the mail and you get stuck with it. I AM NOT A MAILBOY!

not technically 'training' but you had to be taught a lot of processing of all different forms also
 

Mike Teezie

macrumors 68020
Original poster
Nov 20, 2002
2,205
1
kingjr3 said:
I would suggest passing the image location in as a second argument to your showPic() function
PHP:
...
function showPic (whichpic, imageURL) {
 if (document.getElementById) {
     currentItem=whichpic.id;
 document.getElementById('placeholder').src = imageURL;
...
and your links would look like this

PHP:
<li><a onclick="return showPic(this, '../images/mens/M_wolf.jpg')" href="#" title="Wolf Thermal"><img src="../images/mens/thumbnails/M_wolf.jpg"/></a></li>
Good Luck.

PS. If this is something your employer wants you to do, perhaps you could negotiate some proper training in the web development arena. Company paid training isn't always a bad thing.
Thanks a ton for trying to help me out.

For whatever reason, that didn't seem to sort the problem out. The problem remains, the image won't show up when the thumbnails are clicked.

It's really odd, and very frustrating.

Any other ideas?

Again, thanks for taking a look at it.
 

snkTab

macrumors 6502a
Nov 13, 2004
579
0
Cincinnati, OH
Mike Teezie said:
Like I stated in a previous thread - the company I worked for tapped me to become our web developer, even though I know exactly nothing about it.
you know what sucks. when you teach someone web developing for say one class, and then in another class when you have to do a web development project with them, you do all the work yourself cause they are :confused: . also, you have some very nice websites under your belt as well as well as lots of knowledge about database, scripting, project management, and actually design work and the other person in question is of course :confused: because you tried to teach him html but they were too stupid to understand. oh yeah, there's more. you both apply for the same web development job that requires the above said abilities and they get it. BECAUSE ITS A GIRL.

And now I have a ****** job (finally, but still it sucks), and it's not her fault she got the job so I actually help her.

also, i lost another job to another friend (girl) for a database admin job for a defense contractor, when I've worked with oracle, db2, sql and she only knew MS access. they ruled this one because she had database experience (actually job not freelance or classwork.) I even built the access database for her old job. :(
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.