var time = 500; var h = 0; function addcount() { if(time>0) { time--; h = h+10; } else { return; } if(h>=300) //高度 { return; } document.getelementbyid("ads").style.display = ""; document.getelementbyid("ads").style.height = h+"px"; settimeout("addcount()",10); } window.onload = function showads() { var flag = ''; if (parseint(flag) == 1) { addcount(); settimeout("noneads()",6000); //停留时间自己适当调整 } }
| |||||||||||||||
|
|
| ||||||
|