A good application that is used to submit and obtain the content of an article. It is not recommended.

Source: Internet
Author: User

Copy codeThe Code is as follows: <script language = "javascript">
Function showlist (vtype)
{
With (document. listform)
{
W_type.value = vtype;
}
Document. listform. submit ();
Return;
}
Function showout (vid)
{
With (document. showform)
{
Id. value = vid;
}
Document. showform. submit ();
Return;
}
Function showmenu (buyok, img)
{
If (buyok. style. display = "none ")
{
Buyok. style. display = "";
Img. src = "images/bclass2.gif ";
} Else {
Buyok. style. display = "none ";
Img. src = "images/bclass1.gif ";
}
}
</SCRIPT>
<Script language = "JavaScript">
Function page (vpage ){
Document. pageform. page. value = vpage;
Document. pageform. submit ();
Return false;
}

Function trimpos (s ){
Return s. replace (/(^ [\ s] *) | ([\ s] * $)/g ,"");
}

Function isnum (tmp ){
If (tmp> = '0' & tmp <= '9 ')
Return true;
Return false;
}

Function mysubmit (){
If (event. keyCode = '13 ')
Gosubmit ();
}

Function gosubmit (){
Var str = trimpos (vpos. value );
If (str = ""){
Alert ("Enter the page number! ");
Vpos. focus ();
Return;
}
For (var I = 0; I <str. length; I ++ ){
If (isnum (str. charAt (I) = false ){
Alert ("the page number must be composed of numbers! ");
Vpos. focus ();
Vpos. value = "";
Return;
}
}
If (parseInt (str) <1) | (parseInt (str)> 2 )){
Alert ("the page number is out of the range! ");
Vpos. focus ();
Vpos. value = "";
Return;
}
Page (str );
}

</Script>

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.