<! DOCTYPE HTML PUBDDC "-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" >
<title> New Document </title>
<meta name= "Generator" content= "EditPlus" >
<meta name= "Author" content= "" >
<meta name= "Keywords" content= "" >
<meta name= "Description" content= "" >
<script type= "Text/javascript" src= "Http://luxury.bjhoutai.com/js/jquery-1.8.2.min.js" ></script>
<style>
ul,ol,p,dt,dd,dl,h1,h2,h3,h4,h5,h6,form {padding:0; margin:0;}
img {border:0;}
Li {list-style:none;}
a {text-decoration:none;}
a:hover {text-decoration:underline;}
. clear{Clear:both;}
a:visited {text-decoration:none;}
a:active {text-decoration:none;}
body{padding:0; margin:0}
. tabimg{width:1024px;height:592px; margin:0 auto; position:relative;}
. imgshow, #mrt {width:1000px; height:443px;}
action{height:144px; overflow:hidden; width:918px;position:relative; margin-top:5px; margin-left:41px;}
. Action dl{width:1840px; position:absolute;left:0px;}
. Action DL dd{width:228px; float:left; margin-right:2px;}
. Action DL DD img {display:block; width:228px; height:140px}
. Action span{width:10px; height:200px; display:block; Float:left}
. left{width:51px; height:157px; Background:url (http://img.zjhm.com/0Allppzt/test/tu1.gif) no-repeat; Position: Absolute top:435; left:-12px;}
. right{width:51px; height:157px; Background:url (http://img.zjhm.com/0Allppzt/test/tu2.gif) no-repeat; Position: Absolute top:435; right:12px;}
</style>
<body>
<DL class= "Tabimg" >
<dt class= "imgshow" >< /dt>
<div class= ' action ' >
<dl>
<dd></dd>
<dd></dd>
<dd></dd>
<dd></dd>
<dd></dd>
<dd></dd>
<dd></dd>
<dd></dd>
</dl>
</div>
<ul>
<li class= "left" ></li>
<li class= "right" ></li>
</ul>
</dl>
<script>
var timing,time = 0;
$ ('. Action DL DD '). each (function (i) {
$ (this). MouseOver (function () {
$ (this). CSS ("opacity", "0.6"). Siblings (). CSS ("opacity", "1");
$ (' #mrt '). attr ("src", $ ('. Action DL DD '). Children (' Img:eq (' +i+ ') '). attr (' src '). FadeOut (50);
/*
Different on the film
if (i = = 0) {$ (' #mrt '). attr ("src", ' http://img.zjhm.com/newluxury/images/jdt0101_660x372.jpg '). FadeOut (. FadeIn ( 50); }
if (i = = 1) {$ (' #mrt '). attr ("src", ' http://img.zjhm.com/newluxury/images/jdt0102_660x372.jpg '). FadeOut (. FadeIn ( 50); }
if (i = = 2) {$ (' #mrt '). attr ("src", ' http://img.zjhm.com/newluxury/images/jdt0103_660x372.jpg '). FadeOut (. FadeIn ( 50); }
if (i = = 3) {$ (' #mrt '). attr ("src", ' http://img.zjhm.com/newluxury/images/jdt0104_660x372.jpg '). FadeOut (. FadeIn ( 50); }
if (i = = 4) {$ (' #mrt '). attr ("src", ' http://img.zjhm.com/newluxury/images/jdt0201_660x372.jpg '). FadeOut (. FadeIn ( 50); }
if (i = = 5) {$ (' #mrt '). attr ("src", ' http://img.zjhm.com/newluxury/images/jdt0202_660x372.jpg '). FadeOut (. FadeIn ( 50); }
if (i = = 6) {$ (' #mrt '). attr ("src", ' http://img.zjhm.com/newluxury/images/jdt0203_660x372.jpg '). FadeOut (. FadeIn ( 50); }
if (i = = 7) {$ (' #mrt '). attr ("src", ' http://img.zjhm.com/newluxury/images/jdt0204_660x372.jpg '). FadeOut (. FadeIn ( 50); }
*/
});
});
$ (". Left"). Click (function () {
if (time = = 0) {
Time = 1;
Timing = SetTimeout ("Test ()", 500);
if (parseint (". Action DL"). CSS (' left ')) <= 0 && parseint ($ (". Action DL"). CSS (' left ')) >-920) {
$ (". Action DL"). Animate ({
Left: '-=230px '
},500);
}
}
});
$ (". Right"). Click (function () {
if (time = = 0) {
Time = 1;
Timing = SetTimeout ("Test ()", 500);
if (parseint (". Action DL"). CSS (' left ')) < 0 && parseint ($ (". Action DL"). CSS (' left ')) >=-920) {
$ (". Action DL"). Animate ({
Left: ' +=230px '
},500);
}
}
});
function Test () {
if (time = = 1) {
time--;
}
}
</script>
</body>
TAB + scroll + time interval click