1/** 2 * common.js 3 * $Author MLEXP. 4 */ 5 6var isMSIE = navigator.appName.indexOf("Microsoft") != -1; 7 8//! FutureSplashç¨ã³ãã³ãçºè¡ã 9// @description Handle all the the FSCommand messages in a FutureSplash movie 10function ff_DoFSCommand(command, args) { 11 var ffObj = isMSIE ? ff : document.ff; 12 // Place your code here... 13} 14 15//! IEç¨VBScriptã 16// @description Hook for Internet Explorer 17function futureSplashForVBS(command, args) { 18 if (navigator.userAgent 19 && navigator.userAgent.indexOf("MSIE") >= 0 20 && navigator.userAgent.indexOf("Windows") >= 0) { 21 document.write('<script type="text/vbscript" language="VBScript"\> \n'); 22 document.write('on error resume next \n'); 23 document.write('Sub ff_FSCommand(ByVal command, ByVal args)\n'); 24 document.write(' call ff_DoFSCommand(command, args)\n'); 25 document.write('end sub\n'); 26 document.write('</script\> \n'); 27 } 28} 29 30//! ShockWaveã®ãã§ãã¯ã 31// 32function checkForShockwave() 33{ 34 navigator.plugins.refresh(); 35 if ( navigator.plugins["Shockwave Flash"] ){ 36 parent.location.reload(); 37 } else { 38 setTimeout( "checkForShockwave()", 1000 ); 39 } 40} 41 42//! Shockwave Flash ã®è²¼ãä»ãã 43// @param vWidth æ¨ªå¹ ã 44// @param vHeight ç¸¦å¹ ã 45// @param vId IDã 46// @param vFileName flash ãã¡ã¤ã«ã 47// @param vImageFileName 代æ¿ç»åãã¡ã¤ã«ã 48// @param vBGColor èæ¯è²ã 49// @param vAlt ä»£æ¿æååã 50// 51function afterShock( vWidth, vHeight, vId, vFileName, vImageFileName, vBGColor, vAlt ) {
52 document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '); 53 document.write('codebase="http://active.macromedia.com/flash/cabs/swflash.cab#version=2,0,0,0" '); 54 document.write(' id=' + vId + ' width=' + vWidth + ' height=' + vHeight + '>\n'); 55 document.writeln('<param name="movie" value=' + vFileName + '>'); 56 document.writeln('<param name="loop" value="false">'); 57 document.writeln('<param name="quality" value="autohigh">'); 58 document.writeln('<param name="bgcolor" value="' + vBGColor + '">'); 59 60 var ShockMode = 0; 61 if (navigator.mimeTypes 62 && navigator.mimeTypes["application/x-shockwave-flash"] 63 && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) { 64 if (navigator.plugins && navigator.plugins["Shockwave Flash"]) 65 ShockMode = 1; 66 } 67 68 if (!ShockMode 69 && navigator.appName && navigator.appName.indexOf("Netscape") != - 1 70 && navigator.appVersion.indexOf("4.") != - 1 71 && navigator.javaEnabled() 72 && netscape.softupdate.Trigger.UpdateEnabled() 73 && document.cookie.indexOf("StartedShockwaveInstall") == -1) { 74 var jarPath = new String(""); 75 if (navigator.platform.indexOf("Win32") >= 0 ) 76 jarPath = "http://download.macromedia.com/pub/shockwave/jars/english/silentflash32.jar" 77 else if (navigator.platform.indexOf("Win16") >= 0 ) 78 jarPath = "http://download.macromedia.com/pub/shockwave/jars/english/silentflash16.jar" 79 else if (navigator.platform.indexOf("MacPPC") >= 0 ) 80 jarPath = "http://download.macromedia.com/pub/shockwave/jars/english/silentflashppc.jar" 81 if (jarPath.length) {
82 netscape.softupdate.Trigger.StartSoftwareUpdate (jarPath, netscape.softupdate.Trigger.FORCE_MODE); 83 document.cookie='StartedShockwaveInstall;path=/;' 84 setTimeout("checkForShockwave()", 1000); 85 } 86 } 87 88 if ( ShockMode ) { 89 document.write('<embed src="' + vFileName + '"'); 90 document.write(' swLiveConnect=FALSE'); 91 document.write(' width=' + vWidth + ' height=' + vHeight + ''); 92 document.write(' loop=false quality=autohigh bgcolor=' + vBGColor + ''); 93 document.write(' type="application/x-shockwave-flash"'); 94 document.write(' pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'); 95 document.write('</embed>'); 96 } else if (!(navigator.appName 97 && navigator.appName.indexOf("Netscape")>=0 98 && navigator.appVersion.indexOf("2.")>=0) 99 && vImageFileName && vImageFileName.length) { 100 document.write('<img src="' + vImageFileName + '"'); 101 document.write(' width="' + vWidth + '" height="' + vHeight + '" alt="' + vAlt + '">'); 102 } 103 104 document.write('
104<noembed>'); 105 document.write('<img src="' + vImageFileName + '"'); 106 document.write(' width="' + vWidth + '" height="' + vHeight + '" alt="' + vAlt + '">'); 107 document.write('</noembed>\n'); 108 109 document.writeln('</object>'); 110} 111 112function afterShockB( vWidth, vHeight, vId, vFileName, vImageFileName, vBGColor, vAlt ) { 113 afterShock( vWidth, vHeight, vId, vFileName, vImageFileName, "#000000", vAlt ); 114} 115 116function afterShockW( vWidth, vHeight, vId, vFileName, vImageFileName, vBGColor, vAlt ) { 117 afterShock( vWidth, vHeight, vId, vFileName, vImageFileName, "#ffffff", vAlt ); 118} 119 120//! Flash ã ã¼ãã¼ã®è²¼ãä»ãã 121// @param vId èå¥åã 122// @param vWidth æ¨ªå¹ ã 123// @param vHeight ç¸¦å¹ ã 124// @param vFileName flash ãã¡ã¤ã«ã 125// @param vBGColor èæ¯è²ã 126// @param vFlashVars flash ã®åºæãã©ã¡ã¼ã¿ã 127// 128function showFlash( vWidth, vHeight, vId, vFileName, vBGColor, vFlashVars ) 129{ 130 document.write( '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' ); 131 document.write( ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"' ); 132 document.write( ' width="' + vWidth + '" height="' + vHeight + '" align="" id="' + vId + '">' ); 133 document.write( '<param name=movie VALUE="' + vFileName + '">' ); 134 document.write( '<param name=quality VALUE=high>' ); 135 document.write( '<param name=bgcolor VALUE=' + vBGColor + '>' ); 136 document.write( '<param name=flashvars VALUE="' + vFlashVars + '">' ); 137 document.write( '<param name=loop VALUE=false>' ); 138 document.write( '<embed src="' + vFileName + '"' ); 139 document.write( ' quality=high bgcolor=' + vBGColor + '' ); 140 document.write( ' flashvars="' + vFlashVars + '"' ); 141 document.write( ' width="' + vWidth + '" height="' + vHeight + '" align="" loop=false' ); 142 document.write( ' name="' + vId + '"' ); 143 document.write( ' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">' ); 144 document.write( '</embed>' ); 145 document.write( '</object>' ); 146} 147 148function showFlashB( vWidth, vHeight, vId, vFileName, vFlashVars ) { 149 showFlash( vWidth, vHeight, vId, vFileName, "#000000", vFlashVars ); 150} 151 152function showFlashW( vWidth, vHeight, vId, vFileName, vFlashVars ) { 153 showFlash( vWidth, vHeight, vId, vFileName, "#ffffff", vFlashVars ); 154} 155 156//! å¥çªãªã¼ãã³ 157// 158// 159function openWindow(url) 160{ 161 window.open(url, '', 'width=600, height=700, menubar=no, toolbar=no, location=no, scrollbars=yes'); 162 return false; 163}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.