At 12:28 PM 7/7/00 +0700, you wrote:
>Hai, ada yg tahu source untuk detect apakah suatu browser user, memiliki
>flash
>plug-ins dan dapat di-direct langsung sesuai hasil detectnya? (versi flash
>/ non
>flash)?
>
>thanks
<script LANGUAGE="JavaScript">
<!--
function detectFlash(){
//********Set the names of your web pages here:*****
macie = "macie.htm"
flash = "flashed.htm"
noflash = "needflash.htm"
//**************************************************
if (navigator.appName == "Microsoft Internet Explorer" &&
navigator.appVersion.indexOf("Mac") != -1 )
{
window.location=macie;
}
var plugin = (navigator.mimeTypes &&
navigator.mimeTypes["application/x-shockwave-flash"] ?
navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0);
if ((navigator.appName == "Microsoft Internet Explorer" &&
navigator.appVersion.indexOf("Mac") == -1 &&
navigator.appVersion.indexOf("3.1") == -1) || (plugin &&
parseInt(plugin.description.substring(plugin.description.indexOf(".")-1))>=
4))
{
window.location=flash;
}
else
{
window.location=noflash;
}
}
// -->
</script>
To activate, simply use <body onLoad="javascript:detectFlash()">
- Pusing milih POP3 atau web mail? http://mail.telkom.net solusinya
To unsubscribe, e-mail : [EMAIL PROTECTED]
To subscribe, e-mail : [EMAIL PROTECTED]
Netika BerInternet : [EMAIL PROTECTED]
Arsip di http://www.mail-archive.com/[email protected]/