![]() |
|
| |||||||
| Notices |
| mySQL & PHP Discussions, information and help with mySQL and PHP. |
![]() |
| | LinkBack | Thread Tools |
|
#1
| ||||
| ||||
| 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 |
|
#2
| ||||
| ||||
| Hi. Do you mean you just want a link to return to top of page? If so forget all of that above! In BV builder, click "insert" menu, "bookmark". Right click the bookmark that appears, click properties, name the bookmark something like "top". Place it at top of page. Open a text box, type in "Top of Page", or whatever. Highlight and click hyperlink, in hyperlink box, click "bookmark" dropdown, and click on whatever you named your bookmark. Done! |
|
#3
| ||||
| ||||
| Hi, this thread may help. LINK
__________________ From Chris, www.collectors-info.com View sites in FF & IE, with res @ 1024 x 768 on 19” screens. How to ask for help on the forum. - VH prices. - BV Tutorials. - Using PIXresizer - Image/Photo Tips |
|
#4
| ||||
| ||||
| Darn, I'm not using BV. Any other way?
__________________ 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 |
|
#5
| ||||
| ||||
| Lucy, The "bookmark" command is a standard HTML function, and is consistent throught the many builders and choices of formats. If you are not using Blue Voda, what are you using? (Since this is the VodaHost Support Network) You can do the same thing in Dreamweaver, CoffeeCup, FrontPage, etc. and the command strike is the same (#), but you just need to learn how to use your particular tool. In this script, you can see the command strike....but I do not believe you need to use a written script if your tool generates one for you: <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>
__________________ My Websites... VodaHost Support....Soholaunch Support....osCommerce Support |
|
#6
| ||||
| ||||
| Supposing that your web builder doesn't support bookmarks, you can build them your self. Ad a small html code in the place where you want to have the bookmark. In this case, <div id="bookmark1" style="position:absolute;left:0px;top:0px;width:51 px;height:45px;z-index:0" align="left"> <a name="bookmark1"> </a> </div> Now, insert a piece of text like "Top of page" at the page bottom, and link it to the bookmark, using again a piece of html code: <font style="font-size:13px" color="#000000" face="Arial"><a href="#bookmark1">Top of page</a></font> Customize font, color, size and text as required (parts in RED)
__________________ Navaldesign Logger Lite: Low Cost, Customizable, multifeatured Login script Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more.... Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA! |