Advertisement
Guest User

Untitled

a guest
Jul 1st, 2011
611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.59 KB | None | 0 0
  1. <html>
  2.  
  3. <head>
  4. <meta http-equiv="Content-Language" content="en">
  5. <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  6. <title>Your Page Title</title>
  7.  
  8. <!--
  9. Call jQuery because our locker needs it
  10. -->
  11.  
  12. <script type="text/javascript"
  13.    src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js">
  14. </script>
  15.  
  16. </head>
  17.  
  18.  
  19. <body>
  20.  
  21. <!--
  22. Declare yourFunction
  23. -->
  24.  
  25. <script type="text/javascript" language="javascript">
  26. function yourFunction(){
  27.     document.getElementById('yourfirDiv').style.display='block';
  28.     document.getElementById('yoursecDiv').style.display='none';
  29. }
  30. </script>
  31.  
  32. <p>&nbsp;</p>
  33.  
  34. <p>&nbsp;</p>
  35. <p>&nbsp;</p>
  36. <p align="center">
  37. <h3 align="center"><font color="#0198F1">Welcome</font></h3>
  38. <p>
  39.  
  40. <!--
  41. Place the OnClick Link within yoursecDiv.  Declare your OnClick Link and set timeout to 3 secs, expressed as 3000 millisecs, to execute yourFunction and swap divs, hiding yoursecDiv and displaying yourfirDiv. Replace yourlockerurl and guid inside single quotes where shown below.
  42. -->
  43.  
  44. <div id="yoursecDiv" style="display:block;"><a href="javascript:void(0)" onclick="var fileref=document.createElement('script');fileref.setAttribute('type','text/javascript'); fileref.setAttribute('src', 'http://yourlockerurl.js?guid=123456789');document.body.appendChild(fileref); setTimeout(yourFunction, 3000);">TEST</a></div>
  45.  
  46. <!--
  47. Place the Real Link within yourfirDiv which is set to not display until yourFunction has been executed.
  48. -->
  49.  
  50. <div id="yourfirDiv" style="display:none;"><a href="http://www.google.com">TEST</a></div>
  51.  
  52. </body>
  53.  
  54. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement