在DEDECMS 3.1lit里实现幻灯片效果(区别于官方,增添了选择按钮)(3)_DedeCms教程
教程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使用拼音首字母做栏目名称
- 织梦DEDECMS站群增强版 DedeCMS搭建站群首选
- DedeCMS Error:Tag disabled:php错误的完整处理方法
- dedecms编码转换方法 gbk转UTF-8,UTF-8转GBK
- 防XSS,sql注射,代码执行,文件包含的通用代码
- DedeCms教程:优化DedeCMS搜索结果
- DedeCms教程:Linux+Apache+PHP+MySQL服务器环境(CentOS篇)
- DedeCms教程:LuManager服务器管理软件安装DEDECMS软件
- DedeCms教程:Ubuntu/Debian上安装 PHP 5.3, Nginx 和 PHP-fpm
- DedeCms教程:windows server 2003 php 环境搭建