The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled Javascript Code
Posted by: russ | July 1, 2010 @ 10:49am
Javascript Code
[
Download
]
function checkIfFlash(){ if( $('#SWADenver object').length ){ $.log("flash enabled :)"); //Hide JS related $('#jsgoeshere').hide(); $('#SWADenver').css({'height': 503}); //Detect version and give popup to the upload playerVersion = swfobject.getFlashPlayerVersion(); if(playerVersion.major < 9){ if(confirm('You are running flash player'+playerVersion.major+ "." + playerVersion.minor + "." + playerVersion.release + ". For the best results, click Ok to proceed to www.adobe.com to update your flash player to a newer version, or cancel to continue without updating.")){ window.location=("http://www.adobe.com/go/getflashplayer/"); }else{ //no update } } } else { $.log("no flash enabled :("); $('#SWADenver').css({'height': 410}); //LOAD THE JS CAROUSEL AFTER THE PAGE AND ALL OTHER SCRIPTS IF NO FLASH IS ENABLED $("#carousel-noscript").hide(); $('#d_carousel .content').hide(); $('#d_carousel #no-script').hide(); $('#d_carousel .content').load("ajax_carousel.html", function(){ setTimeout( function(){ $('#d_carousel #loading').fadeTo(1000, 0, function(){ $(this).remove();}); $('#d_carousel .content').fadeIn(1200, function(){ $(this).css({'display': 'block'}); }); }, 1200 ); }); } }
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.39 / 8
33 Votes
http://codebin.yi.org/723
page generated in 0.01 seconds