每日总结 5.16
今日进行了python的学习。
之后进行对于项目界面的优化处理,又进行广告的优化处理。
<div class="aside" id="aside"> <span id="s">10</span> <span>秒后关闭</span> <!-- <img alt="" src="images/mn.jpg" width='300' height='300'/> --> <a onclick="del()">关闭</a> </div>
<script type="text/javascript"> var time = 10; //时间,秒 var i = 0; function dis() { document.all.s.innerHTML = (time - i); i++; } timer = setInterval('dis()', 1000); //显示时间 timer = setTimeout('del()', time * 1000); function del(){ var div= document.getElementById("aside"); div.parentNode.removeChild(div); //删除 } var srcq="erv.png"; var srcq1="gg.webp"; function changeImg(){ var img = document.getElementById("im1"); img.src = "images/"+srcq; var s=srcq; srcq=srcq1; srcq1=s; //id传入src } var timeID; timerID = setInterval("changeImg()",2000); </script>