|
Тема
|
Speshno HELP!!! ... detect player?
|
|
Автор |
..::piks::.. (jugger) |
Публикувано | 16.10.02 15:19 |
|
zdravejte!
nalogashto mi e da naparvq html za
check for flash player 6
..
s dreamweaver syzdavam behaviors "check plugin"
no nikyde ne vigdam koq versiq checkva
a mi trqbva to4no za 6-ta!
nqkoj pravil li e podobno neshto?
help pls!
•fish•doesen't•think•coz•fish•know•everything•
| |
Тема
|
Re: Speshno HELP!!! ... detect player?
[re: ..::piks::..]
|
|
Автор |
dCL (непознат
) |
Публикувано | 16.10.02 16:26 |
|
Na4ina koito az znam e sledniq:
Za da proverish dali flash-a e versiq 6,x,x,x ti trqbva FLASH4 :). Pravish HTML i vyv nego
edno flash4e sys script podoben na tozi:
if (eval("$version").substr(4, 1) == "6") {
getURL("have_flash6.html", "_self");
} else {
getURL("dont_have_flash6.html", "_self");
}
stop();
koeto ozna4ava 4e ot stringa version ot poziciq 4 vzimash string s dyljina 1.
$version vryshta slednoto za razli4nite OS-ove:
MAC 6,x,x,x
WIN 6,x,x,x
UNIX 6,x,x,x
primerno. Ta ti vzimash to4no tazi shestica (za UNIX nqma da e 4 a shte e 5) :).
I ako tazi stoinost e "6" otivash na have_flash6.html ako lli ne-
otivash na dont_have_flash6.html
Drug variant ne znam.
| |
|
....neshto mi se motashe ideata 4e sym vigdala detect ot flash
no ne znaeh kak stava
blagodarq !
..vse pak namerih i drug na4in ..
ako na nqkoj mu potrqbva ...
<SCRIPT language="JavaScript">
<!--
var checkingversion = 0;
function Flash_checkForPlugIn() {
var flashmimeType = "application/x-shockwave-flash";
var hasplugin = (navigator.mimeTypes && navigator.mimeTypes[flashmimeType]) ? navigator.mimeTypes[flashmimeType].enabledPlugin : 0;
return hasplugin;
}
function Flash_getPlugInVers() {
if(Flash_checkForPlugIn()) {
var plugin = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
var pluginversion = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1))
return pluginversion;
} else {
return 0;
}
}
function Flash_checkVersion(version) {
try
{
var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+version);
if ( xObj==null )
return false;
else
return true;
}
catch (e)
{
return false;
}
}
// Check the browser...we're looking for ie/win
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; // true if we're on ie
if( isIE ){
if ( Flash_checkVersion(6) )
window.location='main.html';
else
window.location='main2.html';
} else {
if ( Flash_getPlugInVers() == 6 )
window.location='main.html';
else
window.location='main2.html';
}
//-->
</SCRIPT>
•fish•doesen't•think•coz•fish•know•everything•
| |
|
Ot kolko vreme ne se poqvqvash ;)))
Nachina na dCL e po-dobur variant ot JavaScripta( lichno mnenie ) , samo trqbva da dobavish edin
<meta http-equiv="refresh" content="5;URL=noFlash.html">
v glavata na dokumenta, za tezi, koito nqmat izobshto Flash plug-in...
Dragi chlenuvashti v klubcheto...da posreshtnem edin ot nai-nai-starite chlenove
|Не закусвам-влюбен съм. Не обядвам-влюбен съм. Не вечерям-влюбен съм. Не спя-гладен съм|
| |
Тема
|
Re: Speshno HELP!!! ... detect player?
[re: ..::piks::..]
|
|
Автор | venata (Нерегистриран) |
Публикувано | 18.10.02 17:03 |
|
http://www.macromedia.com/software/flash/download/deployment_kit/
| |
|
|
|
|