Advertisement
NeverPool

Untitled

Aug 6th, 2011
448
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. toggleView = function(i, d){
  3.     var img = i;
  4.     var display = d;
  5.     var switchUp = function(){
  6.         if(img.style.visibility == 'hidden'){
  7.             img.style.visibility = 'visible';
  8.             display.style.visibility = 'hidden';
  9.         }else{
  10.             img.style.visibility = 'hidden';
  11.             display.style.visibility = 'visible';
  12.         }
  13.     }
  14.     return switchUp;
  15. }
  16.  
  17. window.onload = function(){
  18.     var img = document.getElementById('image');
  19.     var display = document.getElementById('display');
  20.    
  21.     img.onclick = display.onclick = toggleView(img, display);
  22. }
  23. </script>
  24.             <!-- Column 1 start -->
  25.             <h2>Featured Game</h2>
  26. <div id="featured">
  27.     <img id="image" alt="Featured Game" src="featured.JPG" border="0">
  28. <div id="display" style="visibility:hidden">          
  29. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" height="480" width="640">
  30.                     <param name="movie" value="http://gaming-cell.net/games/other/Nyanicorn.swf">
  31.                     <param name="quality" value="high">
  32.  
  33.                     <embed src="http://gaming-cell.net/games/other/Nyanicorn.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" height="480" width="640"></embed>
  34.                     </object>
  35.             </p>
  36.  
  37. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement