Home Web Front-end JS Tutorial csdn forum technical area average score function_javascript skills

csdn forum technical area average score function_javascript skills

May 16, 2016 pm 06:42 PM
forum

1 Average points will be given to each person (repeated replies will only be given one point):
javascript:var t=function(tag,s) { return (s ||document).getElementsByTagName(tag);};var n=function (name){return document.getElementsByName(name)};var total=t("var")[0].innerHTML-0;var scores=n("tb_score");var lz=t("a",t ("var")[0].parentNode)[0].innerHTML;var c={};c[lz]=lz;for(var i=0;i
Source code:

Copy code The code is as follows:

var t=function(tag,s) { return (s ||document).getElementsByTagName(tag);};
var n=function(name){return document.getElementsByName(name)};
var total=t("var")[0].innerHTML-0;
var scores=n("tb_score");
var lz=t("a",t("var" )[0].parentNode)[0].innerHTML;
var c={};
c[lz]=lz;
for(var i=0;i var v=t("a",scores[i].parentNode)[0].innerHTML;
if(!c[v]) {
c[v]=v;
scores[i].value=scores[i].value-0 1;
total--;
if(total==0)break;
}
if(i==scores .length-1){i=-1;c={};c[lz]=lz;}
};
alert("ok");

2 each The average floor score:
javascript:var t=function(tag,s) { return (s ||document).getElementsByTagName(tag);};var n=function(name){return document.getElementsByName(name) };var total=t("var")[0].innerHTML-0;var scores=n("tb_score");var lz=t("a",t("var")[0].parentNode) [0].innerHTML;for(var i=0;i
Source code:
Copy code The code is as follows:

var t=function(tag,s) { return (s ||document).getElementsByTagName(tag);};
var n=function(name){return document.getElementsByName(name)};
var total=t("var")[0].innerHTML-0;
var scores=n("tb_score");
var lz=t("a",t("var") [0].parentNode)[0].innerHTML;
for(var i=0;i if(t("a",scores[i].parentNode)[ 0].innerHTML!=lz) {
scores[i].value=scores[i].value-0 1;
total--;
if(total==0)break;
}
if(i==scores.length-1)i=-1;
};
alert("ok");

Explanation: Change the above Just put the code in the address bar of the post closing page and press Enter. Only use it once, otherwise negative points will occur.
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What is discuz forum? What is discuz forum? Jul 10, 2023 am 11:03 AM

The discuz forum is an online forum software, also known as BBS. It is a program system used to establish forum communities on the Internet. Zhiyo's powerful forum software can help users build a professional and complete forum community, and can implement a variety of functions, such as building user registration, logging in, viewing topics, publishing posts, making comments, setting up moderators, etc. Allow users to easily manage and maintain the forum community.

Discuz Forum Permission Management: Read Permission Setting Guide Discuz Forum Permission Management: Read Permission Setting Guide Mar 10, 2024 pm 05:33 PM

Discuz forum permission management: Read the permission setting guide In Discuz forum management, permission setting is a crucial part. Among them, the setting of reading permissions is particularly important, as it determines the scope of content that different users can see in the forum. This article will introduce in detail the reading permission settings of the Discuz forum and how to flexibly configure it for different needs. 1. Basic concepts of reading permissions In the Discuz forum, reading permissions mainly include the following concepts that need to be understood: Default reading permissions: Default after new user registration

What are the php forums? What are the php forums? Jul 25, 2023 am 11:12 AM

PHP forums include: 1. PHP Forum, the forum section of the PHP official website, which is an important platform for communication among PHP developers; 2. phphub, a well-known PHP technology community in China and one of the largest PHP technology forums in China; 3. Laracasts, an online learning platform for the Laravel framework; 4. Reddit PHP, a world-renowned social news aggregation website; 5. SitePoint, a comprehensive technology community that provides everything from web design to development.

Separation of front-end and back-end, social forum, Q&A, posting/BBS project, complete multi-terminal functions Separation of front-end and back-end, social forum, Q&A, posting/BBS project, complete multi-terminal functions Jul 25, 2023 pm 05:39 PM

Lin Feng Social Forum Mini Program | H5 Forum | App Forum is a front-end and back-end separated social forum Q&A post/BBS project developed by java+vue+uniapp, including forum graphic posts, videos, circles, IM private chat, WeChat payment, and paid posts. , points check-in, wallet recharge and other forum mini-program forum app complete functions.

Solve the Discuz login problem and browse the forum easily! Solve the Discuz login problem and browse the forum easily! Mar 09, 2024 pm 09:18 PM

In the Discuz forum system, user login problems are one of the common problems faced by users. Problems such as failed logins, inability to remember passwords, and inability to use third-party logins often trouble users and affect user experience. This article will introduce you to some methods to solve Discuz login problems and help you browse the forum easily. Login failure problem resolution: Login failure is one of the most common problems. To solve the problem of failed login, first carefully check whether the entered username and password are correct and make sure there are no input errors. If you confirm that the input is correct, but still

Discuz forum hot thread setting guide Discuz forum hot thread setting guide Mar 10, 2024 am 11:45 AM

Discuz Forum Hot Post Setting Guide With the rapid development of the Internet, the forum, as an important online community platform, plays an important role in connecting users, sharing information and exchanging opinions. In the Discuz forum, hot posts are one of the important ways to attract users and increase forum activity. By setting hot posts, administrators can display high-quality content at the top, stimulate users to participate in discussions, and increase the exposure and click-through rate of posts. This article will introduce how to set up the hot post function in the Discuz forum and provide specific code examples.

Detailed explanation of how to modify avatar in Discuz forum Detailed explanation of how to modify avatar in Discuz forum Mar 02, 2024 pm 10:06 PM

Detailed explanation of how to modify the avatar in the Discuz forum. In the Discuz forum, the avatar is an important part of the user's profile, which can help users show their personality and characteristics. By default, the Discuz forum provides some avatars for users to choose from, but sometimes users want to use avatars designed by themselves or found from external websites. This article will introduce in detail how to modify the avatar in the Discuz forum and provide specific code examples. Step 1: Log in to the Discuz backend management interface. First, you need to log in to

Discuz Forum Introduction and User Guide Discuz Forum Introduction and User Guide Mar 03, 2024 am 08:15 AM

Discuz Forum Introduction and Usage Guide With the development of the Internet, forums have become an important platform for many people to communicate and share information. Among them, Discuz is one of the most popular forum systems in China. It is famous for its rich functions and ease of use. This article will introduce the basic features of the Discuz forum, how to use the forum system to post, reply, etc., and provide some specific code examples to help readers better master related skills. 1. Basic features of Discuz forum and rich functions: Discussion on Discuz

See all articles