JS page content search, similar to the implementation code of the Ctrl + F function

Source: Internet
Author: User

<Html>
<META HTTP-EQUIV = "Content-Type" content = "text/html; charset = gb_2312-80">
<TITLE> WinWebMail </TITLE>
<Script language = "JavaScript">
<! --
Function doZoom (size ){
Document. getElementById ('zoom '). style. fontSize = size + 'px'
}

Var DOM = (document. getElementById )? 1: 0;
Var NS4 = (document. layers )? 1: 0;
Var IE4 = 0;
If (document. all)
{
IE4 = 1;
DOM = 0;
}
Var win = window;
Var n = 0;
Function findIt (){
If (document. getElementById ("searchstr"). value! = "")
FindInPage (document. getElementById ("searchstr"). value );
}

Function findInPage (str ){
Var txt, I, found;
If (str = "")
Return false;
If (DOM)
{
Win. find (str, false, true );
Return true;
}
If (NS4 ){
If (! Win. find (str ))
While (win. find (str, false, true ))
N ++;
Else
N ++;
If (n = 0)
Alert ("specified content not found .");
}
If (IE4 ){
Txt = win.doc ument. body. createTextRange ();
For (I = 0; I <= n & (found = txt. findText (str ))! = False; I ++ ){
Txt. moveStart ("character", 1 );
Txt. moveEnd ("textedit ");
}
If (found ){
Txt. moveStart ("character",-1 );
Txt. findText (str );
Txt. select ();
Txt. scrollIntoView ();
N ++;
}
Else {
If (n> 0 ){
N = 0;
FindInPage (str );
}
Else
Alert ("specified content not found .");
}
}
Return false;
}
// -->
</Script>
<BODY>
<Br>
<Div align = "center">
<Table width = "90%" border = "0" align = "center" cellspacing = "0" bgcolor = "# EFF7FF" style = 'border: 1px #8CA5B5 solid; 'id = "zoom">
<Tr bgcolor = "# DBEAF5">
<Td height = "50" style = 'border-bottom: 1px #8CA5B5 solid; '>
<Div align = "center"> <font class = "s" color = "# 104A7B"> <B> help </B> </div>
<Div align = "center">
<Table width = "98%"> <tr> <td align = "left">
<Input type = "text" id = "searchstr" name = "searchstr" class = "textbox" size = "10">
<Input type = "button" value = "search for" onclick = "javascript: findIt ();" class = "sbttn">
</Td> <td align = "right">
View: [<a href = "javascript: doZoom (16)"> dashboard </a> <a href = "javascript: doZoom (14) "> Chinese characters </a> <a href =" javascript: doZoom (12) "> small words </a>] </font>
</Td> </tr> </table>
</Div>
</Td>
</Tr>
<Tr>
<Td> <br>
<Font color = "# FF3333"> enhanced security when logging on to the system </font> <br>
<Br>
The logon options used to enhance security on shared computers are designed for users logging in from libraries, schools, or Internet cafes. this logon option can expire the page in the browser cache when you exit the account. this indicates that once you exit, the page you access cannot be viewed by other users on the shared computer. <br>
Note: Because the page is not cached to your local disk drive, you will feel slower when using this option. <br>
<Br>
</Td>
</Tr>
<Tr>
<Td> <br>
<A name = "writemail"> </a> <font color = "# FF3333"> View emails in other languages </font> <br>
<Br>
When you receive emails in other languages, the page may be garbled. You can adjust the IE browser encoding to read the emails normally.
<Br> the method is as follows: Right-click the email content page and select the correct encoding from "encoding" in the pop-up menu.
<Br>
</Td>
</Tr>
<Tr>
<Td> <br>
<Font color = "# FF3333"> report spam </font> <br>
<Br>
We use your reported spam to improve the server's performance in filtering spam. We may also submit the reported spam to a third party to fight back spam together. <br>
<Br>
</Td>
</Tr>
<Tr>
<Td> <br>
<A name = "writemail"> </a> <font color = "# FF3333"> write HTML emails </font> <br>
<Br>
If your Web browser is Microsoft Internet Explorer 5.0 or later for Windows, you can enable the "use HTML to write emails" option in "Personal Configuration" to write emails in HTML format. You can change the font, font size, and color options. In addition, you can also set the font, underline, and style of the email. <br>
<Br>
</Td>
</Tr>
<Tr>
<Td> <br>
<Font color = "# FF3333"> quick address list </font> <br>
<Br>
The quick address list helps you enter the email address you need in the quickest way. <br>
<Br>
</Td>
</Tr>
<Tr>
<Td> <br>
<Font color = "# FF3333"> distribution group </font> <br>
<Br>
You can edit the email addresses that need to be sent in batches into a distribution group. When you write an email, you can directly enter the name of the Distribution Group to send the email to all Members in the specified Communication Group at a time. <br>
<Br>
</Td>
</Tr>
<Tr>
<Td> <br>
<Font color = "# FF3333"> upload attachments </font> <br>
<Br>
1. add an attachment: First press "Browse", select the attachment you want to add, and then press the "Upload attachment" button. At this time, the attachment will be uploaded. The larger the attachment, the longer the data transfer time will be used, please wait. <br> Note: The maximum upload length of a single attachment cannot exceed 4 MB. <br>
<Br>
2. delete an attachment: select an attachment and then click "delete". <br>
<Br>
</Td>
</Tr>
<Tr>
<Td> <br>
<Font color = "# FF3333"> storage folder </font> <br>
<Br>
1. you can upload or extract files from attachments and save them in the network bucket of your mailbox. You can directly add attachments in the network storage to the emails to be sent. <br>
<Br>
2. Because the storage folder uses your mailbox, You need to allocate the data volume of the storage folder properly. <br>
<Br>
3. When you delete subfolders in a storage folder, you must first transfer or delete the subfolders. Otherwise, the subfolders cannot be deleted. <br>
<Br>
4. You can share your stored folder data by setting a password or without a password. <br>
<Br>
</Td>
</Tr>
<Tr>
<Td> <br>
<Font color = "# FF3333"> system email sending function (this function is available only to administrators) </font> <br>
<Br>
Emails sent by the Administrator after this function is selected. users in the system can view this email through WebMail with a striking identifier. <br>
<Br>
</Td>
</Tr>
<Tr>
<Td> <br>
<Font color = "# FF3333"> private folder management </font> <br>
<Br>
1. when creating a private folder, the folder name can be numbers, characters, and Chinese characters. Long folder names are supported, but some names reserved by the system (such as: in, out ). <br>
<Br>
2. When you delete a private folder, you must first transfer or delete all emails contained in this folder. Otherwise, the folder cannot be deleted. <br>
<Br>
3. You can share your private email folder by setting a password or without a password, so that other users in the system can share your resources. <br>
<Br>
</Td>
</Tr>
<Tr>
<Td> <br>
<Font color = "# FF3333"> Read confirmation </font> <br>
<Br>
After this function is selected, after you write a letter to a user in the system, when the recipient sees the email through WebMail or downloads the email you wrote to him through POP3, the system will send you a receipt.
However, this function is only valid when the recipient is a user in the system. <br>
<Br>
</Td>
</Tr>
<Tr>
<Td> <a name = "delivermail"> </a> <br>
<Font color = "# FF3333"> transfer email </font> <br>
<Br>
A transfer email is a transfer method that transfers the email intact to the specified address. <br>
<Br>
</Td>
</Tr>
<Tr>
<Td> <br>
<Font color = "# FF3333"> email search </font> <br>
<Br>
The system can help you find emails in all mailboxes according to the time or other conditions. <br>
<Br>
1. You can search for emails by wildcard characters in the topic (mail address or sender) search. *: represents any long string ,? : Represents a single character (two Chinese characters are required ?? ). <Br>
<Br>
2. When searching for dates, please note that only emails received before today will be searched by default. <br>
<Br>
</Td>
</Tr>
<Tr>
<Td> <a name = "inclufolder"> </a> <br>
<Font color = "# FF3333"> folder sharing settings (share your private mailbox with other users) </font> <br>
<Br>
You can use this function to share your private mailbox with other users (allow other users to read the content in this folder). <br>
There are three sharing methods: <br>
<B> 1. Do not share: </B> This private mailbox is not shared to any other user. <br>
<B> 2. Add a password for sharing: </B> This private mailbox allows sharing. However, you must enter the correct password for other users to view the content in this private mailbox. <br>
<B> 3. Password-free sharing: </B> the private mailbox can be shared and the content in the private mailbox can be viewed by any other user without a password. <br>
<Br>
<B> whether to allow system display: </B> after this option is selected, this private mailbox will be added to the "system shared folder" list (you can click "shared folder" on the left to display the "system shared folder" list ), all users can see that you share a private mailbox in this list. <br>
<Br>
<B> password setting: </B> when you only want to modify the private mailbox sharing mode, display mode, or directly share the password with the specified user, you only need to enter the password. <br>
<Br>
<B> share it directly to a specified user: </B> you can share your private mailbox directly to other users in the system. (Note: We recommend that you set the sharing mode to password-based sharing. If you set this mode to password-free sharing, other users can also view your shared private mailbox) <br>
<Br>
</Td>
</Tr>
<Tr>
<Td> <a name = "ff_showall"> </a> <br>
<Font color = "# FF3333"> Add folders shared by other users to the favorites folder </font> <br>
<Br>
You can use this function to add folders shared by other users to your favorite shared folder list ("My Shared Folders"). <br>
<Br>
There are two joining methods: <br>
<B> 1. Add the following content to the list of shared folders: </B> you can click the icon at the end of the folder displayed in the system shared folder list to add the folder to favorites. <br>
Note: If the shared folder is shared after a password is added, you must enter the correct shared password to view the folders shared by other users ). <br>
<Br>
<B> 2. Add to favorites: </B> when a user in the system shares his/her private mailbox, for example, if the user is set to not allow display by the system, you will not be able to see it in "system shared folder". In this case, you must add the shared private mailbox to your shared folder List by adding it directly to the favorites folder list. however, you need to enter the user name, folder name, and password of the folder owner. <br>
Note: When the shared folder is shared without a password, you do not need to enter any password. <br>
<Br>
<B> modify: </B> when the shared folder has been changed by the original user, you can use the modify function to update the password of the folder, you can view the shared folder only after modification.
<Br>
</Td>
</Tr>
<Tr>
<Td> <a name = "showuserpop"> </a> <br>
<Font color = "# FF3333"> multi-POP3 receiving proxy </font> <br>
<Br>
If you already have other Email addresses and your friends are sending emails to those addresses, you can set the POP3 reception function, let the system extract your emails from other places to the system through the POP3 protocol.
Enter your POP3 server name or address in "server address", such as "pop.21cn.com", and enter the account name and password for receiving emails from this server, if you do not know what port your server uses,
Use the default setting "110". <br>
<Br>
</Td>
</Tr>
<Tr>
<Td> <a name = "showuserkill"> </a> <br>
<Font color = "# FF3333"> User rejection email address </font> <br>
<Br>
You can add the email address you do not want to receive to the rejection list. <br>
<Br>
</Td>
</Tr>
<Tr>
<Td> <a name = "userfiltermail"> </a> <br>
<Font color = "# FF3333"> advanced mail filtering </font> <br>
<Br>
Advanced mail filtering allows the system to help you automatically match specified conditions ("email address", "sender", "email size", or "subject ") to delete, automatically reply to, or move emails to the recycle bin. <br>
We can use this function to deal with the increasing number of spam and other undesirable emails. the sorting order of each filter is very important. When a user receives an email that meets a filter, if the filter's "post-condition processing" is aborted, this email will not be filtered using the remaining filter. <br>
<Br>
</Td>
</Tr>
<Tr>
<Td> <a name = "showusersetup"> </a> <br>
<Font color = "# FF3333"> Start related functions </font> <br>
<Br>
The POP3 receiving, email rejection, automatic reply, and automatic forwarding functions in the system will be enabled only after this function is enabled. <br>
<Br>
</Td>
</Tr>
<Tr>
<Td> <a name = "style"> </a> <br>
<Font color = "# FF3333"> account Protection </font> <br>
<Br>
To prevent you from entering the system after you forget your password, you must enter the account protection information. if you forget your password and have entered your mailbox by answering your account protection questions, please change your password immediately. <br>
<Br>
</Td>
</Tr>
<Tr>
<Td> <a name = "calshare"> </a> <br>
<Font color = "# FF3333"> Differences Between "private", "public", and "active" </font> <br>
<Br>
The "private", "public", and "active" licenses in the efficiency manual event determine how the event is displayed when others view your public efficiency manual. if you want others to see the title, description, and time of an event, you can set the event to "public ". if you want others to know that you are busy during this event, but they do not need to know what you are doing, you can set the event to "show busy ". if you do not want others to see the events you plan during this period, set the events to "private ". <br>
<Br>
</Td>
</Tr>
<Tr>
<Td> <br>
<Font color = "# FF3333"> exit email address </font> <br>
<Br>
Do not exit the mailbox directly by closing the browser. We recommend that you click "Exit" and then close all browsers to ensure the security of your mailbox. <br>
<Br>
</Td>
</Tr>
</Table>
</Div>
<Br>
</BODY>
</Html>

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.