Write on your visitors' book when the netizen leave a message, press when referring pushbutton, play a draw a frame round of a message, show " thank you leave a message! " , let a person feel considerate; Such webpage effect comes to what often go to the lavatory make dispute with the Poppup Message movement of Behaviors, although use Poppup Message movement to do message casing not very beautiful, but go up in the webpage that make " thin body " it is very important. The act of Open Browse Window that uses Behaviors of course also can be done conveniently, and can do very beautifully, but that must make a page first, to this kind of brief information, have the feeling of bit of break a butterfly on the wheel with movement of Open Browse Window. Still contrast material benefit with Poppup Message movement so. We start work below do:
One, the message casing of pushbutton
The method that make:
1, in " Form " pushbutton icon is clicked to thrust a button on obj ect face plate, go up in the attribute face plate of pushbutton " Lable " the in inputting casing input of attribute " refer leave a message " ;
2, choose pushbutton, nod with the mouse on pushbutton namely, press F8 again, v Behaviors face plate, click on face plate " + " icon, poppup Message action chooses in the behavioral list that draws, shoot the dialog box that gives following plan institute to show instantly:
Graph 1 Poppup Message touchs oppose word draw a frame round
3, dialog box of movement of this Poppup Message is simpler, you should be in only " Message: Shelter Yi Xian Mu fly ⒕ of the austral lens of allow of of guanidine of Shi Xing Cong holds laborious in the palm to make fun of pushbutton of K of 碠 of delay a cricket to return Behaviors face plate;
4, go up in Behaviors face plate, spark incident instead OnClick is operated entirely end, can see the effect by F12, press when you pushbutton, can play a draw a frame rou nd of a message instantly, show the word that you write, if everything wishs.
2, a message draw a frame round is played when duplicate webpage content
1, the webpage content make it that should play a message draw a frame round when duplicate a super link (finally but super link take out, particular operation can consult of this special subject " with good Behaviors change this result " one article) , press F8 next, v Behaviors face plate, the operation like Alexandrine exemple, movement of to load Poppup Message.
2, go up in Behaviors face plate spark incident instead: OnBeforCopy, end.
Did you discover? Should press on Behaviors face plate that triangle icon chooses to spark when incident, a few incident all are concerned with duplicate operation, it is good to choose that one after all? I explain the implication of those a few incident first, next you are looked at do!
OnCopy: When the content in duplicate webpage, this incident sparks, be in namely after pressing mouse right key, playing the option on the quick menu that go out " Copy " when play a message draw a frame round, as usual of so duplicate operation undertakes. Except is used click mouse right key to be used directly however " Ctr+C " command, this incident is not sparked, also won't play a message draw a frame round;
OnBeforCopy: Before duplicating to webpage content, this incident sparks, be in namely press after mouse right key, a message draw a frame round is played before quick menu comes out, so duplicate operation cannot undertake, except is used click mouse right key to be used directly however " Ctr+C " command, this incident is sparked likewise, play a message draw a frame round, duplicate operation as usual undertakes;
OnCut: When be cut to webpage content, this incident sparks, be in namely after pressing mouse right key, playing the option on the quick menu that go out " Cut " when play a message draw a frame round, cut operati on as usual to undertake so. Except is used click mouse right key to be used directly however " Ctr+X " command, this incident is not sparked, also won't play a message draw a frame round;
OnBeforCut: Before be cut to webpage content, this incident sparks, be in namely press after mouse right key, a message draw a frame round is played before quick menu comes out, cut an operation to cannot undertake so, except is used click mouse right key to be used directly however " Ctr+X " command, this incident is sparked likewise, play a message draw a frame round, cut operation as usual to undertake.
Poppup Message movement is used still is very convenient! This movement takes up code is less, be like need to be used!
Thursday, October 22, 2009
Make message draw a frame round with Behaviors opportunely
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment