关于Marquee的问题
想把上面的百度logo从上面露出来移动到下面 下面的百度LOGO从下面露出来移动到上面 但不知道该怎样才能控制图片的起始点下面是代码:
<%@ language="vbscript" codepage="936" %>
<head>
<script language="javascript">
function window.onload(){
document.getElementById("door1").stop();
document.getElementById("door2").stop();
}
function MqueeM(){
document.getElementById("door1").direction="up";
document.getElementById("door1").start();
window.setTimeout("document.getElementById('door1').stop()", 2060);
document.getElementById("door2").direction="down";
document.getElementById("door2").start();
window.setTimeout("document.getElementById('door2').stop()", 2100);
}
</script>
</head>
<body>
<a href="#" onClick="MqueeM()">Click</a>
<div id="main_1" style="position:absolute; overflow: hidden; left: 323px; top: 270px; width: 588px; height: 230;">
<marquee behavior="alternate" height="430" loop="-1" scrollamount="20" id="door1"><img src="http://www.baidu.com/img/baidu_logo.gif" width="587" height="230"/></marquee>
</div>
<div id="main_2" style="position:absolute; overflow: hidden; left: 323px; top: 42px; width: 588px; height: 230;">
<marquee align="top" behavior="alternate" style="top:0px;" height="430" loop="-1" scrollamount="20" id="door2">
<img src="http://www.baidu.com/img/baidu_logo.gif" width="587" height="230" />
</marquee>
</div>
</body>