可折叠对联代码

2016-07-07 16:04 来源:www.chinab4c.com 作者:ecshop专家

<p>
<script>
var bbcontent='<embed src="http://www.ahdm.cn/2008/dl1.swf" width="130" height="350">';
var bbcontent2='<embed src="http://www.ahdm.cn/2008/dl2.swf" width="130" height="350">';
var mmcontent='<embed src="http://www.ahdm.cn/2008/dl3.swf" width="17" height="300">';

document.write('<div id="ad01a" style="Z-INDEX:99;OSITION:absolute;visibility:hidden">'+mmcontent+'<br><div style="padding:5px 0; background-color:#cccccc;text-align:center"><a onclick="huang2()" style="cursor:hand">重<br />播</a></div></div>');
document.write('<div id="ad01b" style="Z-INDEX:99;OSITION:absolute">'+bbcontent+'<br><div style="padding:5px 0; background-color:#cccccc;text-align:right"><a onclick="huang1()" style="cursor:hand">关闭</a>&nbsp;</div></div>');
document.write('<div id="ad02a" style="Z-INDEX:100; POSITION:absolute;visibility:hidden">'+mmcontent+'<br><div style="padding:5px 0; background-color:#cccccc;text-align:center"><a onclick="huang2()" style="cursor:hand">重<br />播</a></div></div>');
document.write('<div id="ad02b" style="Z-INDEX:100; POSITION:absolute">'+bbcontent2+'<br><div style="padding:5px 0; background-color:#cccccc">&nbsp;<a onclick="huang1()" style="cursor:hand">关闭</a></div></div>');


var ie=document.all && !window.opera
var dom=document.getElementById
iebody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
objrefad01a=(dom)? document.getElementById("ad01a") : document.all.ad01a;
objrefad01b=(dom)? document.getElementById("ad01b") : document.all.ad01b;
objrefad02a=(dom)? document.getElementById("ad02a") : document.all.ad02a;
objrefad02b=(dom)? document.getElementById("ad02b") : document.all.ad02b;
var scroll_top=(ie)? iebody.scrollTop : window.pageYOffset
var docwidth=(ie)? iebody.clientWidth : window.innerWidth
docheight=(ie)? iebody.clientHeight: window.innerHeight
objrefad01a.style.left=0+"px";
objrefad01a.style.top=203+"px";

objrefad01b.style.left=0+"px";
objrefad01b.style.top=203+"px";

objrefad02a.style.right=0+"px";
objrefad02a.style.top=203+"px";

objrefad02b.style.right=0+"px";
objrefad02b.style.top=203+"px";


function huang1(){
objrefad01a.style.visibility="visible";
objrefad02a.style.visibility="visible";
objrefad01b.style.visibility="hidden";
objrefad02b.style.visibility="hidden";
}
function huang2(){

objrefad01b.style.visibility="visible";
objrefad02b.style.visibility="visible";
objrefad01a.style.visibility="hidden";
objrefad02a.style.visibility="hidden";
}


moveR();
function moveR() {
var ie=document.all && !window.opera
var scroll_top=(ie)? iebody.scrollTop : window.pageYOffset;
objrefad01b.style.top=scroll_top+203+"px";
objrefad02b.style.top=scroll_top+203+"px";
objrefad01a.style.top=scroll_top+203+"px";
objrefad02a.style.top=scroll_top+203+"px";
setTimeout("moveR()",80)
}
setTimeout("huang1()",5000)
</script>
</p>


index.rar (870 Bytes)

回答:
支持一下~~~

怎么把SWF改成图片呢亲?

怎么弄呢?

厉害!强~~~~没的说了!












垃圾站厂http://www.fwgj.net

呵呵,全是代码看得眼都 花了。