473,699 Members | 2,564 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

netscape 4, modify html

I know Netscape 4 is Ancient and horrible but I need to make my site
Netscape 4.8 compatible. But how can I rewrite HTML code/do minor DTHML
on my site with Netscape 4/4.8, document.write works, but I cant remove
anything with it. Mostly what I need to do is remove/disable a embed or
object tag if a user clicks a button, and write it back in if they
click another. IE 4's DOM is so so so so much better and so much more
Dom Level 1.

Jul 23 '05 #1
5 1724
In article <11************ **********@f14g 2000cwb.googleg roups.com>,
bu****@hotmail. com says...
I know Netscape 4 is Ancient and horrible but I need to make my site
Netscape 4.8 compatible. But how can I rewrite HTML code/do minor DTHML
on my site with Netscape 4/4.8, document.write works, but I cant remove
anything with it. Mostly what I need to do is remove/disable a embed or
object tag if a user clicks a button, and write it back in if they
click another. IE 4's DOM is so so so so much better and so much more
Dom Level 1.


What about hiding stuff in <layer></layer> and toggle its visibility
using the document.layers collection?

--
Hywel http://kibo.org.uk/
I do not eat quiche.
Jul 23 '05 #2


bu****@hotmail. com wrote:
I know Netscape 4 is Ancient and horrible but I need to make my site
Netscape 4.8 compatible. But how can I rewrite HTML code/do minor DTHML
on my site with Netscape 4/4.8, document.write works, but I cant remove
anything with it. Mostly what I need to do is remove/disable a embed or
object tag if a user clicks a button, and write it back in if they
click another.


Frankly if you do not have a clue about NN 4 and are building a web site
now then make it NN 4 compatible by serving static HTML to NN 4 with
script for DOM browsers with appropriate checks so that NN 4 users do
not get script errors.
That way the site works for NN 4 users, even if dynamic effects are not
there.

The only thing that Netscape 4 can do dynamically besides scripting
forms is the manipulation of the visibility, clipping, background, and
complete content of what it sees as layers.
Thus if you have CSS

<style type="text/css">
#embedLayer {
position: relative;
}
</style>

and HTML

<div id="embedLayer" >...</div>

then in NN 4 you can hide that div using

var layer;
if (document.layer s && (layer = document.layers .embedLayer)) {
layer.visibilit y = 'hide';
}

But the div is only hidden then, no reflow happens (as would in modern
browsers if you scripted the CSS display property) so whatever layout
space the div had is now simply an empty block.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #3
Hiding a Windows Media Player instance doesnt make it quiet (except in
Mozilla), I guess I'll just have to do browser detection and hard code
for WMP and use LiveConnect .

Jul 23 '05 #4
Correction, hiding it in mozilla doesnt make it quiet.
bul...@hotmail. com wrote:
Hiding a Windows Media Player instance doesnt make it quiet (except in Mozilla), I guess I'll just have to do browser detection and hard code for WMP and use LiveConnect .


Jul 23 '05 #5


bu****@hotmail. com wrote:
Hiding a Windows Media Player instance doesnt make it quiet (except in
Mozilla)


You can clear the complete content of a layer in NN 4 as follows:

<html lang="en">
<head>
<title>rewritin g a layer in NN 4</title>
<script type="text/javascript">
function clearLayer (layerId) {
var layer;
if (document.layer s && (layer = document.layers[layerId])) {
layer.document. open();
layer.document. write('');
layer.document. close();
}
}
</script>
<style type="text/css">
#embedLayer {
position: relative;
}
</style>
</head>
<body>
<div id="embedLayer" >
<p>Kibology for all.</p>
</div>
<p>
<a href="#"
onclick="clearL ayer('embedLaye r'); return false;">clear</a>
</p>
</body>
</html>

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
3093
by: Ingmund Sjåstad | last post by:
Trying to make a dropdown menu. I working nice in IE6 but when I try a link in Netscape 7 nothing happens. Can anybody help me? <html> <head> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>JS</title> </head>
9
2550
by: rez | last post by:
I find it rather frustrating that Netscape 4.x is "no longer supported:" http://help.netscape.com/products/client/communicator/reflib.html Same seems true with IE. How am I ever supposed to make my scripts multi-browser, when they don't bother giving me basic documentation?
6
1390
by: Telemak | last post by:
Hello, I've got a trouble with my script, i want to show a <div> on Netscape and it doesn't work: Here is the script //navigators identification
2
1652
by: lmeng | last post by:
Hi, I am new to this Forum. Thanks in advance for any kind help. In the following HTML code, when I change the value of one text field then click "Modify" button, if the validation fails a message will popup and the cotent of the form should NOT be submitted. (The actual code connects to the database at the backend so I can check if the value is submmited).
2
1410
by: Norman Swartz | last post by:
OS system is Windows XP Pro SP2. The following works perfectly in IE but not at all in Netscape: <tr> <td valign="middle" background="dull.gif" onMouseOver="this.background='bright.gif';" onMouseOut="this.background='dull.gif';" bgcolor="#FFFFFF"> <img src="vspacer.gif" height="46" width="20" align="left">
5
1658
by: zaw | last post by:
Hi I am working on implementing this script to shopping cart. Basically, it copies fill the shipping address from billing automatically. I believe one or more syntax is not netscape compatible. Can anyone point out which one it is and how to make it both netscape and MS browser compatible? I hope if I can make the script compatible for those two at extreme, it will probably work with most browser out there. As you would notice, this form...
7
1847
by: David Laub | last post by:
I have stumbled across various Netscape issues, none of which appear to be solvable by tweaking the clientTarget or targetSchema properties. At this point, I'm not even interested in "solving" these problems - I'm more interested in isolating them, .i.e. finding a "complete" list of issues. Here's my list of serious issues found so far. By serious, I mean functionality that fails, as opposed to much less serious (albeit annoying) display...
6
1910
by: qqq | last post by:
I'm a relative newbie... I'd like my site to support Netscape browsers. For a page I set 'TargetSchema' to 'IE 3.02/Netscape 3'. When I insert label or textbox web controls on the page, they appear with no size/color/border attributes etc. when viewed in Netscape. They appear just fine in IE. Can someone please explain? Thanks - Paul.
4
1273
by: Neal | last post by:
Hi All I developed a site in ASP.Net 2003, which is great in IE 5.5 + but a lot of our users at the University use Netscape and it just don't work in Netscape. Hyperlinks (webform) align themselves left to right, half don't function even. Listboxes and Data Grids and Calendar controls... don't even render. ie Useless . Any help on this would be appreciated.
0
9180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9038
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8920
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8887
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6536
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3060
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2351
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.