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

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

問(wèn)下大佬,為什么沒(méi)效果??!JavaScript代碼加了之后沒(méi)什么效果

.mask{
	height:?100%;
	width:?100%;
	background:?#000;
	position:?absolute;
	top:?0;
	left:?0;
	opacity:?0.5;/*火狐、谷歌*/
	filter:?alpha(opacity=50);/*ie*/
	display:?none;
}
.searchTip{
	width:?1220px;
	height:?800px;
	position:?absolute;
	top:?0;
	left:?50%;
	margin-left:?-580px;
	display:?none;
}
.searchTip?div{
	position:?absolute;
	display:?none;
}
.searchTip?div?a{
	position:?absolute;
	/*隱藏文字*/
	text-indent:?-999px;
	overflow:?hidden;
	cursor:?pointer;
}
.searchTip?div?span{
	position:?absolute;
	text-indent:?-999px;
	overflow:?hidden;
	cursor:?pointer;
	height:?30px;
	width:?30px;
}
.stepA{
	width:?800px;
	height:?518px;
	background:?url(image/stepA_1.png)?no-repeat;
	left:?16px;
	top:?109px;
}
.stepA?a{
	top:?150px;
	left:?470px;
	width:?80px;
	height:?65px;
}?
.stepA?span{
	left:?95px;
	top:?88px;
}
.stepB{
	width:?800px;
	height:?352px;
	background:?url(image/stepB_1.png);
	top:?275px;
	left:?5px;
}
.stepB?a{
	top:?110px;
	left:?590px;
	width:?100px;
	height:?65px;
}
.stepB?span{
	left:?320px;
	top:?66px;
}
.stepC{
	width:?800px;
	height:?321px;
	background:?url(image/stepC_1.png);
	top:?315px;
	left:?0;
}
.stepC?a{
	top:?180px;
	left:?500px;
	width:?70px;
	height:?50px;
}
.stepC?span{
	top:?148px;
	left:?298px;
}
.stepD{
	width:?800px;
	height:?540px;
	background:?url(image/stepD_1.png);
	top:?156px;
	left:?5px;
}
.stepD?a{
	top:?320px;
	left:?600px;
	width:?105px;
	height:?60px;
}
.stepD?span{
	top:?253px;
	left:?262px;
}
.stepE{
	width:?800px;
	height:?488px;
	background:?url(image/stepE_1.png);
	top:?157px;
	left:?418px;
}
.stepE?a{
	top:?275px;
	left:?440px;
	width:?100px;
	height:?60px;
}
.stepE?span{
	left:?94px;
	top:?200px;
}
	<script>
		window.onload=function(){
			var?oMask=document.getElementById('mask');
			var?oSearch=document.getElementById('searchTip');
			var?aStep=oSearch.getElementsByTagName('div');
			var?aA=oSearch.getElementsByTagName('a');
			var?aClose=oSearch.getElementsByTagName('span');
			//讀取cookie
			var?res=document.cookie.substring(5);
			alert(res);
			
			//如果沒(méi)有cookie,執(zhí)行以下動(dòng)作
			if(res!="www.open.com.cn"){
				alert(res);
				//mask?父框?第一單元顯示出來(lái)
				oMask.style.display=oSearch.style.display=aStep[0].style.display="block";
				for(var?i=0;?i<aStep.length;?i++){
					aA[i].index=i;//為每一個(gè)按鈕增加一個(gè)index屬性,為后面引用的
					aA[i].onclick=function(){
						this.parentNode.style.display="none";
						if(this.index?<?aStep.length-1){
							aStep[this.index+1].style.display="block";
						}
						else?if(this.index==aStep.length-1){
							oMask.style.display=oSearch.style.display="none";
						}
					}
				}
				//關(guān)閉按鈕
				for(var?i=0;?i<aClose.length;?i++){
					aClose[i].onclick=function(){
						oMask.style.display=oSearch.style.display="none";
					}
				}
				//添加cookie
				var?oDate=new?Date();
				oDate.setDate(oDate.getDate()+30);//30天后失效
				document.cookie="name=www.open.com.cn;expires="+oDate;
			}
	
			
			
}
	</script>


正在回答

舉報(bào)

0/150
提交
取消
如何實(shí)現(xiàn)“新手引導(dǎo)”效果
  • 參與學(xué)習(xí)       46275    人
  • 解答問(wèn)題       189    個(gè)

學(xué)會(huì)用 原生JavaScript代碼和JQuery兩種方式實(shí)現(xiàn)依次顯示效果

進(jìn)入課程

問(wèn)下大佬,為什么沒(méi)效果??!JavaScript代碼加了之后沒(méi)什么效果

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

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

幫助反饋 APP下載

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

公眾號(hào)

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