在DEDECMS 3.1lit里实现幻灯片效果(区别于官方,增添了选择按钮)(3)_DedeCms教程

编辑Tag赚U币
教程Tag:暂无Tag,欢迎添加,赚取U币!

//document.getElementById('oDIV' adNum).href=imgLink[adNum];
//document.getElementById('oDIV' adNum).alt=imgAlt[adNum];
document.images['oDIV' adNum].style.display = "block";
document.getElementById('f_text').innerHTML=imgtext[adNum];
//document.getElementById('focus_summary').innerHTML= imgSummary[adNum];
oTransContainer.filters[0].Play(duration=2);
if(adNum 1 > count)
adNum = 1;
else
adNum ;
}
theTimer=setTimeout("nextAd_1()", TimeOut);
}
/* nextAd_2 */
function nextAd_2(){
if(adNum < count) adNum ;
else adNum = 1;
document.images.imgInit.src=imgUrl[adNum];
document.images.imgInit.alt=imgAlt[adNum];
for (var i=1;i<=count;i ){
document.getElementById('b' i).className = button_off;
//document.getElementById('focus_summary' i).style.display="none";
}
//document.getElementById('focus_summary' adNum).style.display="none";
document.getElementById('b' adNum).className = button_on;
document.getElementById('f_text').innerHTML=imgtext[adNum];
//document.getElementById('focus_summary').innerHTML= imgSummary[adNum];
document.getElementById('b' adNum).href=imgLink[adNum];
document.getElementById('b' adNum).alt=imgAlt[adNum];
theTimer=setTimeout("nextAd_2()", TimeOut);
}
/* show_1 */
function show_1(){
document.write('<div id="focuse">');
document.write('<DIV id="oTransContainer" style="FILTER:

progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0, wipeStyle=0, motion=reverse);

WIDTH: ' imgWidth '; HEIGHT: ' imgHeight '">');
//图片
document.write('<a href="' imgLink[1] '" target="_blank" onFocus="this.blur();"><img

id="oDIV1" src="' imgUrl[1] '" width=' imgWidth ' height=' imgHeight ' border=0

align="absmiddle" alt="' imgAlt[1] '" style=' imgStyle '></a>');
for(var i=2;i<=count;i ){
document.write('<a href="' imgLink[i] '" target="_blank" onFocus="this.blur();"><img

id="oDIV' i '" src="' imgUrl[i] '" width=' imgWidth ' height=' imgHeight ' border=0

style="DISPLAY: none" alt="' imgAlt[i] '" style=' imgStyle '></a>');
}

document.write('</div>');
//document.write('<div id="focustext" style="' focustextStyle '">' imgtext[1] '</div>');
document.getElementById('f_text').innerHTML=imgtext[1];
document.write('</div>');
//document.getElementById('f_link').href=imgLink[1];
//document.getElementById('blank_pic').alt=imgAlt[1];
nextAd_1();
}
/* show_2 */

查看更多 DedeCms教程  织梦模板  织梦DedeCms视频教程  织梦dedecms专题

来源:模板无忧//所属分类:DedeCms教程/更新时间:2007-01-28
相关DedeCms教程