Jump to content

gavin26er

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by gavin26er

  1. gavin26er

    sniffer

    hey guys me again i'm wondering how to make a java virutural machine sniffer so if the person don;t have it, it will prompt you and ask you to download it
  2. i took the exact code you had there and replaced mine but it didn't work, nothing happened.
  3. hi guys i have this code and it works great i have it diplaying an swf file but if the user don't have flash it defaults back to a jpg. what i want it to do is detect that you don't have flash and prompt you and ask you if you want to download it, and then if you say no if jumps to the jpg. the code is below.script type="text/javascript"><!--var flashInstalled = false;var isIE = (navigator.userAgent.indexOf("MSIE") != -1) ? true : false; var isWin = (navigator.userAgent.indexOf("Win") != -1) ? true : false;if (navigator.plugins && navigator.plugins.length){var x = navigator.plugins["Shockwave Flash"];if (x){if (x.description){y = x.description;var flashVersion = y.charAt(y.indexOf('.')-1); //checks flash versionif (flashVersion>=6){ //checks for version 6 and above.flashInstalled = true;}}}}if(isIE && isWin){ //can't read from plugins array on ie pc...document.write('<scr' + 'ipt language=VBScript> \n');document.write('on error resume next \n');document.write('flashInstalled = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n'); document.write('flashInstalled = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n'); document.write('flashInstalled = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8"))) \n'); document.write('<\/scr' + 'ipt> \n');}if (flashInstalled){document.write ('<object type="application/x-shockwave-flash" data="../menus_logos/logo.swf" width="760" height="120">');document.write ('<param name="movie" value="../menus_logos/logo.swf" width="760" height="120" quality="high" menu="false" />');document.write ('<\/object>');}else {document.write ('<img src="../menus_logos/top_banner.jpg" class="top" width="760" height="120"/>');}//--></script>
  4. hi guysgot another problem i got this javascript code off of bathurst guy it does what i want it do, but there are a few problems.1. is that there is a little dead space under the picture, if the swf fails to display in the table.2. is now it don't prompt you and ask you if you want to download flash anymore. i want it to prompt me and if you say don't apply it displays the default pic and.below is the javascript that have and i have attached my files if you want to take a look thanks<script type="text/javascript"><!--var flashInstalled = false;var isIE = (navigator.userAgent.indexOf("MSIE") != -1) ? true : false; var isWin = (navigator.userAgent.indexOf("Win") != -1) ? true : false;if (navigator.plugins && navigator.plugins.length){var x = navigator.plugins["Shockwave Flash"];if (x){if (x.description){y = x.description;var flashVersion = y.charAt(y.indexOf('.')-1); //checks flash versionif (flashVersion>=6){ //checks for version 6 and above.flashInstalled = true;}}}}if(isIE && isWin){ //can't read from plugins array on ie pc...document.write('<scr' + 'ipt language=VBScript> \n');document.write('on error resume next \n');document.write('flashInstalled = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n'); document.write('flashInstalled = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n'); document.write('<\/scr' + 'ipt> \n');}if (flashInstalled){document.write ('<object type="application/x-shockwave-flash" data="Untitled-1.swf" width="760" height="120">');document.write ('<param name="movie" value="Untitled-1.swf" width="760" height="120" quality="high" menu="false" />');document.write ('<\/object>');}else {document.write ('<img src="Untitled-1.jpg" width="760" height="120"/>');}//--></script>gavin
  5. hi guyswhat i want to do is display a jpg as defaulf if my swf file doesn't load. i want to do this so if the user trying to load the site doesn't have flash a default picture will replace the swf that won't load. i know you need to use javascript to make this work but i can't seem to find anyone with the right way to make it work. please help i'm been trying to figure this out forever.gavin
×
×
  • Create New...