|
|
|
|
|
| | |
|
Active Server Pages ASP ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: Recognize browser..how its done.. |
From: |
Kennet |
Date: |
1/13/2000 2:51:23 AM |
IP: |
195.100.149.239 |
This code works just fine for me. It took a while to get it right,
I have never done any JAVAScripting before.
Image "gif/corn_ns.gif" for NetScape users
Image "gif/corn_me.gif" for Explorer users
If anyone reading this, have a nother, and a better way of how to choose
between two images, then please send me a mail.
If anyone have this in VBScript please send me a copy...:)
Very best.
Kennet.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
<SCRIPT language="JavaScript">
<!--hide
function applikation ()
{
if (navigator.appName == "Netscape")
{
document.images[0].src="gif/corn_ns.gif";
}
else
{
document.images[0].src="gif/corn_me.gif";
}
}
//-->
</SCRIPT>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" background="/gif/list.gif">
<img src="javascript:applikation ()">
</body>
</html>
|
Previous Message
|
|
|
|
|
|
|
|
|
|
|
|