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