<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css"> <!-- select { font-family: "tahoma"; font-size: 10px; color: #666666}
input { font-family: "tahoma"; font-size: 10px; color: #000000; border: #666666; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}
--></style>
<SCRIPT LANGUAGE="JavaScript">
var rotate_delay = 1000; // delay in milliseconds (5000 = 5 secs)
current = 0;
function next() {
if (document.slideform.slide[current+1]) {
document.images.show.src = document.slideform.slide[current+1].value;
document.slideform.slide.selectedIndex = ++current;
}
else first();
}
function previous() {
if (current-1 >= 0) {
document.images.show.src = document.slideform.slide[current-1].value;
document.slideform.slide.selectedIndex = --current;
}
else last();
}
function first() {
current = 0;
document.images.show.src = document.slideform.slide[0].value;
document.slideform.slide.selectedIndex = 0;
}
function last() {
current = document.slideform.slide.length-1;
document.images.show.src = document.slideform.slide[current].value;
document.slideform.slide.selectedIndex = current;
}
function ap(text) {
document.slideform.slidebutton.value = (text == "Stop") ? "Start" : "Stop";
rotate();
}
function change() {
current = document.slideform.slide.selectedIndex;
document.images.show.src = document.slideform.slide[current].value;
}
function rotate() {
if (document.slideform.slidebutton.value == "Stop") {
current = (current == document.slideform.slide.length-1) ? 0 : current+1;
document.images.show.src = document.slideform.slide[current].value;
document.slideform.slide.selectedIndex = current;
window.setTimeout("rotate()", rotate_delay);
}
}
</SCRIPT>
<body bgcolor="#ffffff" text="#000000">
<form >
<table cellspacing="1" cellpadding="4" bgcolor="#000000">
<tr>
<td bgcolor="white" >
<img src="http://www.likecs.com/1.gif" >
</td>
</tr>
<tr>
<td bgcolor="#c0c0c0">
<select onChange="change();">
<option value="http://www.likecs.com/1.gif" selected>
1
<option value="2.gif">
2
<option value="3.gif">
3
<option value="4.gif">
4
<option value="5.gif">
5
<option value="6.gif">
6
<option value="7.gif">
7
<option value="8.gif">
8
<option value="9.gif">
9
<option value="10.gif">10</option>
</select>
</td>
</tr>
<tr>
<td bgcolor="#c0c0c0">
<input type="button" value="|<<" title="Beginning"> <input type="button" value="<<" title="Previous">
<input type="button" value="开始" title="AutoPlay">
<input type="button" value=">>" title="Next"> <input type="button" value=">>|" title="End">
</td>
</tr>
</table>
</form>
</body>
方法2: