我需要一些jQuery的帮助。我有一个简单的图像库,我想添加一些jquery效果(特别是淡入/淡出#actimg中的图像)。请记住,我不是很熟悉jQuery。jquery淡入淡出效果
JS
<script type="text/javascript">
function showPic (whichpic) {
if (document.getElementById) {
document.getElementById('actimg').src = whichpic.href;
return false;
} else {
return true;
}
}
</script>
和身体
<ul>
<li><a onclick="return showPic(this)" href="images/girl_01.jpg"><img height="50px" width="50px" src="images/girl_01.jpg" /></a></li>
<li><a onclick="return showPic(this)" href="images/girl_02.jpg"><img height="50px" width="50px" src="images/girl_02.jpg" /></a></li>
<li><a onclick="return showPic(this)" href="images/girl_03.jpg"><img height="50px" width="50px" src="images/girl_03.jpg" /></a></li>
</ul>
<img id="actimg" src="images/girl_04.jpg" alt="" />
什么是你想怎么办? –
那里没有裸体女孩:)只是与时尚和东西的图像库。 – Madr