Guest
Public paste!

Untitled

By: a guest | May 28th, 2010 | Syntax: JavaScript | Size: 0.71 KB | Hits: 268 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  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">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta name="author" content="xiaojue,designsor@gmail.com">
  6. <title>help</title>
  7. <style>
  8.         #msg{min-width:250px;}
  9.         #msg p{font-size:12px;color:#4DA2D2;}
  10. </style>
  11. </head>
  12. <body>
  13. <div id='msg'></div>
  14. </body>
  15. </html>
  16. <script>
  17.         init();
  18.         function init(){
  19.                 if(localStorage.data==''){
  20.                         document.getElementById('msg').innerHTML='<p>Now Loading...</p>';
  21.                         setTimeout(function(){init();},50);
  22.                 }else{
  23.                         document.getElementById('msg').innerHTML=localStorage.data;
  24.                 }
  25.         };
  26. </script>