|
-
September 21st, 2007, 06:19 AM
#1
To Get the Scroll Height
Hi,
In aspx page
i wrote one function in javasript to show the scrolling height
function scrollingDetector(){
if (navigator.appName == "Microsoft Internet Explorer"){
alert("You've scrolled to " + document.body.scrollTop + " pixels.");
}else{alert ("You've scrolled to " + window.pageYOffset + " pixels.");}
}
and calling this function in <body onscroll= scrollingDetector()
this one is working fine if am not including this below line in the top of <html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
but if i include this line onscroll property of body is not working.
Anybody please help me why it is happening..
waiting for your valuable response
Veeres
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|