View Single Post
  #1  
Old 11-10-2007, 02:41 AM
MoodyMare's Avatar
MoodyMare MoodyMare is offline
Second Lieutenant
 
Join Date: Aug 2007
Location: Ontario, Canada
Posts: 121
Default Require "Top Of Page" code pls

Does anyone have a short top of page code?
I found this on while searching, but I don't really want the time out feature. And it looks a bit complicated.


<!-- ONE STEP TO INSTALL TOP OF PAGE:

1. Copy the coding into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the BODY of your HTML document,
at the end of the page, before the </BODY> tag -->
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
/* Message to be displayed */
var topOfPageMsg='<a href="#" class="top">Top of Page</a>';
var ie4=document.all&&navigator.userAgent.indexOf("Ope ra")==-1;
var ns6=document.getElementById&&navigator.userAgent.i ndexOf("Opera")==-1;
var ns4=document.layers;
lC=(ie4)? document.body.scrollHeight : document.height;
rC=(ie4)? document.body.clientHeight : window.innerHeight-20;
if(lC>rC) {
document.write(topOfPageMsg);
}
var agt=navigator.userAgent.toLowerCase();
function nsReload() { window.location.reload(); }
function reLoad() {
if (ns4&&(agt.indexOf("win")!=-1)) {
setTimeout("window.onresize=nsReload", 500);
}
}
if(ns4) {
reLoad();
}
else if(ie4) {
window.onresize=new Function("window.location.reload()");
}
// End -->
</script>

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="<A href="http://javascriptsource.com">The">http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 1.20 KB -->

Thanks
__________________
www.UFindABiz.com
World Wide Web-based Business Directory
www.reikiforhorses.ca
Balance Your Horse's Energy For Self-Healing
www.lucynixon.ca
Reiki For Pets and Their People
Reply With Quote