<table width="980" border="0" align="center" cellpadding="0" cellspacing="10">
<tr>
<table width="980" border="0" align="center" cellpadding="0" cellspacing="10">
<tr>
<td width="616" valign="top"><DIV class=fpic>
<A id=foclnk href="" target=_blank><IMG id=focpic style="FILTER: RevealTrans ( duration = 1,transition=23 ); VISIBILITY: visible; POSITION: absolute" height=315 alt="" src="" width=530></A>
<DIV id=fttltxt
style="MARGIN-TOP: 320px; FLOAT: left; WIDTH: 530px; TEXT-ALIGN: center"><A
href="" target=_blank></A></DIV>
<DIV style="MARGIN-LEFT: 537px; WIDTH: 65px">
<DIV class=thubpiccur id=tmb0 onmouseover=setfoc(0); onmouseout=playit();><A
href="" target=_blank><IMG
src="" alt="" width=56 height=42 border="0"></A></DIV>
<DIV class=thubpic id=tmb1 onmouseover=setfoc(1); onmouseout=playit();><A
href="" target=_blank><IMG height=45 alt=""
src="" width=56></A></DIV>
<DIV class=thubpic id=tmb2 onmouseover=setfoc(2); onmouseout=playit();><A
href="" target=_blank><IMG height=45 alt=""
src="" width=56></A></DIV>
<DIV class=thubpic id=tmb3 onmouseover=setfoc(3); onmouseout=playit();><A
href="" target=_blank><IMG height=45 alt=""
src="" width=56></A></DIV>
<DIV class=thubpic id=tmb4 onmouseover=setfoc(4); onmouseout=playit();><A
href="" target=_blank><IMG height=45 alt=""
src="" width=56></A></DIV>
<DIV class=thubpic id=tmb5 onmouseover=setfoc(5); onmouseout=playit();><A
href="" target=_blank><IMG height=45 alt=""
src="a" width=56></A></DIV>
<SCRIPT language=javascript type=text/javascript>
var picarry = {};
var lnkarry = {};
var ttlarry = {};
picarry[0] = "";
lnkarry[0] = "";
ttlarry[0] = "";
picarry[1] = "";
lnkarry[1] = "";
ttlarry[1] = "";
picarry[2] = "";
lnkarry[2] = "";
ttlarry[2] = "";
picarry[3] = "";
lnkarry[3] = "";
ttlarry[3] = "";
picarry[4] = "";
lnkarry[4] = "";
ttlarry[4] = "";
picarry[5] = "";
lnkarry[5] = "";
ttlarry[5] = "";
</SCRIPT>
<tr>
<table width="980" border="0" align="center" cellpadding="0" cellspacing="10">
<tr>
<td width="616" valign="top"><DIV class=fpic>
<A id=foclnk href="" target=_blank><IMG id=focpic style="FILTER: RevealTrans ( duration = 1,transition=23 ); VISIBILITY: visible; POSITION: absolute" height=315 alt="" src="" width=530></A>
<DIV id=fttltxt
style="MARGIN-TOP: 320px; FLOAT: left; WIDTH: 530px; TEXT-ALIGN: center"><A
href="" target=_blank></A></DIV>
<DIV style="MARGIN-LEFT: 537px; WIDTH: 65px">
<DIV class=thubpiccur id=tmb0 onmouseover=setfoc(0); onmouseout=playit();><A
href="" target=_blank><IMG
src="" alt="" width=56 height=42 border="0"></A></DIV>
<DIV class=thubpic id=tmb1 onmouseover=setfoc(1); onmouseout=playit();><A
href="" target=_blank><IMG height=45 alt=""
src="" width=56></A></DIV>
<DIV class=thubpic id=tmb2 onmouseover=setfoc(2); onmouseout=playit();><A
href="" target=_blank><IMG height=45 alt=""
src="" width=56></A></DIV>
<DIV class=thubpic id=tmb3 onmouseover=setfoc(3); onmouseout=playit();><A
href="" target=_blank><IMG height=45 alt=""
src="" width=56></A></DIV>
<DIV class=thubpic id=tmb4 onmouseover=setfoc(4); onmouseout=playit();><A
href="" target=_blank><IMG height=45 alt=""
src="" width=56></A></DIV>
<DIV class=thubpic id=tmb5 onmouseover=setfoc(5); onmouseout=playit();><A
href="" target=_blank><IMG height=45 alt=""
src="a" width=56></A></DIV>
<SCRIPT language=javascript type=text/javascript>
var picarry = {};
var lnkarry = {};
var ttlarry = {};
picarry[0] = "";
lnkarry[0] = "";
ttlarry[0] = "";
picarry[1] = "";
lnkarry[1] = "";
ttlarry[1] = "";
picarry[2] = "";
lnkarry[2] = "";
ttlarry[2] = "";
picarry[3] = "";
lnkarry[3] = "";
ttlarry[3] = "";
picarry[4] = "";
lnkarry[4] = "";
ttlarry[4] = "";
picarry[5] = "";
lnkarry[5] = "";
ttlarry[5] = "";
</SCRIPT>
function setfoc(id, auto) {
if (!auto) stopit();
document.getElementById("focpic").src = picarry[id];
document.getElementById("foclnk").href = lnkarry[id];
document.getElementById("fttltxt").innerHTML = '<a href="' + lnkarry[id] + '" target="_blank">' + ttlarry[id] + '</a>';
currslid = id;
for (i = 0; i < lItem; i++) {
document.getElementById("tmb" + i).className = "thubpic";
};
document.getElementById("tmb" + id).className = "thubpiccur";
if (!ie) return;
var focpic = document.getElementById("focpic");
focpic.style.visibility = "hidden";
focpic.filters[0].Apply();
if (focpic.style.visibility == "visible") {
focpic.style.visibility = "hidden";
focpic.filters.revealTrans.transition = 23;
}
else {
focpic.style.visibility = "visible";
focpic.filters[0].transition = 23;
}
focpic.filters[0].Play();}function playnext() {
if (currslid == lItem - 1) {
currslid = 0;
}
else {
currslid++;
};
setfoc(currslid,true);
//playit();
}
function playit() {
slidint = setInterval(playnext, 4500);
}
function stopit() {
clearInterval(slidint);
}
window.onload = function () {
lItem = picarry.length;
playit();
}
var currslid = 0;
var slidint;
function setfoc(id){
document.getElementById("focpic").src = picarry[id];
document.getElementById("foclnk").href = lnkarry[id];
document.getElementById("fttltxt").innerHTML = '<a href="'+lnkarry[id]+'" target="_blank">'+ttlarry[id]+'</a>';
currslid = id;
for(i=0;i<6;i++){
document.getElementById("tmb"+i).className = "thubpic";
};
document.getElementById("tmb"+id).className ="thubpiccur";
focpic.style.visibility = "hidden";
focpic.filters[0].Apply();
if (focpic.style.visibility == "visible") {
focpic.style.visibility = "hidden";
focpic.filters.revealTrans.transition=23;
}
else {
focpic.style.visibility = "visible";
focpic.filters[0].transition=23;
}
focpic.filters[0].Play();
stopit();
}function playnext(){
if(currslid==5){
currslid = 0;
}
else{
currslid++;
};
setfoc(currslid);
playit();
}
function playit(){
slidint = setTimeout(playnext,4500);
}
function stopit(){
clearTimeout(slidint);
}
window.onload = function(){
playit();
}
<style type = "text/css">
#container {
height:1050px;
width:980px;
}
#centerTop {
position:absolute;
top:155px;
left:180px;
text-align:left;
}
#img {
width:450px;
height:200px;
float:left;
margin-left:55px;
}
.imgs {
width:20px;
height:20px;
margin:5px;
cursor:pointer;
background-color:gray;
text-align:center;
}
#images {
margin-top:30px;
float:left;
}</style>
</head>
<body>
<div id = "container" >
<div id = "floImg">
<img style = "width:170px;" src ="images/game.jpg" />
<img id = "clo" src ="images/delete.gif" onclick = "clos()"/>
</div>
<div id = "flo"> <img src ="images/4.bmp" /></div>
<div id = "centerTop"> <img id = "img" src ="images/Fen1.bmp">
<div id ="images">
<div class = "imgs" id = "fen1" onmouseover = "show(1)" >1</div>
<div class = "imgs" id = "fen2" onmouseover = "show(2)">2</div>
<div class = "imgs" id = "fen3" onmouseover = "show(3)">3</div>
<div class = "imgs" id = "fen4" onmouseover = "show(4)">4</div>
<div class = "imgs" id = "fen5" onmouseover = "show(5)">5</div>
</div>
<script type = text/javascript>
function $(id){
return document.getElementById(id);
}//循环显示图片
var index = 1;
function show(id){
if(Number(id)){
clearInterval(a);
index = id;
}
for(var i =1;i<6;i++){
if(i==index){
$("img").src = "images/Fen"+i+".bmp";
$("fen"+i).className = "floimgs";
}else{
$("fen"+i).className="imgs";
}
}
if(index==5){
index=1;
}else{
index++;
}
}
var a = setInterval('show()',1000);
window.onload = show;//广告滑动
//关闭广告//切换效果
function PingLuan(id){
for(var i =1;i<3;i++){
if(id ==i){
$("bottom_three_right_"+(i)).style.display = "block";
}else{
$("bottom_three_right_"+(i)).style.display = "none";
}
}
}
</script>
我之前自己做的,你参考参考...
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS等高布局</title>
<style type="text/css">
body { margin:0; padding:0; }
ul,li { margin:0; padding:0; }
ul li { float:left; width:100px; }
ul { list-style:none; float:left; width:300px; }
#box { width:300px; overflow:hidden; position:relative; background:#f00; height:100px; }
#boxframe { width:600px; position:absolute; top:0; }
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript">
function scrolls() {
if(parseInt($('#boxframe').css('left')) == -300) {
$('#boxframe').css('left', 0)
}
$('#boxframe').animate({left: '-=100px'}, 500);
}
$(function() {
$('ul').clone().appendTo('#boxframe');
setInterval('scrolls()', 2000);
});
alert(a);
</script>
</head>
<body>
<div id="box">
<div id="boxframe">
<ul>
<li><a href="#" target="_blank"><img src="1.jpg" width="100" height="100" /></a></li>
<li><a href="#" target="_blank"><img src="2.gif" width="100" height="100" /></a></li>
<li><a href="#" target="_blank"><img src="3.gif" width="100" height="100" /></a></li>
</ul>
</div>
</div>
</body>
</html>