-
廣告 1查看全部
-
妹子英語加點油哦!查看全部
-
注意原先關閉按鈕中的display:none; 在面點擊參數中修改為.show{display:block;}時要注意css的樣式優先級, 要在.show之前加上 #tipCon .show{display:block;}查看全部
-
布局:查看全部
-
頂部廣告:查看全部
-
右下角彈窗廣告:查看全部
-
var $ = function(id){ return document.getElementById(id); } ($ 是變量,可以是任意名字)查看全部
-
1.position:fixed;相對瀏覽器窗口固定定位 2.javascript:void(0);表示一個死鏈接,點擊后無任何效果 3.className 添加樣式 4.封裝document.getElementById()查看全部
-
<a href="javascript:void(0);" id="closeBtn"></a>語句中javascript:void(0);表示一個死循環,沒有實際效果查看全部
-
fixed相對瀏覽器固定定位查看全部
-
html結構查看全部
-
js完美運動框架寫法查看全部
-
jquery寫法查看全部
-
<div id="ad"><img src="ad.png" width="960" height="385"/><span>X</span></div> <div id="content"><img src="數字商品-10-23.jpg" /></div> #ad span{cursor: pointer;}鼠標移上是小手的樣式 <script>通過#ad的margin-top來制作 var mt=-385; var ad=document.getElementById('ad'); var span=ad.getElementsByTagName('span')[0]; var timer=null; span.onclick=function(){ ad.style.marginTop='-385px'; } setTimeout(function(){ timer=setInterval(function(){ if(mt!=0){ mt+=5; ad.style.marginTop=mt+'px'; }else{ clearInterval(timer); setTimeout(function(){ timer=setInterval(function(){ if(mt!=-310){ mt-=5; ad.style.marginTop=mt+'px'; }else{ clearInterval(timer); span.style.display='block'; } },30); },2000); } },30); },2000); </script>查看全部
-
<div id="ad"><img src="ad.png" width="960" height="385"/></div>img外面必須包著div,不能直接操縱img,那樣圖片會變形展開 <div id="content"><img src="數字商品-10-23.jpg" /></div> <script> var h=0; var ad=document.getElementById('ad'); var timer=null; setTimeout(function(){ timer=setInterval(function(){ if(h<385){ h+=5; ad.style.height=h+'px';別忘了寫px ad.style.display='block'; }else{ clearInterval(timer); setTimeout(function(){ timer=setInterval(function(){ if(h>0){ h-=5; ad.style.height=h+'px'; }else{ clearInterval(timer); } },30); },3000); } },30); },3000); </script>查看全部
舉報
0/150
提交
取消