简易的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>
页:
[1]