Home > Web Front-end > JS Tutorial > Use JS to automatically open the implementation code of the link on the page_javascript skills

Use JS to automatically open the implementation code of the link on the page_javascript skills

WBOY
Release: 2016-05-16 18:01:56
Original
1382 people have browsed it

Make a simple note here to prevent yourself from forgetting.

The following are the main functions for automatically clicking and opening links. The functions will not be described in detail to prevent too many people from abusing them. People who are interested will understand at a glance that changing it is an evil program:

Copy code The code is as follows:

function randopen()
{
var len = $(“#urllist option”).length;
var num = 10;
for(i=1; i<=num; i )
{
randnum = Math.random()* len;
zn = Math.round(randnum);
u = $(“#” zn).val();
window.open(u,”urlfrm” i);
}
}

Record this for your reference only.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template