ylsunyuan技术论坛
标题:
简易的JS广告窗口
[打印本页]
作者:
sun
时间:
2016-6-2 15:59
标题:
简易的JS广告窗口
<style>
#nav { width:150px; height: 300px; border: 1px solid #D4CD49; background-color: #c3c3c3; position:fixed;right:0;top:20%; overflow: hidden; }
</style>
<div id="nav" onclick="missq()"><p>2222</p><p>2222</p><p>2222</p><p>2222</p></div>
<p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p><p><a href = "">111111111111</a></p>
</BODY>
<SCRIPT type="text/javascript">
function missq(){
if (document.getElementById('nav').style.width == "10px") {
document.getElementById('nav').style.width = "150px";
}else{
document.getElementById('nav').style.width = "10px";
}
}
</SCRIPT>
复制代码
欢迎光临 ylsunyuan技术论坛 (http://bbs.ylsunyuan.com/)
Powered by Discuz! X3.2