<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script src="js/jquery-3.2.1.min.js" type="text/javascript" charset="utf-8"></script>
<style type="text/css">
ol{
list-style: none;
display: inline-block;
float: right;
margin-top: -45px;
margin-right: -25px;
}
ol li{
float: left;
margin-right: 50px;
height: 20px;
color: black;
font-weight: bold;
}
li:hover{
color: orange;
}
img{
transition: transform 3s;
}
img:hover{
transform: rotate(360deg);
}
h2{
transition: transform 3s;
}
h2:hover{
transform: scale(2,2);
}
</style>
</head>
<body>
<div id="">
<img src="img/无标题.png"/>
<div id="a1">
<ol>
<li id="a1" onmousemove="shop1(0)" >MI Phones</li>
<li id="a2" onmousemove="shop1(1)" >Redmi Phones</li>
<li id="a3" onmousemove="shop1(2)" >MI TV</li>
<li id="a4" onmousemove="shop1(3)" >Smart Devices</li>
<li id="a5" onmousemove="shop1(4)" >Audio</li>
</ol>
</div>
<table>
<tr>
<td><img src="img/无标题.png"/>
<h2>hhhhhhh</h2>
</td>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script src="js/jquery-3.2.1.min.js" type="text/javascript" charset="utf-8"></script>
<style type="text/css">
ol{
list-style: none;
display: inline-block;
float: right;
margin-top: -45px;
margin-right: -25px;
}
ol li{
float: left;
margin-right: 50px;
height: 20px;
color: black;
font-weight: bold;
}
li:hover{
color: orange;
}
img{
transition: transform 3s;
}
img:hover{
transform: rotate(360deg);
}
h2{
transition: transform 3s;
}
h2:hover{
transform: scale(2,2);
}
</style>
</head>
<body>
<div id="">
<img src="img/无标题.png"/>
<div id="a1">
<ol>
<li id="a1" onmousemove="shop1(0)" >MI Phones</li>
<li id="a2" onmousemove="shop1(1)" >Redmi Phones</li>
<li id="a3" onmousemove="shop1(2)" >MI TV</li>
<li id="a4" onmousemove="shop1(3)" >Smart Devices</li>
<li id="a5" onmousemove="shop1(4)" >Audio</li>
</ol>
</div>
<table>
<tr>
<td><img src="img/无标题.png"/>
<h2>hhhhhhh</h2>
</td>
</tr>
<tr>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
</tr>
<tr>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
</tr>
<tr>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
</tr>
<tr>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
</tr>
</table>
</div>
<script type="text/javascript">
function shop1(a){
var trs = $("table tr");
for (var i = 0; i < trs.length; i++) {
if(i == a){
$(trs[i]).show();
}else{
$(trs[i]).hide();
}
}
}
$(function(){
shop1(0);
})
</script>
</body>
</html>
<tr>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
</tr>
<tr>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
</tr>
<tr>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
</tr>
<tr>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
<td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
</tr>
</table>
</div>
<script type="text/javascript">
function shop1(a){
var trs = $("table tr");
for (var i = 0; i < trs.length; i++) {
if(i == a){
$(trs[i]).show();
}else{
$(trs[i]).hide();
}
}
}
$(function(){
shop1(0);
})
</script>
</body>
</html>