JS implementation of imitation Baidu car channel choice of car pictures show example

Source: Internet
Author: User

This article mainly introduced the JS realization imitation Baidu car channel choice car Picture Show, example analysis JavaScript mouse event operation CSS style skills, very practical value, need friends can refer to the

?

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26-27--28 29---30 31--32 33 34 35 36 37 38-39 40 41 42 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 5, 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 11 9 120 121 122 123 124 125 126 127 <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <html xmlns=" http://www.w3.org/1999/xhtml "> <head> <meta content=" text/html; Charset=utf-8 "http-equiv=" Content-type "/> <title> let people who know cars help you pick your car </title> <style type=" Text/css "> *{ margin:0;padding:0;} Body{font-family:5b8b4f53,tahoma,arial narrow,arial,serif;font-size:12px;color: #000; line-height:1.5em; Background: #fff;p adding-top:100px;} A:link,a:visited,a:hover,a:active{color: #fff; text-decoration:none; main{margin:0 auto;width:978px;height:165px ; border:1px #DFE5E7 Solid;text-align:center;background:url (banner.jpg) no-repeat center;position:relative; . Single{position:absolute; single a{width:100%;height:100%;d isplay:none;position:absolute;left:-3px; Span{position:absolute;bottom:-20px;left:0;width:100%;height:20px;line-height:20px;background: #AE0D00; color:# FFF;TEXT-ALIGN:CENTER;DISPLAY:BLOCK;BORDER:3PX #AE0D00 Solid; box-shadow:3px 2px 3px #A0A0A0;} . show{border:3px #AE0D00 solid;cursor:pointer;box-shadow:3px 2px 3px #A0A0A0; show a{display:block;z-index:99; CARAA{LEFT:5PX;TOP:4PX;WIDTH:203PX;HEIGHT:151PX}. carbb{left:209px;top:4px;width:101px;height:101px; carcc{ left:260px;top:106px;width:101px;height:50px;} . cardd{left:362px;top:4px;width:101px;height:50px}. caree{left:362px;bottom:3px;width:152px;height:102px; CARFF{LEFT:515PX;TOP:4PX;WIDTH:101PX;HEIGHT:101PX}. cargg{left:515px;bottom:3px;width:101px;height:50px; carhh{left:719px;top:4px;width:101px;height:50px}. carii{left:821px;top:4px;width:145px;height:102px; carjj{ left:872px;bottom:3px;width:94px;height:50px;} . maintext{position:absolute;width:50px;height:50px;line-height:50px;text-align:center;z-index:1; Maintext p{ font-family: "Microsoft Ya Hei"; Font-size:19px;font-weight:bold;color: #BBBFC1;} . maintext p span{font-size:14px; fuel{left:312px;top:58px}. power{left:620px;top:7px; control{left:824px;top : 109px;} . include{position:absolute;left:620px;top:58px;width:203px;height:80px;padding-top:20px;} . Include p{font-size:14px;font-family: "Microsoft Ya Hei"; font-weight:bold;color: #BBBFC1; line-height:30px}. Include P span{ Font-size:18px;font-family:arial,tahoma,sans-serif;color: #fff;} </style> </head> <body> <!--subject starts--> <div class= "main" > <!--Kia started--> <div class= " Single Caraa "onmouseover=" this.classname= ' single Caraa ' "Onmouseout=" this.classname= ' single Caraa ' "> <a href= "#" target= "_blank" > <span> kia k5</span> </a> </div> <!--Kia End--> <!--Lang Start- > <div class= "single carbb" onmouseover= "This.classname= ' single CARBB Show '" Onmouseout= "this.classname=" Carbb ' "> <a href=" # "target=" _blank "> <span> lang </span> </a> </div> <!--Lang end--> & lt;! ---Jetta begins--> <div class= "single CARCC" onmouseover= "This.classname= ' single CARCC Show '" onmouseout= "this.classname = ' single CARCC ' "> <a href=" # "target=" _Blank "> <span> jetta </span> </a> </div> <!--Jetta end--> <!--polo start--> <div class=" Single Cardd "onmouseover=" this.classname= ' single Cardd ' "Onmouseout=" this.classname= ' single Cardd ' "> <a href= "#" target= "_blank" > <span>POLO</span> </a> </div> <!--POLO End--> <!--pedestrian view started-- > <div class= "single caree" onmouseover= "This.classname= ' single Caree Show '" Onmouseout= "this.classname=" Caree ' "> <a href=" # "target=" _blank "> <span> Outlook </span> </a> </div> <!--view End--> lt;! ----> began <div class= "single Carff" onmouseover= "This.classname= ' single Carff Show '" onmouseout= " This.classname= ' single Carff ' "> <a href=" # "target=" _blank "> <span> luz </span> </a> </ div> <!--Luz--> <!--Lang yat--> <div class= "single cargg" onmouseover= "this.classname=" single Cargg Show ' "onmouseout=" this.classname= ' single Cargg ' "> <a href=" # "target= "_blank" > <span> lang yat </span> </a> </div> <!--Lang Yat end--> <!--Quick Start--> <div class= "Single carhh" onmouseover= "This.classname= ' single Carhh Show '" onmouseout= "this.classname= ' single Carhh '" > <a href= "#" target= "_blank" > <span> speed </span> </a> </div> <!--quick release--> <!-- Bora starts--> <div class= "single carii" onmouseover= "This.classname= ' single Carii Show '" Onmouseout= "this.classname=" Single Carii ' "> <a href=" # "target=" _blank "> <span> polaris </span> </a> </div> <!-- Bora End--> <!--Fox begins--> <div class= "single carjj" onmouseover= "This.classname= ' single CARJJ Show '" onmouseout = "This.classname= ' single Carjj '" > <a href= "#" target= "_blank" > <span> Fox </span> </a> </ Div> <!--Fox end--> <div class= "Maintext fuel" > <p> Province <span> Oil </span></p> </div > <div class= "maintext power" > <p> dynamic <span> Force </span></p> </div> <div class= "Maintext control" > <p> operating <span> </span></p > </div> <div class= "include" > <p> a total of <span>389</span> model auto </p> <p> have < span>3499</span> owner Reviews </p> </div> </div> <!--main end--> </body> </html>

The

wants this article to help you with your JavaScript programming.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.