mouseover script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Edijs87
Forum Newbie
Posts: 2
Joined: Mon Mar 21, 2011 5:39 pm

mouseover script

Post 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 :)
danwguy
Forum Contributor
Posts: 256
Joined: Wed Nov 17, 2010 1:09 pm
Location: San Diego, CA

Re: mouseover script

Post 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 ;
fugix
Forum Contributor
Posts: 207
Joined: Fri Mar 18, 2011 8:01 pm

Re: mouseover script

Post by fugix »

also try onmouseenter()...i have found it to be more consistent than onmouseover()
Post Reply