Scroll bars are not supported for android2.3, and scrolltop are not supported. (Setup overflow is not hidden to support).
function Nobarsontouchscreen (ARG)
{
var elem, TX, Ty;
if (' Ontouchstart ' in document.documentelement) {
if (Elem = document.getelementbyidx_x (arg)) {
Elem.style.overflow = ' hidden ';
Elem.ontouchstart = ts;
Elem.ontouchmove = TM;
}
}
function ts (e)
{
Vartch;
if (e.touches.length = = 1)
{
E.stoppropagation ();
TCH = e.touches[0];
tx = Tch.pagex;
ty = Tch.pagey;
}
}
Function TM (E)
{
Vartch;
if (e.touches.length = = 1)
{
E.preventdefault ();
E.stoppropagation ();
TCH = e.touches[0];
This.scrolltop + = Ty-tch.pagey;
ty = Tch.pagey;
}
}
}
When called: Nobarsontouchscreen (divID); Source: http://www.myexception.cn/web/411975.html
When you open a Web page with WebView, there is a div with a scrollbar, but the scroll bar on the tablet fails