Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt-br">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
- <script type="text/javascript">
- var pos = 0;
- function mover(el)
- {
- pos += 20;
- div_red = document.getElementById(el);
- div_red.style.left = pos + "px";
- }
- window.onload = function()
- {
- int = window.setInterval("mover('area1')", 500);
- }
- </script>
- <style type="text/css">
- #area {
- width:4040px;
- z-index: 1;
- }
- #area1{
- position:absolute;
- top: 0;
- width:10px;
- height:80px;
- background:red;
- z-index: 2;
- }
- </style>
- </head>
- <body>
- <div id="area">
- teste teste teste teste teste teste teste teste teste
- <div id="area1">
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement