Sessions cannot be used in Ajax functions of ajaxpro.

Source: Internet
Author: User

<Div id = "MQ" style = "width: 100%; Height: 18px; overflow: hidden; Border: 1px solid # ffffff" onmouseout = "iscrollamount = 1">

I gently walked away, just as I gently came; <br/>

I gently waved to the cloud of the West. <Br/>

The willow on the banks of that river is the bride in the sunset. <br/>

The shadows in the light are ripple in my mind. <Br>

</Div>

<SCRIPT>

VaR omarquee = Document. getelementbyid ("MQ"); // scroll object

VaR ilineheight = 16; // Single Row Height, pixel

VaR ilinecount = 4; // the actual number of rows

VaR iscrollamount = 1; // The height of each scroll, pixel

Function run (){

Omarquee. scrolltop + = iscrollamount;

If (omarquee. scrolltop = ilinecount * ilineheight)

Omarquee. scrolltop = 0;

If (omarquee. scrolltop % ilineheight = 0 ){

Window. setTimeout ("Run ()", 2000 );

} Else {

Window. setTimeout ("Run ()", 50 );

}

}

Omarquee. innerhtml + = omarquee. innerhtml;

Window. setTimeout ("Run ()", 2000 );

</SCRIPT>


Sessions cannot be used in Ajax functions of ajaxpro.

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.