floating image stop while onmouseover

Discussion in 'JavaScript' started by srichanti007, Oct 25, 2009.

  1. #1
    i hv a problem is that i created a floating image with divs here the code is working fine, but here i want mouseover event code for pausing the image...it means while my image is floating i place the mouse pointer over the image then it should pause and when i mouse out of the image it should be float again. Is there any help for this problem i struck up with this pls help...
     
    srichanti007, Oct 25, 2009 IP
  2. zeeside

    zeeside Greenhorn

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #2
    depends on how you got the image to start floating in the first place. If you triggered a function, let's say "startFloat()" to get it to float, then you would need a function that does the inverse of what startFloat() does eg. "stopFloat()" . You would then trigger "stopFloat()" in the mouseover handler for the floating image or div

    eg. <img src="/image.jpg" onmouseover="stopFloat();" onmouseout="startFloat()" />
     
    zeeside, Nov 3, 2009 IP