兼容ie7 ie6 ie8 ff对联广告代码
这款对联广告代码,超级简单,并且 兼容ie7 ie6 ie8 ff,实在是很少见一款代码,只要几话就可以实例兼容多浏览器了。
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<title>兼容ie7 ie6 ie8 ff对联广告代码</title>
</head><body>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<script>
function rightbottomad(cid)
{
var abc = document.getelementbyid(cid);
abc.style.top = document.documentelement.scrolltop+document.documentelement.clientheight-80+"px";//20是这个层的高度;
settimeout(function(){rightbottomad(cid);},50);
}
function closediv()
{
document.getelementbyid('tuad').style.visibility='hidden';
}
document.write('<div id="tuad" style="position:absolute;right:0;"><a href="http://www.zzzyk.com" ><img src="/xf/www.zzzyk.com/nn.png" /></a></div>');
document.write('<div id="tuad1" style="position:absolute;left:0;"><a href="http://www.zzzyk.com" ><img src="/xf/www.zhutiai.com/nn.png" /></a></div>');
rightbottomad('tuad');
rightbottomad('tuad1');// 网页特效 document
</script>
</body>
</html>
补充:网页制作,js教程