Forum: Graceful failure when Flash player is not installed [code]

 

« Back To Thread List

davidw
3499 days ago
Currently when the Flash Player is not installed only a space is displayed. I wanted to display something a little nicer.

The functinality is already there in SWFObject is is simply a matter of changing the "nbsp;" in the right places.

to do this I added the following variable at the top of /js/jawstats.js.


var altswf = '\n' +
'\n' +
'This content requires the latest version of Flash\n' +
'\n' +
'Download the free Flash Player now!\n' +
'\n' +
'\n' +
'';



Then I searched for all instances of graph as a whole word in the same document. I replaced the |nsbp;| in the div tag with |"+altswf+"|

of course altswf can be replaced with anything you want.
davidw
3499 days ago
ok so that isn't what I wanted to display. unfortunatly the html portions are hidden.

« Back To Thread List

Participate in this discussion

 

You must be logged in to post in this thread.

 

Version 0.7 beta available now

Released 25th Janury 2009

Try the online demo or download now.

 
Latest JAWStats News:

Version 0.7 Beta Released

Sprechen Sie Deutsch? Multi-lingual JAWStats v0.7 is finally here.

posted 25th Jan '09. read more »
 

Help JAWStats

Please donate a dollar (or more!) towards the hosting costs for this site. This money doesn't go anywhere near my pocket, it is purely used against my hosting bill.

 

Get $50 off your webhosting

You could do far worse than choose Dreamhost. I've used them for 6 years and they're great. Simply enter the promo code: JAWSTATS on signup!