I Don't know any javascript and I need to make the navigation button change a repeated image when it its hovered and another when clicked on. A lot like the buttons from the apple site, at the top.
:drool:
Edit:
anyone?
I Don't know any javascript and I need to make the navigation button change a repeated image when it its hovered and another when clicked on. A lot like the buttons from the apple site, at the top.
:drool:
Edit:
anyone?
Last edited by plecosword; 09-26-2009 at 10:06 AM. Reason: Automerged Doublepost
This is done using CSS.
Here is the code:Code:a.swap { background-image:url(image1.jpg); } a.swap:hover { background-image:url(image2.jpg); }HTML Code:<a href="#" class="swap">The actual link</a>
Last edited by xav0989; 09-26-2009 at 10:31 AM.
█ Xavier L | Community Public Relations Manager (Free Hosting Support)
█ Yes, my position is too cool to even exist!
█ How am I helping? Rate this post by clicking theicon below! (this is even better than "liking" a post)
█ Terms of Service | Acceptable Use Policy | x10Hosting Wiki
Thanks, it works, but it only changes the background behind the txt, not the whole button. Im guessing I will either have to create the full size image for the button rather than having it repeating, or use Javascript