Click to See Complete Forum and Search --> : Coloring Tabs in Use


kdix
04-18-2003, 01:19 PM
Our web developer is looking for a way to make tabs highlight, not just on mouse-over, but while the visitor is browsing that page. Is there a javascript function for this, or is there some other functionality that will allow this?

Many thanks,

K. Dix

DrDaMour
04-18-2003, 01:25 PM
like just randomly?


you can use the setTimeout function

setTimeout(functiontorun,timeinmilliseconds);

kdix
04-18-2003, 01:35 PM
No, not randomly -- you know, there are separate tabs for "Home", "Contact Us", "About Us", etc. When a visitor is on the Contact page, she wants the Tab saying "Contact Us" to turn red instead of blue, for example; thus, the visitor is aware of which page he's visiting just by glancing at the color difference.

Thanks!

--K

DrDaMour
04-18-2003, 01:39 PM
are the buttons in a seperate frame of the home page?

mpvirgo
04-21-2003, 09:35 AM
no this is not in separate frames, it is a top navigation with images for each subject ... home, contact us, etc...

AdamGundry
04-21-2003, 11:03 AM
Why not just edit each page to refer to the correct image? For example, on the Contact Us page change the "Contact Us" image's <img> tag to refer to a highlighted version of the image.

This is a bit of work, but it ensures the 10% or so of users who don't use Javascript can use your pages.

Adam

DrDaMour
04-21-2003, 04:57 PM
yeah, that's what i was getting at with my questions. in fact if there is only one frame, this is just about the ONLY way you could really accomplish this with javascript.

khalidali63
04-21-2003, 05:17 PM
Might not be the only way,most certainly the most straight forward way..

:D

DrDaMour
04-21-2003, 05:39 PM
that's why i said just about, not THE ONLY WAY. (if you want to nit-pick)