473,231 Members | 1,684 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,231 software developers and data experts.

Convert for netscape?


Could anyone please give me a hand converting this script, written for
IE to work with netscape?

_________________________________ ______________________________________
<!--

var footerDistFromTop

footerDistFromTop = document.all.content.clientHeight+90;

document.all.footer.style.top = footerDistFromTop;

var domain = "hotmail.com"
var name = "kiznit"
var address = name + "@" + domain
var openmail = "mailto:" + address

document.write("[<a href=index.html>Home</a>] [<a href=file.html>File
</a>] [<a href=view.html>View</a>] [<a href=listen.html>Listen</a>] [<a
href=bio.html>Bio</a>] [<a href=contact.html>Contact</a>]<br>")
document.write('Text, code and images cant be used without asking ')
document.write(address.link(openmail))
document.close()


//-->
Jul 20 '05 #1
1 1535
DU
Jason wrote:
Could anyone please give me a hand converting this script, written for
IE to work with netscape?

_________________________________ ______________________________________
<!--

var footerDistFromTop

footerDistFromTop = document.all.content.clientHeight+90;

document.all.footer.style.top = footerDistFromTop;

You can get rid of the 3 above lines with this simple one which should
work in all CSS1 compliant and DOM 1 compliant browsers:

document.getElementById("footer").style.top =
document.getElementById("content").clientHeight + 90 + "px";

.... otherwise provide the url of the webpage.
var domain = "hotmail.com"
var name = "kiznit"
var address = name + "@" + domain
var openmail = "mailto:" + address

document.write("[<a href=index.html>Home</a>] [<a href=file.html>File
</a>] [<a href=view.html>View</a>] [<a href=listen.html>Listen</a>] [<a
href=bio.html>Bio</a>] [<a href=contact.html>Contact</a>]<br>")
You need to escape the / in the constructed string; also, quoting the
href values helps and appending a semi-colon for each instruction.

document.write("[<a href='index.html'>Home<\/a>] [<a href='file.html'>File
<\/a>] [<a href='view.html'>View<\/a>] [<a
href='listen.html'>Listen<\/a>] [<a
href='bio.html'>Bio<\/a>] [<a href='contact.html'>Contact<\/a>]<br>");

document.write('Text, code and images cant be used without asking ')
document.write(address.link(openmail))
document.close()


DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/
- Resources, help and tips for Netscape 7.x users and Composer
- Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x
http://www10.brinkster.com/doctorunc...e7Section.html

Jul 20 '05 #2

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

Similar topics

1
by: Sims | last post by:
Hi, if i use... // php $info = getenv("HTTP_USER_AGENT"); // I noticed that Mozzila and Netscape <6(?) both use the same Agent. // so i was thinking of if...
1
by: mark.reichman | last post by:
First off.. Thanks to Grant Wagner for help in a previous thread related to this one. I am at a total loss... I have multiple fields in a form with the same name. Lets call the fields with the...
9
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...
3
by: Need More Challenge | last post by:
Hi, I have a nice cascading menu i am trying to get to work in NS. My intention is to slowly pick through the code converting it function by function, looking for help here on specifics. Is...
12
by: Marc | last post by:
I have used XMLDataToString = DataSetForXML.GetXml() to get an XML string from a dataset. I am looking for a way to create a dataset from this XML string. I tried...
15
by: musicmouse | last post by:
In my website (www.classiccat.net) the basic layout consists of two elements: - a centered block that has a fixed with of 720 - a right-aligned Google advertising block. When the visitor has a...
10
by: News | last post by:
I have a page up trying to learn how to ID a browser and other info. http://wyght.com/warren/testPos.html here is the code <script type = "text/javascript"> var space = ", "; var name...
29
by: Jan | last post by:
Hi: I have an Access database that's been running (in one form or another) for a couple of different clients for a few years. Now a new client has requested that it be implemented with a SQL...
4
by: Nathan Sokalski | last post by:
I was testing out a page of mine that displays the information from Page.Request.Browser. It works exactly as I expected in Internet Explorer and Netscape 4.75 (I didn't expect much in Netscape...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.