Chocolate570 Posted June 12, 2006 Share Posted June 12, 2006 I've always wondered---would it be possible to implement javascript into a page, so that when a user mouses over an image, javascript would cause the image to do the following:1. Change in SRC to a animated gif.2. Wait x seconds where x is the length of the gif3. Change the image to a rolled-over imageWould this be possible if we knew how long the gif took to run, if the image were preloaded, and the browser had animated gifs enabled?What do you guys think? Link to comment Share on other sites More sharing options...
Jack McKalling Posted June 12, 2006 Share Posted June 12, 2006 I think there should be a way like this.But do you know this can be done by FLASH alone? Just to notice Link to comment Share on other sites More sharing options...
scott100 Posted June 12, 2006 Share Posted June 12, 2006 What do you guys think?Yes, when the user mouses over a image call a function that changes it's src to an animated gif and use setTimeOut()_ to change it to a rollover after it the animation has ended Flash? who needs flash Link to comment Share on other sites More sharing options...
Chocolate570 Posted June 12, 2006 Author Share Posted June 12, 2006 Flash is disabled more over the browser population than javascript. I'd rather have, say, a 100 people not access my web page than a million. (not exact figures)That's what I was thinking. Can anyone find any impracticalities about this suggestion? (did i spell that right?) Link to comment Share on other sites More sharing options...
scott100 Posted June 12, 2006 Share Posted June 12, 2006 Flash is disabled more over the browser population than javascript.Not only that but you are now required to Activate Objects in Internet Explorer by clicking on them which totally ruins the effect Link to comment Share on other sites More sharing options...
Jack McKalling Posted June 12, 2006 Share Posted June 12, 2006 Yeah, that's right, downside of flash :)But rather downside of <object> Link to comment Share on other sites More sharing options...
aspnetguy Posted June 12, 2006 Share Posted June 12, 2006 I have flash disabled on y browser at work. For some reason flash and animated gif run slowly over our network. Doesn't make sense.Anyway I am not a flash fan anyways...except for miniclip.com Link to comment Share on other sites More sharing options...
Kosher Kid Posted June 12, 2006 Share Posted June 12, 2006 everyone is talking about flash, no one is talking about chocolate's idea... Link to comment Share on other sites More sharing options...
aspnetguy Posted June 12, 2006 Share Posted June 12, 2006 it has been said that it is possile but I have no idea how to do it. Link to comment Share on other sites More sharing options...
scott100 Posted June 12, 2006 Share Posted June 12, 2006 everyone is talking about flash, no one is talking about chocolate's idea...<{POST_SNAPBACK}> See post no.3 He had a good idea of how it would work already and was asking what we thought. Link to comment Share on other sites More sharing options...
Chocolate570 Posted June 12, 2006 Author Share Posted June 12, 2006 Like Scott says, i have the idea and base on how it would work, since it's not difficult at all as long as you have the correct data. What I'm asking for is if anyone can find any downsides about this idea. I don't want to implement it if doing CSS/javascript regular image rollovers have less cons. Link to comment Share on other sites More sharing options...
wannabe_god Posted June 16, 2006 Share Posted June 16, 2006 Do you know that .gif images don't need to have a loop? So that they play once and stay at the last image? You can choose loop or no loop wit unfreez, so if you choose no loop, and use that non looping gif as rollover... ^^ Link to comment Share on other sites More sharing options...
Chocolate570 Posted June 16, 2006 Author Share Posted June 16, 2006 Yup, I knew that. I just forgot. Thanks for pointing it out Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now