Having trouble creating mouseover in menu buttons!?!
Oddly enough, I've done this before and not can't seem to find any way to do this again. I've search endlessly and tried different things and just not getting it. I even went to a button creator site! ugh. they gave this simple code...
BUT... I'm assuming there needs to be some javascript in the head part and they don't give that and I'm not even sure how to implement it?
Are there any simple scripts or can someone help with the above. The buttons I have are images. when clicked on I created another image that looks more highlighted, etc. Home, About, Gallery, Contact. I also want to make sure that when you are on Gallery, that you know where you are at and the highlighted image button remains and then changes when you change pages.
That above code works provided you have the images created correctly. However, especially if that is in a link, CSS rollovers are by far the best way of doing this. More on CSS pseudo classes.
Great wit and madness are near allied, and fine a line their bounds divide.
Thanks! Great reply back and link! At least it makes it easy to understand. But, I don't have the text separately to create an CSS like what was mentioned unless there is a similar way to do it? (for each image/menu button?)
The problem can be that if rolledover.jpg is a big file, it will take so long to load that the most will have moved out. You can preload the image, but making it as small as possible often avoids the problem anyway.
Great wit and madness are near allied, and fine a line their bounds divide.
Thanks. yeah, I went back to the code I had - thought it was working... BUT I get to my next page about.html and although I copied the menu/coding exact it does not change the images at all. ??
There also must be an easy (ha) fix or way to have one image (the highlighted one) stay that way when on a certain page. ?
I won't direct link, but maybe you'll get a better idea of what I may be doing wrong or how to figure out what I need it to do.. at drivetheimage.net
Ugh. I've been working since morning on this one. You'd think it would be simple.
i've tested this script in IE6, Opera and FF. do not forget to remove all onmouseovers and onmouseouts from every <a></a> element inside the div with id="nav"
Last edited by Padonak; 06-30-2010 at 05:31 AM.
use [code]YOUR CODE GOES HERE[/code] or burn in Hell
Bookmarks