选项卡最简单,就是这样,有本事写更简单的我看。
<script language="javascript"
type="text/javascript">
function
xianshi(t1,t2)
{
document.getElementByIdx("a1").src="/Templates/default/images/newstt1h.gif";
document.getElementByIdx("a2").src="/Templates/default/images/newstt2h.gif";
document.getElementByIdx("a3").src="/Templates/default/images/newstt3h.gif";
document.getElementByIdx("a4").src="/Templates/default/images/newstt4h.gif";
document.getElementByIdx(t1).src="/Templates/default/images/"
+ t2;
}
</script>
<table
width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td><img id="a1"
src="/Templates/default/images/newstt1h.gif"
onmousemove="xianshi('a1','newstt1.gif')"
/></td>
<td><img
id="a2" src="/Templates/default/images/newstt2h.gif"
onmousemove="xianshi('a2','newstt2.gif')"
/></td>
<td><img
id="a3" src="/Templates/default/images/newstt3h.gif"
onmousemove="xianshi('a3','newstt3.gif')"
/></td>
<td><img
id="a4" src="/Templates/default/images/newstt4h.gif"
onmousemove="xianshi('a4','newstt4.gif')"
/></td>
</tr>