hi everybody! i have some problem, with a specific function that concern with the method filter:wave(),blur(),flip() This is the code: <html> <center> <img id="reflect" src="image.jpg"> <br> <script language="JavaScript1.2"> function f1() {setInterval("mdiv.filters.wave.phase+=10",100); } if (document.all){ document.write('<img id=mdiv src="'+document.all.reflect.src+'" style="filter:wave(strength=3,freq=8,phase=100) blur(lightstrength=40) flipv()">') window.onload=f1; } </script> </center> </html> Code (markup): function setInterval- how does it help the function f1 to repeat itself- it seems that the value "10" is an increament for phase() but what does it do exactly? and does 100 is used as a stop condition? need your help guys quickly !!! thanx progfrog
<html> <center> <img id="reflect" src="http://images.google.ru/intl/en_ALL/images/images_hp.gif"> <br> <script language="JavaScript1.2"> function f1() { var ourInterval = setInterval("mdiv.filters.wave.phase+=10", 10); } if (document.all){ document.write('<img id=mdiv src="'+document.all.reflect.src+'" style="filter:wave(strength=3,freq=8,phase=100) blur(lightstrength=40) flipv()">') window.onload=f1; } </script> </center> </html> Code (markup): 100 is time in milliseconds. the first arg -->"mdiv.filters.wave.phase+=10" will be executed every 1/10 sec (100ms)