到周末了,明天該總結一下了,感覺學到了些東西,又感覺沒學多少東西,具體明天再分析吧,先來看看今天要分析的問題。
這樣的圖片相比大家都很熟悉:
復制代碼 代碼如下:
<span> <div>
<div>
<p><a href="#" src="http://www.survivalescaperooms.com/uploads/allimg/140523/0Z31055O_0.jpg?201442194629">
復制代碼 代碼如下:
<span><script type="text/javascript">
var timer=null;
var count=0;
var tip=function(position,target,speed){
clearInterval(timer);
timer=setInterval(function(){
if(count>position.offsetWidth){
clearInterval(timer);
}else{
position.style.right+=window.count+"px";
window.count++;
};
}, speed);
};
function showTip(){
var position=document.getElementById("shareLeft");
tip(position,document.body.clientWidth,1000);
};
</script></span>
新聞熱點
疑難解答
圖片精選