changing filters with javascript

liunx

Guest
:D ok, i have a script that changes the filter of all the 5 images on each page, but after a set amount of time (using setTimeout) i want it to set the images back to normal, how can i do this? thanks a lotYou would have to run a seperate function the will reset them back.

Just in case you are not aware, filters are IE only

Having some code to work with really helpswell, the code looks like :

function go(){
document.images[0].style.filter="blur(strength=50)";
}

but when i want it to go back to normal after such a time, i dosn't let me, like i try to do it this way but it aint workin:

document.images[0].style.filter="";


any ideas? :confused:Take a look here, this will show you how to enable or disable filters.

My examples use the gray and xray filter


<!-- w --><a class="postlink" href="http://www.huntingground.freeserve.co.uk/style/filt_gray.htm">www.huntingground.freeserve.co.uk/style/filt_gray.htm</a><!-- w -->
 
Back
Top