Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- toggleView = function(i, d){
- var img = i;
- var display = d;
- var switchUp = function(){
- if(img.style.visibility == 'hidden'){
- img.style.visibility = 'visible';
- display.style.visibility = 'hidden';
- }else{
- img.style.visibility = 'hidden';
- display.style.visibility = 'visible';
- }
- }
- return switchUp;
- }
- window.onload = function(){
- var img = document.getElementById('image');
- var display = document.getElementById('display');
- img.onclick = display.onclick = toggleView(img, display);
- }
- </script>
- <!-- Column 1 start -->
- <h2>Featured Game</h2>
- <div id="featured">
- <img id="image" alt="Featured Game" src="featured.JPG" border="0">
- <div id="display" style="visibility:hidden">
- <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">
- <param name="movie" value="http://gaming-cell.net/games/other/Nyanicorn.swf">
- <param name="quality" value="high">
- <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>
- </object>
- </p>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement