Page 1 of 1

mouseover script

Posted: Mon Mar 28, 2011 4:32 pm
by Edijs87
hello, im writing about problem with mouseover script.
if i move cursor on picture there's no action, i wanna know, what in this script is wrong? i put this code in file and thats all, maybe need some tags before or smth?

<div class= style="position:fixed; left:0; top:0; margin-top:193px;"><a href="LINK WHERE REDIRECT"><img src="PICTURE LOCATION" alt="" width="399" height="109" border="0" class="suppimg" id="suppimg" style="float:left; position:absolute; z-index:1000; margin-left:-377px; cursor:pointer;" onmouseover="ShowBox()" onmouseout="HideBox()" /></a></div>


thanks :)

Re: mouseover script

Posted: Mon Mar 28, 2011 6:25 pm
by danwguy
what does your Showbox() and Hidebox() functions look like in javascript, also you can try

Code: Select all

onmouseover='javascript:Showbox();'
and you are not terminating you current call should be

Code: Select all

onmouseover="Showbox();"
you need to have the semicolon at the end of your function call ;

Re: mouseover script

Posted: Mon Mar 28, 2011 7:24 pm
by fugix
also try onmouseenter()...i have found it to be more consistent than onmouseover()