Well, as Ipad comes to my eyes,It gives us a brand-new exprience than ever,but as a RIA developer I have to say something that is not perfect as our imagination,like css 's atribute position:fixed, safari on ipad doesnt work at all,after surfing online a lot,I realize I have to handle it instead of javascript,it is not good like css,but it works anyway
my solution is :
document.ontouchmove = function () {
hide your content you want to follow the scrollbar
}
window.onscroll = function reportScroll() {
// window.pageYOffset ;
get the pageYOffset then caculate its position and set the value for it
}
try it and good luck
|