Can this be done in FrontPage


J

jnm

I have an old java script which places an arrow.gif in the lower right hand
corner of the screen at all times regardless of scrolling and or resizing
the screen. The arrow is a hot spot, which scrolls to the top of the page.
It works fine, but won't validate because it is based on non-standard code.

It looks like this:



<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<meta name="GENERATOR" content="Microsoft FrontPage 4.0">

<meta name="ProgId" content="FrontPage.Editor.Document">

<title>Test page</title>



<script language="JavaScript">

function SetCorners() {

LR.style.left = document.body.scrollLeft +
document.body.clientWidth - LR.width;

LR.style.top = document.body.scrollTop +
document.body.clientHeight - LR.height;

}

</script>

</head>



<body onLoad="init();SetCorners();" leftmargin="10" topmargin="22"
marginheight="10" marginwidth="10"

onResize="SetCorners()" onScroll="SetCorners()">



<a href="javascript:scroll(0,0)"><img id="LR" src="images/arrow.gif"
border="0" style="position: absolute; left.2; top:4" width="23" height="36"
alt="To top of page" /></a>



</body>

</html>



I believe this may be done in another way, but I can't find it.

Any help in this news group??

Regards

Jorgen
 
Ad

Advertisements

T

Tina Clarke

jnm said:
I have an old java script which places an arrow.gif in the lower right hand
corner of the screen at all times regardless of scrolling and or resizing
the screen. The arrow is a hot spot, which scrolls to the top of the page.
It works fine, but won't validate because it is based on non-standard code.

It looks like this:

Like css put the javascript into an external sheet .. google for how to do
it .. as I've only done it once and I've forgot how, but join a javascript
group to get help with validating your js.

Tina


--
http://accessfp.net/ - FrontPage Tutorials
http://anyfrontpage.com/ - http://frontpage-ebooks.com/
http://addonfp.com/ - FrontPage Addons
http://frontpage-tips.com/ - Weekly FrontPage Tips
http://msmvps.com/frontpage/ - FrontPage News & Articles Blog
http://frontpage-advice.blogspot.com/ - FrontPage Advice Blog
http://artdoodle.com/ - Abstract Pen and Ink Drawings
 
Ad

Advertisements

J

jnm

My question is?

How may this functionality be achieved by another code / updated code / new
idea / ??? which validates.

I will try the include idea

Regards

Jorgen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top