四年级下册音乐教案:几张图片自动交换的DHTML代码是什么?
刚刚这个代码不可以呀
DHTML不清楚了,HTML的这里我有一个:
<script language=javascript>
var imgUrl=new Array();
var imgLink=new Array();
var imgTitle=new Array();
var adNum=0;
var it=1;
imgUrl[it]="images/newspic/1.jpg";
imgLink[it]="#";
imgTitle[it++]="集团公司开展三项制度改革";
imgUrl[it]="images/newspic/2.jpg";
imgLink[it]="http://www.nmgmh.com/news/list.asp?id=35";
imgTitle[it++]="劳动者表彰大会";
imgUrl[it]="images/newspic/3.jpg";
imgLink[it]="http://www.nmgmh.com/news/list.asp?id=35";
imgTitle[it++]="集团公司五一文艺会演";
var imgPre=new Array();
var j=0;
for (i=1;i<=3;i++) {
if( (imgUrl[i]!="") && (imgLink[i]!="") && (imgTitle[i]!="") ) {
j++;
} else {
break;
}
}
function playTran(){
if (document.all){
document.imgInit.filters[0].play();
}
}
function nextAd(){
if(adNum<j)adNum++ ;
else adNum=1;
if (document.all){
document.imgInit.filters[0].Transition=26;
document.imgInit.filters[0].apply();
}
document.images.imgInit.src=imgUrl[adNum];
title.innerHTML=(imgTitle[adNum]);
playTran();
theTimer=setTimeout("nextAd()", 6000);
}
function goUrl(){
jumpUrl=imgLink[adNum];
jumpTarget='_blank';
if (jumpUrl != ''){
if (jumpTarget != '')
window.open(jumpUrl,jumpTarget);
else
location.href=jumpUrl;
}
}
<script>
<a href="javascript:goUrl()" target="_self"><img s="FILTER: progid:DXImageTransform.Microsoft.RevealTrans(duration=1,transition=3);border-color:#33CCCC;color:#33CCCC;margin-bottom:0px" src="javascript:nextAd()" width="180" height="135" border="0" name=imgInit></a>