This question borders between HTML and JS.
I would like to have one ALT tag for a Button (IMG src link) when the user
creates an onMouseOver event and a second Alt tag displayed onMouseOver if
that page is already current in the browser.
Can I assign the ALT tag text to a global variable and change the value of
the global variable when certain conditions exist, therefore having the ALT
Tag display dynamic messages...?
e.g.. HOME button displays: "Visit the Home page?" when the user is on a
different page, but I'd like the message to read: "You are currently viewing
this page!" when the Home page is current in the browser and the user
Mouse's Over the Home button... I've already added scripts to the
onMouseOver event that updates the status line to reflect this, but now the
Alt text is out of sync.
Any help would be appreciated.
Thanx,
Litron
I would like to have one ALT tag for a Button (IMG src link) when the user
creates an onMouseOver event and a second Alt tag displayed onMouseOver if
that page is already current in the browser.
Can I assign the ALT tag text to a global variable and change the value of
the global variable when certain conditions exist, therefore having the ALT
Tag display dynamic messages...?
e.g.. HOME button displays: "Visit the Home page?" when the user is on a
different page, but I'd like the message to read: "You are currently viewing
this page!" when the Home page is current in the browser and the user
Mouse's Over the Home button... I've already added scripts to the
onMouseOver event that updates the status line to reflect this, but now the
Alt text is out of sync.
Any help would be appreciated.
Thanx,
Litron
Comment