Old 03-01-2008, 04:41   #1 (permalink)
arda
Registered User
 
Join Date: Jan 2008
Posts: 3
On-mouse-over Timer

I'm trying to make a gif file to play once (as designed in photoshop), then to be played whenever you go over it with the mouse pointer. The problem is, once it starts playing, if you go over it with the mouse pointer, the animationi starts over. I want it to finish playing before you can play it again.

So far the code I came up with i s this:

Code:
<a href="#" onmouseout="MM_swapImgRestore()" o onmouseover="MM_swapImage('Image10','','XXXXXX.gif',1)"><img src="XXXXXX.gif" name="Image10" width="207" height="136" border="0" id="Image10" /></a>

Is there a way to put a timer or something else, to make it wait till the image stops playing the animation?

Thanks.
  Reply With Quote
Old 03-01-2008, 06:42   #2 (permalink)
proc355
Senior Member
 
proc355's Avatar
 
Join Date: Sep 2006
Location: Glasvegas
Posts: 866
havent touched an animated gif in *years* but you should be able to set it to 'play once' in the tool you created it in; cant remember if it's possible in html or not!
__________________
meh.
  Reply With Quote
Old 03-01-2008, 06:45   #3 (permalink)
Dusteh
Sir digby chicken caesar
 
Dusteh's Avatar
 
Join Date: Sep 2004
Posts: 5,412
Sounds like more control than a gif can offer to me. I'd do it in Flash.
__________________
unconsolidated isoparms
  Reply With Quote
Old 03-01-2008, 07:28   #4 (permalink)
arda
Registered User
 
Join Date: Jan 2008
Posts: 3
Actually Im trying to play this gif on a website. so the code is in html.

All I want to do is, when you are on the website, after the gif is played once, I want it to be played again when you go over the image with your mouse pointer.

Let's say stops after playing itself once. It stays still after the first play. When you go over the image with the pointer, I want it to play again, but I want it to finish playing before you can play it by going over the image again with your pointer (so it wont start over and over again whenever you go over it with your pointer).

Is there a way to block the onmouseover function after the the function is run once? ( in other words is there a way to block play for a while after you play it?)
  Reply With Quote
Old 06-01-2008, 03:35   #5 (permalink)
arda
Registered User
 
Join Date: Jan 2008
Posts: 3
is it easier with flash?
  Reply With Quote
Old 06-01-2008, 11:09   #6 (permalink)
Jayx
Now with added sarcasm.
 
Jayx's Avatar
 
Join Date: Aug 2006
Location: George, South Africa
Posts: 365
Send a message via MSN to Jayx Send a message via Skype™ to Jayx
I don't do flash, but Dusteh is right - flash will be the way to go. I'm sure one of the flash experts here can do it in 10 minutes or so.
__________________
I made 100 posts and all I got is this stupid signature.
  Reply With Quote
Old 06-01-2008, 11:12   #7 (permalink)
Shiro
shiro
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 3,283
Its probably easier with flash - if you know flash. If you don't know it, its going to be a little harder.
  Reply With Quote
Old 06-01-2008, 11:13   #8 (permalink)
Jayx
Now with added sarcasm.
 
Jayx's Avatar
 
Join Date: Aug 2006
Location: George, South Africa
Posts: 365
Send a message via MSN to Jayx Send a message via Skype™ to Jayx
Quote:
Originally Posted by haku
Its probably easier with flash - if you know flash. If you don't know it, its going to be a little harder.

haku get out of the wine
__________________
I made 100 posts and all I got is this stupid signature.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8