首页 > 代码库 > javaScript滚动新闻之平滑滚动

javaScript滚动新闻之平滑滚动

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>平滑滚动</title>
</head>
	<style>
    	<!--
		#div1{
			width:300px;
			height:100px;
			float:left;
			overflow:hidden;
		}
		#div2,#div2 img,#div3 img{
			float:left;
		}
		#div3{
			float:left;
		}
		#in1{
			float:left;
			width:800%;
		}
		
		#div4{
			position:relative;
			left:30%;
			top:20%;
			width:170px;
			height:105px;
			overflow:hidden;
		}
		#in2{
			float:left;
			height:800%;
		}
		-->
    </style>
<body>
	<br /><h1 style="text-align:center">图片</h1><hr />
	<div id="div1">
    <div id="in1">
		<div id="div2">
        	<img src=http://www.mamicode.com/"imgs/11.png"/>>