Download Site control Introduction: Show All characters show scripts hide introduction and other functions _ javascript skills

Source: Internet
Author: User
Some download websites try to control the word display of the software introduction for the sake of overall unification, or the implementation of a small function due to reasons such as too many word descriptions leading to the relatively low download link.

<P id = "cText"> Cerberus FTP Server is an FTP Server software, it provides professional-level SSL/TLS encryption standards and powerful FTP server performance while maintaining the ease of use features. The software occupies a small amount of CPU and memory. It has a friendly user interface and can be quickly accessed through the system tray icon. The program supports multi-nic environments, integration with system user accounts, active directories, continuous transfer, user permission control, connection limit, timeout settings, automatic IP address blocking, and blacklist, you can install the system service to provide services without logging on to the system. It provides real-time monitoring functions to view user operation statuses in real time or disconnect or block users. It also provides traffic statistics. In addition, the function of Automatically Obtaining public IP addresses is provided to facilitate server publishing by Intranet users. The built-in Web remote management interface allows you to view and manage server connections. Supports Windows Vista. Free Software, no registration required. The Chinese version features the program interface, system logs, server response information, and data statistics. Due to the program itself, some information on the Web management interface may not be displayed completely after being compiled, so it is not processed and will not affect the use of the program. PS: the status of the original program system tray is displayed online, whether online or offline. </P> <script language = "javascript">/* hideText */function hideText (e, conLen, str1, str2) {textBox = document. getElementById (e); if ("" = conText) {conText = textBox. innerHTML;} if (navigator. appName. indexOf ("Explorer")>-1) {if (textBox. innerText. length <conLen) {return;} textBox. innerHTML = textBox. innerText. substr (0, conLen);} else {if (textBox. textContent. length <conLen) {return;} textBox. innerHTML = textBox. textContent. substr (0, conLen);} textBox. innerHTML + = '... </p> <p style = "float: right; margin-top: 5px;"> '+ str1 +' </p> ';} function showText (e, conLen, str1, str2) {textBox = document. getElementById (e); textBox. innerHTML = conText + '</p> <p style = "float: right; margin-top: 5px;">' + str2 + '</p> ';} var conText = ""; hideText ("cText", 300, "[show all]", "[hide Introduction]"); script
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]


Note: put all the introductions in one p, ensure that there is an id, and then load js. The following js should be used later in the introduction.

The Code is as follows:


Var conText = "";
HideText ("cText", 300, "[show all]", "[hide Introduction]");

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.