ASP Flash system to make the top and bottom buttons

Source: Internet
Author: User
Button Rest assured is absolutely I think out, as www.lgspy.com in my use, you look first, good words down, don't like to see. I don't like wasting my friends ' time.
_global.datas=0;//needs a global variable;
15; is a few lines per page;
///////////////////////////////////////////////////////
_global.zong;//is the value that is loaded externally;
_GLOBAL.PA = 1;//is the current number of pages displayed;
////////////////////////////
Stop ();
c = new Loadvars ();
C.load ("Http://localhost/**.asp?") +random (999999));
C.onload = function (OK) {
if (OK) {
_global.zong = Math.ceil (C.ZONG/15);//15 is the data you want to display per page, Zong is the variable (not the value) returned to flash in ASP
Play ();
} else {
gotoAndPlay ("Nos"); the first one to jump, for example, without loading. Continue loading
}
};
///////////////////////////////////////////////////////
First page:
////////////////////////////
On (release) {
_global.datas = 0;
_GLOBAL.PA = 1;
_parent.gotoandplay (1);
}
///////////////////////////////////////////////////////
Previous page:
////////////////////////////
On (release) {
_global.datas = _global.datas-15;
_global.pa--;
_parent.gotoandplay (1);
}

///////////////////////////////////////////////////////
Next page:
////////////////////////////
On (release) {
_global.datas = _global.datas+15;
_global.pa++;
_parent.gotoandplay (1);
}

///////////////////////////////////////////////////////
Last page:
////////////////////////////
On (release) {
_global.datas = 15*_global.zong-15;//The zong here has been/passed in the first place.
_GLOBAL.PA = _global.zong;
_parent.gotoandplay (1);
}
///////////////////////////////////////////////////////
Ye.text = "+_global.zong+" page you are browsing the page "+_global.pa+";//This article here and the button, qwer each is the name of the button
if (_global.pa>=_global.zong) {
e._visible = 0;
r._visible = 0;
} else {
e._visible = 1;
r._visible = 1;
}
if (_global.pa<=1) {
q._visible = 0;
w._visible = 0;
} else {
q._visible = 1;
w._visible = 1;
}

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.