var  posY=100
 var posX=100
 var pageY=is.ie?document.body.scrollTop:window.pageYOffset;
 var pageX=is.ie?document.body.scrollLeft:window.pageXOffset;
 posY+=pageY
 posX+=pageX

This adds the visible dimensions to the scroll offset.
tested only IE+NS4

Cheers,
Richard Bennett

[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2)
Find the DynAPI faq here:
http://sourceforge.net/docman/display_doc.php?docid=656&group_id=5757
Browse the mailinglist here:
http://www.mail-archive.com/index.php3?hunt=dynapi


----- Original Message ----- 
From: "Matthew A. Shirey" <[EMAIL PROTECTED]>
To: "Dynapi-Help (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, February 20, 2001 12:57 AM
Subject: [Dynapi-Help] Page Top Coordinate


> Hey all,
> 
> I am not sure exactly how to phrase this question...  I need to know
> what the top y coordinate is for the visible portion of the page.  If
> the user was to scroll down a ways, how would I find the y position for
> the top of the visible page?
> 
> -- Matthew
> 
> ============================================
> Matthew A. Shirey
> Software Engineer
> Center for Teaching, Learning, & Technology
> Washington State University
> E-Mail: [EMAIL PROTECTED]
> Office: 5-0476
> ============================================
> 
> 
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
> ____________________________________________________________
> Get your free domain name and domain-based e-mail from      
> Namezero.com. New!  Namezero Plus domains now available.    
> Find out more at: http://www.namezero.com                   
> 


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to