PDA

View Full Version : change the images from just changing to fading in when changed to another image


chris_angell
10-02-2002, 04:06 PM
HELLO :(

I am trying to take this script, a simple script that swaps images;

function movepic(img_name,img_src) {
document[img_name].src=img_src;
}

but I am now trying to get it so the images fade in as well and out if possible, at the moment they just change, I have been trying but recently my brain doesn't work :confused:

here is what I tried :(

function movepic(img_name,img_src) {
img_name.filters.alpha.opacity=img_src.filters.alpha.opacity+10
setTimeout(+ ')',100)
}

I just gave up

if you can help, that will be great .. thanks

beetle
10-02-2002, 05:09 PM
Give this a look...

http://www.cs.utexas.edu/users/chrisken/alphaapi.html

RoyW
10-02-2002, 08:24 PM
You might try my Fading Rollovers (http://www.javascript-fx.com/fade_rollovers/index.html)