toolman Posted July 24, 2014 Share Posted July 24, 2014 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! Quote Link to comment https://forums.phpfreaks.com/topic/290089-load-content-if-operating-system-is-everything-but-linux/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.