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! 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
Archived
This topic is now archived and is closed to further replies.