<SCRIPT LANGUAGE="JavaScript">
<!--
function changeImage()
{
mainimage.src = list.options[list.selectedIndex].value;
}
function prevImage()
{
if(list.selectedIndex == 0)
{
list.selectedIndex = list.options.length-1;
}
else
{
list.selectedIndex--;
}
changeImage();
}
function nextImage()
{
if(list.selectedIndex == list.options.length-1)
{
list.selectedIndex = 0;
}
else
{
list.selectedIndex++;
}
changeImage();
}
// -->
</script>
<!--
/*
/*
/*
***** Start Visual Snippet Component *****
/*
/*
/*
/*
//-->
<!--v comp-->
<!-- Images will resize as needed to the default. -->
<BODY onLoad="javascript:changeImage()">
<div align="center">
<img name="mainimage" border="1">
<br>
<input type="button" value="Back" onclick="javascript:prevImage()">
<select id="list" onchange="javascript:changeImage()">
<option value="evan.jpg">First Image</option>
<option value="diane.jpg">Second Image</option>
<option value="christian.jpg">Third Image</option>
<option value="gene3.jpg">Fourth Image</option>
<option value="gene.jpg">Fifth Image</option>
</select>
<br /><input type="button" value="Next" onclick="javascript:nextImage()">
</div>
<!--v comp-->
<!--
/*
/*
/*
***** End Visual Snippet Component *****
/*
/*
/*
/*
//-->
</td></tr><tr valign="top"><td colspan="2"><br /><div align="center">
</script>
Đăng ký:
Đăng Nhận xét (Atom)
0 Comment "Slideshow Manual Viewer"
Đăng nhận xét