Forum Moderators: open

Message Too Old, No Replies

onclick, onmouseover & onmouseout Problem

         

Buster

1:23 pm on Sep 18, 2003 (gmt 0)

10+ Year Member



Hi all

I have a Problem with a Link-Button. When the Link
is active the Button goes to the onmouseout status.

When Page open Button is ButtonA
When Mouse is over ButtonA change to ButtonB
-->When Mouse is out ButtonB change to ButtonA
When I click ButtonA(change to Button) the Link was open,
but ButtonB change to ButtonA when Mouse is out.
I will that the clicked ButtonA remain ButtonB and there
exist none Link on ButtonB until a new Link was clicked
ButtonC or so.

<a href="link" target="frame1" onclick="document.all.pic.src='ButtonB.gif'" onMouseOver="document.all.pic.src='ButtonB.gif'"
onMouseOut="document.all.pic.src='ButtonA.gif'">
<img name="pic" src="ButtonA.gif" ></a>

Can anyone help a beginner

greets
Buster

korkus2000

1:41 am on Sep 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld Buster,

I don't really understand the question. Are you asking how to make the button work after mouseout because it becomes inactive, or something else?

Buster

8:23 am on Sep 19, 2003 (gmt 0)

10+ Year Member



Hi Korkus2000

jepp when the Button was pressed and the new Frame is open,
then on mouseout the Button looks like inactive. The Visitor don`t see
which Button is active. Thats my first Problem.

After i will have the active Button not as link.
When a new Button was Pressed the active Button change
to his normal State.

greets
Buster