无缝滚动代码

来源:百度知道 编辑:UC知道 时间:2024/06/23 17:13:53
下面是一段无缝滚动的代码,可以支持FF和IE的,但是是横向滚动的,希望高手帮忙改下,哥哥姐姐们不要吝惜赐教啊,小弟先谢了,在线等ING~~
小弟就这点分全部奉上,不要嫌弃啊!
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>左右无间断滚动</title>
<style type="text/css" media="all">
.d1 {
margin:10px auto;
width:200px;
border:#103E63 1px solid;
background-color:#EFEFEF;
height:auto;
overflow:hidden;
white-space:nowrap;
}
.d2 {
margin:0px auto;
background-color:#FF9933;
}

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>左右无间断滚动</title>
<style type="text/css" media="all">
.d1 {
margin:10px auto;
width:280px;
border:#103E63 1px solid;
background-color:#EFEFEF;
height:100px;
overflow:hidden;
white-space:nowrap;
}
.d2 {
margin:0px auto;
background-color:#FF9933;
}
.div2 {
width:auto;
height:auto;
font-size:12px;
float:left