Jump to content

load content if operating system is everything but linux


toolman

Recommended Posts

Hi,

I am trying to load a block of code for all operating systems except Linux.

I have the following code. Does it look ok?- I am not too sure what to put in the IF statement.

if (navigator.appVersion.indexOf("Linux")!=-1){
 
  document.write('');
 
}


else{
  LoadFlash : function(flash_path, width, height){
        document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ width +'" height="'+ height +'">');
        document.write('<param name="movie" value="'+ flash_path +'"/><param name="quality" value="best"/><param name="wmode" value="transparent"/><param name="play" value="true"/><embed pluginspage="http://www.macromedia.com/go/getflashplayer" src="'+ flash_path +'" type="application/x-shockwave-flash" wmode="transparent" quality="best" play="true" width="'+ width +'" height="'+ height +'"></embed>');
        document.write('</object>');
    }
}



Thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.