<%@ Page Language="C#" AutoEventWireup="true" CodeFile="xia.aspx.cs" Inherits="xia" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<!-- 指向链接图片的URL -->
<div align="center" id="demo" style="overflow:hidden;height:200px;width:95px;border-width:1px 1px 1px 1px;border-style:dotted dotted dotted dotted;">
<div id="demo1">
<!-- 定义内容-->
<img src="images/logo_1.gif"><br />
<img src="images/logo/flashempire.gif"><br />
<img src="images/logo.gif"><br />
<img src="images/logo/5dmedia.gif"><br />
<img src="images/logo/macromedia.gif"><br />
<img src="images/logo/sucaiw.gif"><br />
<img src="images/logo/blueieda.gif"><br />
<img src="images/logo/htmlcn.gif"><br />
<img src="images/logo/fwcn.gif"><br />
</div>
<div id="demo2"></div>
</div>
<script language="javascript" type="text/javascript">
<!--
var demo = document.getElementById("demo");
var demo1 = document.getElementById("demo1");
var demo2 = document.getElementById("demo2");
var speed=10; //数值越大滚动速度越慢
demo2.innerHTML = demo1.innerHTML;
demo.scrollTop = demo.scrollHeight;
function Marquee(){
if(demo1.offsetTop-demo.scrollTop>=0)
demo.scrollTop+=demo2.offsetHeight
else{
demo.scrollTop--
}
}
var MyMar = setInterval(Marquee,speed);
demo.onmouseover = function(){clearInterval(MyMar)}
demo.onmouseout = function(){MyMar = setInterval(Marquee,speed)}
-->
</script>
</body>
</html>