471,066 Members | 1,233 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,066 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 1471
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by rez | last post: by
3 posts views Thread by Need More Challenge | last post: by
12 posts views Thread by Marc | last post: by
15 posts views Thread by musicmouse | last post: by
10 posts views Thread by News | last post: by
4 posts views Thread by Nathan Sokalski | last post: by
reply views Thread by leo001 | last post: by

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.