mouse over to change image - link - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Skype & Technology (/forumdisplay.php?fid=9) +---- Forum: Tech Talk (/forumdisplay.php?fid=17) +----- Thread: mouse over to change image - link (/showthread.php?tid=59394) mouse over to change image - link by DJKAL on 05-14-2006 at 11:18 PM
i have to create an image for a link that when you mouse over it, it fades into another image. RE: mouse over to change image - link by Supersonicdarky on 05-14-2006 at 11:21 PM
http://academ.hvcc.edu/~kantopet/old/javascript/i...parent=basic+dhtml RE: mouse over to change image - link by DJKAL on 05-14-2006 at 11:24 PM thanks. though it is important that it fades slowly. say over the time of 2 or 3 seconds. RE: mouse over to change image - link by Supersonicdarky on 05-14-2006 at 11:25 PM
found it RE: mouse over to change image - link by DJKAL on 05-14-2006 at 11:55 PM
it didnt work RE: mouse over to change image - link by vaccination on 05-15-2006 at 03:58 PM i no you can make 2 images fade into each, taking as long as you like, other in flash but im not sure about the actionscript.... i will try to find out for you RE: mouse over to change image - link by t1a0s on 05-15-2006 at 04:43 PM If I remember rightly, the best way to do that in flash is by using a movie clip as a button. I came across a useful tutorial on how to do it before, I'll try and dig it up. RE: mouse over to change image - link by vaccination on 05-15-2006 at 05:14 PM
ahh i remember now you have to create a image ... convert it to a button then once inside the button use the special timeline to make the button change when it is moused over all you have to do is put the second image in the area for the mouse over.... ergh if only my flash was working i would create a screenshot! RE: mouse over to change image - link by matty on 05-15-2006 at 05:45 PM
http://www.mandarindesign.com/fadejs.html RE: mouse over to change image - link by Matti on 05-15-2006 at 06:24 PM
I've written this special for you. code:This is how you should use it on your button: code:The only restriction is that it will only work in Internet Explorer 5.5 or higher. It's good to use this since 80% of the internet users are using IE 5.5+, but you can use a Flash animation as replacement if you want. It's your choice! RE: mouse over to change image - link by L. Coyote on 05-15-2006 at 07:04 PM Why not simply make the second image an animated GIF with the fading cycle? RE: RE: mouse over to change image - link by Matti on 05-16-2006 at 05:22 PM
quote:Because if you would do so, it will continue fading in and out even when the user doesn't move his mouse on it. And we don't want that, do we? RE: mouse over to change image - link by DJKAL on 05-16-2006 at 07:08 PM
quote: nope - must be moused over RE: mouse over to change image - link by Plik on 05-16-2006 at 07:36 PM
quote:No it wouldn't. If you make the gif so it only plays through once, then change from the first image to the animated gif when someone mouses over using simple js. And once they mouse out again use simple js to change it back again IMO this is the easyest and best solution so far RE: mouse over to change image - link by DJKAL on 05-16-2006 at 07:55 PM i dont want that though. for the best effect i want the black silhoueete version then fade slowly into colour upon mouse over and at no other point RE: mouse over to change image - link by Plik on 05-16-2006 at 08:15 PM
quote: Thats exactly what what i said can do perhaps i didn't explain it well. The image starts beeing the black silhouette version and stays like that until some one hovers over the image. Then, using js, you change the image to your gif. This gif is an animation of the black silhouette fading to colour, and the last frame is how you want it to be once its fully faded. When you save this gif, choose to only have it play through once, so it plays from the silhouette to colour then stops on the last frame. And then you can either use the same method to fade back too the silhouette or just switch back to the origional image. Hope that makes more sense, i would make an example but i really have no time at all RE: mouse over to change image - link by DJKAL on 05-16-2006 at 08:18 PM
thanks Plik. that does make more sense. i have exams starting tomorrow and cant revise atall. but at my next chance i'll sort it and let you know if it does/n't work |