var widths=282;
var heights=164;
var counts=6;
img1=new Image ();img1.src='h.jpg';
img2=new Image ();img2.src='ht.jpg';
img3=new Image ();img3.src='http.jpg';
img4=new Image ();img4.src='http_2314441T.jpg';
img5=new Image ();img5.src='htt_1U455230.jpg';
img6=new Image ();img6.src='htt.jpg';
url1=new Image ();url1.src='网址';
url2=new Image ();url2.src='网址';
url3=new Image ();url3.src='网址'';
url4=new Image ();url4.src='网址'';
url5=new Image ();url5.src='网址'';
url6=new Image ();url6.src='网址'';
var nn=1;
var key=0;
function change_img()
{if(key==0){key=1;}
else if(document.all)
{document.getElementById("pic").filters[0].Apply();document.getElementById("pic").filters[0].Play(duration=2);}
eval('document.getElementById("pic").src=img'+nn+'.src');
eval('document.getElementById("url").href=url'+nn+'.src');
for (var i=1;i<=counts;i++){document.getElementById("xxjdjj"+i).className='axx';}
document.getElementById("xxjdjj"+nn).className='bxx';
nn++;if(nn>counts){nn=1;}
tt=setTimeout('change_img()',4000);}
function changeimg(n){nn=n;window.clearInterval(tt);change_img();}
document.write('');
document.write('
');
document.write('
');
document.write('
');
for(var i=1;i'+i+'');}
document.write('
');
change_img();
把上面写成JS文件 在用 就可以了!
|
文件: |
幻灯片.rar |
大小: |
1KB |
下载: |
下载 | |