...

View Full Version : JavaScript Rollover Button - How Can I...



pumpin_kutz
12-28-2005, 08:38 PM
HELP...
I'm new to JavaScript and I am trying to figure out how to do the following...
I'm using a template for a website with rollover navagation. After a nav button is pressed I want there to be an image swap showing that you are currently viewing (for example) the "about us page". How do I do this with JavaScript?

Thanks for any help you can offer.

_Aerospace_Eng_
12-28-2005, 10:01 PM
Can you post a link to your site please?

pumpin_kutz
12-28-2005, 11:53 PM
The link to the site is http://grayscrossinghome.typetmedia.com

_Aerospace_Eng_
12-29-2005, 12:41 AM
Its only 5 pages why not just change the image manually for each page?

pumpin_kutz
12-29-2005, 01:21 AM
Eventually I'll need to know so I might as well try to learn it now. It would be a good thing to know for when I end up working on a site that has much more content.

_Aerospace_Eng_
12-29-2005, 04:09 AM
I'm not too sure how efficient this would be if done in javascript, you would need to check what page was loaded and then spit out the correct image. Your script could be come huge if you have a lot of pages. Read this little tut (http://bonrouge.com/br.php?page=current).



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum