Effect:
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/84/88/wKiom1eTOPaRia-cAAuVgtPcTdw274.png-wh_500x0-wm_3 -wmp_4-s_84464240.png "style=" Float:none; "title=" Qq20160723172830.png "alt=" Wkiom1etoparia-caauvgtpctdw274.png-wh_50 "/>
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/84/88/wKiom1eTOPuz0y91AAsEqPDGmYQ321.png-wh_500x0-wm_3 -wmp_4-s_1555323003.png "style=" Float:none; "title=" Qq20160723172844.png "alt=" Wkiom1etopuz0y91aaseqpdgmyq321.png-wh_50 "/>
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/84/88/wKioL1eTOQCjbn5BAAhsMWtjk0k550.png-wh_500x0-wm_3 -wmp_4-s_2045605497.png "style=" Float:none; "title=" Qq20160723172855.png "alt=" Wkiol1etoqcjbn5baahsmwtjk0k550.png-wh_50 "/>
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/84/88/wKiom1eTOQvSL91oABaaC7M6pyE476.png-wh_500x0-wm_3 -wmp_4-s_1516300508.png "style=" Float:none; "title=" Qq20160723172904.png "alt=" Wkiom1etoqvsl91oabaac7m6pye476.png-wh_50 "/>
Code:
<! DOCTYPE html>
<title></title>
<meta charset= "Utf-8"/>
<style type= "Text/css" >
*{margin:0;padding:0;}
. Main-div{background:url (imgs/gz.jpg); background-size:cover;height:800px}
#mask {height:100%;width:100%;p osition:absolute;top:0;left:0;background: #000; Opacity:0.5;filter:alpha (opacity= ;d Isplay:none;}
#searchtip {width:1400px;height:800px;background:transparent;position:absolute;left:50%;margin-left: -700px; Display:none;}
#searchtip Div{position:absolute;display:none;}
#searchtip Div A{position:absolute;width:50px;height:30px;background:rgb (137, $); Cursor:pointer;text-align: Center;line-height:32px;top:0px;left:0px;text-decoration:none;color: #fff; font-size:12px;}
#searchtip Div Span{position:absolute;width:30px;height:30px;background:rgb (137, cursor:pointer); Text-align:center;line-height:30px;top:0px;left:170px;color: #fff; border-radius:50%;}
. Stepa{width:200px;height:135px;background:url (imgs/hand.jpg); left:330px;}
. Stepb{width:200px;height:135px;background:url (imgs/hand2.jpg); left:970px;top:90px}
. Stepc{width:200px;height:135px;background:url (imgs/hand3.jpg); left:620px;top:580px}
</style>
<script type= "Text/javascript" >
Window. () {
Read cookies
var localcookies = document.cookie.substring (5);
if (localcookies! = "Xinshouyindao") {
var mask = document.getElementById ("Mask"),
Searchtip = document.getElementById ("Searchtip"),
Step = Searchtip.getelementsbytagname ("div"),
Aobj = Searchtip.getelementsbytagname ("a"),
Spanobj = Searchtip.getelementsbytagname ("span");
Mask.style.display = Searchtip.style.display = Step[0].style.display = "Block";
Next
for (var i = 0; i < step.length; i++) {
Aobj[i].index = i;
Aobj[i].onclick=function () {
This.parentNode.style.display = "None";
if (This.index < step.length-1) {
Step[this.index+1].style.display = "block";
}else if (This.index = = step.length-1) {
Mask.style.display = Searchtip.style.display = "None";
}
}
};
Close button
for (var i = 0; i < spanobj.length; i++) {
Spanobj[i].onclick = function () {
Mask.style.display = Searchtip.style.display = "None";
}
};
Cookie Storage
var date = new Date ();
Date.setdate (Date.getdate () +30);
Document.cookie = "name=xinshouyindao;expires=" +date;
}
}
</script>
<body>
<div class= "Main-div" >
<div id= "Mask" ></div>
<div id= "Searchtip" >
<div class= "Stepa" ><a href= "#" > Next </a><span title= "Close" >X</span></div>
<div class= "STEPB" ><a href= "#" > Next </a><span title= "Close" >X</span></div>
<div class= "Stepc" ><a href= "#" > Next </a><span title= "Close" >X</span></div>
</div>
</div>
</body>
This article is from the "Yan" blog, please be sure to keep this source http://suyanzhu.blog.51cto.com/8050189/1829156
Achieve the "Novice boot" effect