PDA

View Full Version : CSS/Javascript help greatly needed




Mike Teezie
Jan 24, 2005, 01:47 PM
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 (www.mojoware.net) is what it looks like as of right now, as someone outside the company designed it.

Here (http://dopertees.com/mojoware/home.htm) 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 (http://mojoware.net/mens/index.html). 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 (http://mojoware.net/mens/two.html) 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
Jan 24, 2005, 05:15 PM
I would suggest passing the image location in as a second argument to your showPic() function

...
function showPic (whichpic, imageURL) {
if (document.getElementById) {
currentItem=whichpic.id;
document.getElementById('placeholder').src = imageURL;
...


and your links would look like this


<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
Jan 24, 2005, 10:33 PM
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
Jan 25, 2005, 10:34 AM
I would suggest passing the image location in as a second argument to your showPic() function

...
function showPic (whichpic, imageURL) {
if (document.getElementById) {
currentItem=whichpic.id;
document.getElementById('placeholder').src = imageURL;
...


and your links would look like this


<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
Jan 25, 2005, 05:54 PM
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. :(