Some skills to do a web page

xiaoxiao2021-03-05  22

Q:

Realize Double-click Automatic scrolling.

A: Add the following code to the page you need to automatically scroll

Var Currentpos, Timer;

Function initialize () {

Timer = setInterval ("ScrollWindow ()", 1);

}

Function sc () {

ClearInterval (Timer);

}

Function scrollwindow () {

Currentpos = document.body.scrolltop;

Window.scroll (0, CurrentPos);

IF (CurrentPos! = Document.body.scrolltop) {

sc ();

}

}

Document.onmousedown = sc;

Document.ondblclick = initialize;

Q:

Mouse specifiers.

A: The mouse will appear on the link will appear in the explanation, with scrolling text description

put the mouse Try it up