Closed Thread Icon

Preserved Topic: onMouseover Pages that link to <a href="https://ozoneasylum.com/backlink?for=17778" title="Pages that link to Preserved Topic: onMouseover" rel="nofollow" >Preserved Topic: onMouseover\

 
Author Thread
inno
Neurotic (0) Inmate
Newly admitted

From: USA
Insane since: Jul 2000

posted posted 07-03-2000 08:49

I try the image mouseover code and it always screws up and I cannot get it to work..ever

Jestah
Maniac (V) Mad Scientist

From: Long Island, NY
Insane since: Jun 2000

posted posted 07-03-2000 09:23

Who's mouseover code did you use? I used my own weird shit that even confuses me but Im sure the Doc's code is easy to understand and I know he lets you use it as long as you keep his credits intact. Check out www.ozones.com/handson Im sure thats the best tutorial your going to find on the internet.

Jestah
Jestah91@aol.com
ICQ - 77252449

little osh
Bipolar (III) Inmate

From: Wales, UK
Insane since: Jun 2000

posted posted 07-05-2000 10:05

Hmmm...

You do know that the <IMG> onMouseOver event only works in IE don't you? To work in netscape you need to put the onMouseOver event inside the <A> tag.

Try this, and you should get the idea!


<HTML>
<HEAD>
<TITLE>OnMouseOver</TITLE>

<SCRIPT LANGUAGE="JavaScript">
var count = 0;
function changepic()
{
switch (count) {
case 0: document.mypicture.src = "yahoo2.gif"; document.bgColor ="red"; count++; break;
case 1: document.mypicture.src = "yahoo3.gif"; document.bgColor ="white"; count++; break;
case 2: document.mypicture.src = "yahoo4.gif"; document.bgColor ="blue"; count++; break;
case 3: document.mypicture.src = "bigfoot.gif"; document.bgColor ="black"; count++; break;
case 4: document.mypicture.src = "yahoo.gif"; document.bgColor ="green"; count=0; break;
}
}
</SCRIPT>

</HEAD>
<BODY bgcolor="blue">
<A href="javascript://;" onmouseover="changepic();" onmouseout="changepic();"><IMG src="yahoo.gif" name="mypicture" border=0></A>
</BODY>
</HTML>

« BackwardsOnwards »

Show Forum Drop Down Menu