borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Replacement for filelist?)Next Topic (Read/Write ViewState) New Topic New Poll Post Reply
AndreaVB Forum : ASP.Net : Still Need Java
Poster Message
dcostelloe
Level: VB Guru

Registered: 11-06-2002
Posts: 74

icon Still Need Java

Finding little annoying things with Netscape 6.0 one is that my site looks crappy on it...so
Here is the way to beat that:
Add a Default.htm to your project and set it as Startup Page.

Then add this to the HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Default</title>
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="ProgId" content="VisualStudio.HTML">
<meta name="Originator" content="Microsoft Visual Studio.NET 7.0">
</head>
<BODY onload="init();">
<script language="javascript">
<!--
function init()
{
isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
NS4 = (document.layers) ? true : false;
IEmac = ((document.all)&&(isMac)) ? true : false;
IE4plus = (document.all) ? true : false;
IE4 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 4.")!=-1)) ? true : false;
IE5 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 5.")!=-1)) ? true : false;
IE6 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 6.")!=-1)) ? true : false;
ver4 = (NS4 || IE4plus) ? true : false;
NS6 = (!document.layers) && (navigator.userAgent.indexOf('Netscape')!=-1)?true:false;

IE5plus = IE5 || IE6;
IEMajor = 0;

if (IE4plus)
{
var start = navigator.appVersion.indexOf("MSIE");
var end = navigator.appVersion.indexOf(".",start);
IEMajor = parseInt(navigator.appVersion.substring(start+5,end));
IE5plus = (IEMajor>=5) ? true : false;
}

if (NS4)  location="NonIE55.htm";
if (IE4plus)  location="NonIE55.htm";
if (isMac) location="NonIE55.htm";
if (IEmac) location="NonIE55.htm";
if (IE4) location="NonIE55.htm";
if (IE5) location="MasterFrame.htm";
if (IE6) location="MasterFrame.htm";
if (NS6) location="NonIE55.htm";

}
//-->
</script>
</BODY>
</html>

This Java came from many sources I just put them into one.
Hope this helps


____________________________
Life is but a merry go round
around and around :-)

Visit us today:
http://www.welford-costelloe.com

02-09-2002 at 01:17 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : ASP.Net : Still Need Java
Previous Topic (Replacement for filelist?)Next Topic (Read/Write ViewState) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder