1 | /* |
---|
2 | * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. |
---|
3 | * |
---|
4 | * http://www.lockon.co.jp/ |
---|
5 | */ |
---|
6 | |
---|
7 | // ************** ÀßÄêÉôʬ ******************* |
---|
8 | |
---|
9 | // Flash¥Õ¥¡¥¤¥ë¤Ø¤ÎÁêÂХѥ¹ |
---|
10 | var flashFilePath = "swf/index.swf"; |
---|
11 | |
---|
12 | // Flash²£Éý |
---|
13 | var flashWidth = "400"; |
---|
14 | |
---|
15 | // Flash½ÄÉý |
---|
16 | var flashHeight = "279"; |
---|
17 | |
---|
18 | // Flash¤ÎɬÍץС¼¥¸¥ç¥ó |
---|
19 | var reqVersion = 6; |
---|
20 | |
---|
21 | // Flash¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤Ê¤¤¤È¤¤Ëɽ¼¨¤¹¤ë¥á¥Ã¥»¡¼¥¸ |
---|
22 | var noFlashMsg = |
---|
23 | "<table width=\"400\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" summary=\" \">" |
---|
24 | +"<tr><td colspan=\"3\"><img src=\"./img/flash/image_flash01.jpg\" width=\"400\" height=\"174\" alt=\"\"></td></tr>" |
---|
25 | +"<tr>" |
---|
26 | +"<td><img src=\"./img/flash/image_flash02.jpg\" width=\"140\" height=\"22\" alt=\"\"></td>" |
---|
27 | +"<td><a href=\"http://www.macromedia.com/shockwave/download/download.cgi?P5_Language=Japanese&Lang=Japanese&P1_Prod_Version=ShockwaveFlash&Lang=Japanese\" target=\"_blank\"><img src=\"./img/flash/download.gif\" width=\"205\" height=\"22\" alt=\"\" border=\"0\"></a></td>" |
---|
28 | +"<td><img src=\"./img/flash/image_flash03.jpg\" width=\"55\" height=\"22\" alt=\"\"></td></tr>" |
---|
29 | +"</tr>" |
---|
30 | +"<tr><td colspan=\"3\"><img src=\"./img/flash/image_flash04.jpg\" width=\"400\" height=\"84\" alt=\"\"></td></tr>" |
---|
31 | +"</table>"; |
---|
32 | |
---|
33 | |
---|
34 | // ************** ¥á¥¤¥ó ********************* |
---|
35 | |
---|
36 | var maxVersion = 7; |
---|
37 | var actualVersion = 0; |
---|
38 | var jsVersion = 1.0; |
---|
39 | var noflashflag; |
---|
40 | var flash2Installed = false; |
---|
41 | var flash3Installed = false; |
---|
42 | var flash4Installed = false; |
---|
43 | var flash5Installed = false; |
---|
44 | var flash6Installed = false; |
---|
45 | var flash7Installed = false; |
---|
46 | var rightVersion = false; |
---|
47 | var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; |
---|
48 | var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false; |
---|
49 | jsVersion = 1.1; |
---|
50 | |
---|
51 | if(isIE && isWin){ |
---|
52 | document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); |
---|
53 | document.write('on error resume next \n'); |
---|
54 | document.write('flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n'); |
---|
55 | document.write('flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n'); |
---|
56 | document.write('flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n'); |
---|
57 | document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n'); |
---|
58 | document.write('flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n'); |
---|
59 | document.write('flash7Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n'); |
---|
60 | document.write('</SCR' + 'IPT\> \n'); |
---|
61 | } |
---|
62 | |
---|
63 | |
---|
64 | |
---|
65 | |
---|
66 | function detectFlash() { |
---|
67 | |
---|
68 | if (navigator.plugins) { |
---|
69 | if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { |
---|
70 | var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; |
---|
71 | var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description; |
---|
72 | var flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1)); |
---|
73 | flash2Installed = flashVersion == 2; |
---|
74 | flash3Installed = flashVersion == 3; |
---|
75 | flash4Installed = flashVersion == 4; |
---|
76 | flash5Installed = flashVersion == 5; |
---|
77 | flash6Installed = flashVersion == 6; |
---|
78 | flash6Installed = flashVersion >= 7; |
---|
79 | } |
---|
80 | } |
---|
81 | |
---|
82 | for (var i = 2; i <= maxVersion; i++) { |
---|
83 | if (eval("flash" + i + "Installed") == true) actualVersion = i; |
---|
84 | } |
---|
85 | |
---|
86 | if(navigator.userAgent.indexOf("WebTV") != -1) actualVersion = 3; |
---|
87 | |
---|
88 | if (actualVersion >= reqVersion) { |
---|
89 | rightVersion = true; |
---|
90 | document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"" + flashWidth + "\" height=\"" + flashHeight + "\">"); |
---|
91 | document.write("<param name=\"movie\" value=\"" + flashFilePath + "\">"); |
---|
92 | document.write("<param name=\"quality\" value=\"high\">"); |
---|
93 | document.write("<param name=\"bgcolor\" value=\"#ffffff\">"); |
---|
94 | document.write("<param name=\"loop\" value=\"false\">"); |
---|
95 | document.write("<embed src=\"" + flashFilePath + "\" quality=\"high\" bgcolor=\"#ffffff\" loop=\"false\" width=\"" + flashWidth + "\" height=\"" + flashHeight + "\" type=\"application/x-shockwave-flash\" pluginspage=\"http://wsww.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" Name=\"opening\"></embed>"); |
---|
96 | document.write("</object>"); |
---|
97 | } else { |
---|
98 | document.write(noFlashMsg); |
---|
99 | } |
---|
100 | } |
---|
101 | |
---|
102 | |
---|
103 | |
---|
104 | detectFlash(); |
---|