第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

鼠標(biāo)只在一個(gè)a標(biāo)簽內(nèi)小范圍移動(dòng),圖標(biāo)會(huì)不停的轉(zhuǎn),這個(gè)bug怎么破

<!DOCTYPE?html>
<html>
	<head>
		<meta?charset="utf-8"?/>
		<style>
			*{margin:0;
			??padding:0;}
			#move{margin:10px?auto;
				??width:300px;
				??background:#f9f9f9;
				??border:1px?solid?#ccc;}
				??
			#move?a{display:inline-block;
					width:58px;
					height:25px;
					border:1px?solid?#ddd;
					border-radius:3px;
					background-color:#fff;
					text-align:center;
					margin:10px?17px;
					position:relative;
					padding-top:40px;
					color:#9c9c9c;
					font-size:12px;
					text-decoration:none;
					line-height:25px;
					overflow:hidden;}
			??		
			#move?a?i{display:inline-block;
					??position:absolute;
					??top:12px;
					??left:0;
					??width:100%;
					??text-align:center;
					??filter:alpha(opacity:100);
					??opacity:1;}
					??
			
			#move?a:hover{color:#f00;}
			
			#move?img{border:none;}
		</style>
		<script?type="text/javascript">
		function?getStyle(obj,attr){
	if(obj.currentStyle){
		return?obj.currentStyle[attr];
	}else{
		return?getComputedStyle(obj,false)[attr];
	}
}

function?startMove(obj,json,fn){
	clearInterval(obj.timer);
	obj.timer=setInterval(function(){
		var?flag=true;
		for(var?attr?in?json){
			var?icur=0;
			var?speed=0;
			if(attr=='opacity'){
				icur=Math.round(parseFloat(getStyle(obj,attr))*100);
			}else{
				icur=parseInt(getStyle(obj,attr));
			}
			var?speed=(json[attr]-icur)/2;
			speed=speed>0?Math.ceil(speed):Math.floor(speed);
			if(json[attr]!=icur){
				flag=false;
			}
			if(attr=='opacity'){
				obj.style.filter='alpha(opacity:'+(icur+speed)+')';
				obj.style.opacity=(icur+speed)/100;
			}else{
				obj.style[attr]=icur+speed+'px';
			}
		}
		if(flag==true){
			clearInterval(obj.timer);
			if(fn){
				fn();
			}
		}
	},30)
}
		</script>
		<script?type="text/javascript">
			window.onload=function(){
				var?oMove=document.getElementById('move');
				var?aList=oMove.getElementsByTagName('a');
				for(i=0;i<aList.length;i++){
					aList[i].onmouseover=function(){
						var?oThis=this.getElementsByTagName('i')[0];
						startMove(oThis,{top:-25,opacity:0},function(){
							oThis.style.top=30+'px';
							startMove(oThis,{top:12,opacity:100})
						})
					}
				}
			}
		</script>
	</head>
	<body>
		<div?id="move">
			<a?href="#"><i><img?src=img/hf.png?/></i><p>話費(fèi)</p></a>
			<a?href="#"><i><img?src=img/yx.png?/></i><p>游戲</p></a>
			<a?href="#"><i><img?src=img/ly.png?/></i><p>旅游</p></a>
			<a?href="#"><i><img?src=img/bx.png?/></i><p>保險(xiǎn)</p></a>
			<a?href="#"><i><img?src=img/cp.png?/></i><p>彩票</p></a>
			<a?href="#"><i><img?src=img/dy.png?/></i><p>電影</p></a>
		</div>
	</body>
</html>


正在回答

1 回答

把onmouseover改成onmouseenter

1 回復(fù) 有任何疑惑可以回復(fù)我~
#1

qq_像蘇_03760108 提問(wèn)者

非常感謝!
2016-09-15 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

鼠標(biāo)只在一個(gè)a標(biāo)簽內(nèi)小范圍移動(dòng),圖標(biāo)會(huì)不停的轉(zhuǎn),這個(gè)bug怎么破

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)