|
 |
asp_web_howto thread: help with netscape
Message #1 by "Jesse Finander" <jfinander@h...> on Wed, 17 Jan 2001 17:01:50 +1100
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0030_01C080A7.2F2C4CA0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
hello,
I've created a website www.d2001.net and this site was created
fo ie 4+ because it uses css by changing their visibility example
function showtext(textobj){
eval("document.all."+textobj+".style.visibility=3D'visible'")
}
now my problem is how to convert this to work on netscape 4.5 or six?
i used the tag <span> in the html, do i need to change this to <div> or
<layer>?
what is the Java script for netscape that will change the visibilty?
i've tried a few things but nothing works
please help
jesse
Message #2 by "Gerhard Wentink" <wentink@w...> on Wed, 17 Jan 2001 10:11:31 +0100
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_001B_01C0806D.DD5A3100
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I initialize the function below in the body onload event:
(onload=3D"init();)
Then I can change the visibility of the <div> element by referencing the
id as in
showLayer('divID');
or
hideLayer('divID')
This works in Netscape 4, 6 and in IE.
But by the way I thought this newsgroup is about ASP.
var layerRef=3D"null",styleSwitch=3D"null";
function init(){
if (navigator.appName =3D=3D "Netscape") {
if(document.getElementById) {
layerRef=3D"document.getElementById('";
styleSwitch=3D"').style";
}
else if(document.layers) {
layerRef=3D"document.layers['";
styleSwitch=3D"']";
}
}
else{
layerRef=3D"document.all('";
styleSwitch=3D"').style";
}
}
function showLayer(layerName){ eval(layerRef+layerName
+styleSwitch+'.visibility=3D"visible"');
}
function hideLayer(layerName){
eval(layerRef+layerName+styleSwitch+'.visibility=3D"hidden"');
}
Gerhard Wentink
wentink@w...
www.webset.nl
----- Original Message -----
From: Jesse Finander
To: ASP Web HowTo
Sent: Wednesday, January 17, 2001 7:01 AM
Subject: [asp_web_howto] help with netscape
hello,
I've created a website www.d2001.net and this site was created
fo ie 4+ because it uses css by changing their visibility example
function showtext(textobj){
eval("document.all."+textobj+".style.visibility=3D'visible'")
}
now my problem is how to convert this to work on netscape 4.5 or six?
i used the tag <span> in the html, do i need to change this to <div>
or <layer>?
what is the Java script for netscape that will change the visibilty?
i've tried a few things but nothing works
please help
jesse
---
MaximumASP offers enhanced hosting solutions on the Windows 2000
platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial
components provided; custom components allowed.
$subst('Email.Unsub')
|
|
 |