Jump to content

onload trouble..


mozg4d
 Share

Recommended Posts

<script>
var state=0
function fade(obj, de, st){ e=obj; s=st; if(!state) setTimeout("fadeio(e,s)",de); }
function fadeio(obj, st){
e=obj
s=st; state=0;
e.style.opacity=Number(e.style.opacity)+s;
if(navigator.appName=="Microsoft Internet Explorer") e.filters.alpha.opacity=Number(e.filters.alpha.opacity)+s*100;
if(e.style.opacity<1 || e.style.opacity>0) {state=1; setTimeout("fadeio(e,s)",25);}}
</script>
<img style="opacity:1;filter:alpha(opacity=100)" src="1.jpg" onload = fade(this,100,-0.1)>
<img style="opacity:1;filter:alpha(opacity=100)" src="2.jpg" onload = fade(this,100,-0.1)>

Нужно чтобы картинки исчезали обе, а исчезает только одна... есть идеи?

Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy