Advertisement
Guest User

tavares

a guest
Jan 26th, 2009
488
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.81 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt-br">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
  5. <script type="text/javascript">
  6. var pos = 0;
  7. function mover(el)
  8. {
  9. pos += 20;
  10. div_red = document.getElementById(el);
  11. div_red.style.left = pos + "px";
  12. }
  13. window.onload = function()
  14. {
  15. int = window.setInterval("mover('area1')", 500);
  16. }
  17. </script>
  18. <style type="text/css">
  19. #area {
  20. width:4040px;
  21. z-index: 1;
  22. }
  23.  
  24. #area1{
  25. position:absolute;
  26. top: 0;
  27. width:10px;
  28. height:80px;
  29. background:red;
  30. z-index: 2;
  31. }
  32. </style>
  33. </head>
  34. <body>
  35. <div id="area">
  36. teste teste teste teste teste teste teste teste teste
  37. <div id="area1">
  38. </div>
  39. </div>
  40. </body>
  41. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement