My third jquery plugin--promptfork13 content hint Plugin

Source: Internet
Author: User

jquery hint plugin, the default CSS style uses the CSS3 property, so it is best to browse under standard browsers such as Firefox or Google. You can customize the structure and style of the cue box. Download

Parameters can be set:

"Addid": "",//Append ID for easy custom control
"AddClass": "",//Append class for easy custom control
"Dom": "",//Custom DOM structure
The outermost element must be wrapped in. prompt_k13
Internal must have. Content_k13 Empty elements Store text
The. Close_btn_k13 Close button can be added as needed
Non-wrapping, no matter how many layers are nested, for example:
<div class= "prompt_k13" ><span class= "close_btn_k13" > Close </span><div class= "Content_k13" > </div></div>
"Closebtn": true,//whether the Close button is displayed
"AutoClose": true,//whether automatic shutdown
"Autoclosetime": 5000,//auto-off delay, unit milliseconds
Animate: True,//whether the animation effect is displayed
"Animatetime": 300,//animation duration, unit milliseconds
"Animatelength": 30,//animation movement distance, unit px
"Gap": 8,//gap with parent element, Unit px
"Close": false,//control off
"Text": "Here is the hint content",//prompt content
"Position": "right"//cue location. Top top, left side, right side, bottom below, default

Function:

1. Can be set up and down four direction of the Popup

2. Can be closed manually or automatically

3. Can be set with or without animation effect and animation length

4. Customizable popup DOM structure, all skins can be changed by CSS

Example:

Page Introduction:

<script type= "Text/javascript" src= "Script/jquery-1.8.3.min.js" ></script>
<script type= "Text/javascript" src= "Script/promptfork13.min.js" ></script>

Call Method:

If you use the default settings, the following:

$ ("#demo"). promptForK13 ();

If the custom parameters are as follows:

$ (this). PromptForK13 ({
"AddClass": "Prompt_top",
"Text": "Click X to Close",
"Position": "Top",
"AutoClose": false
});

Html:

<div id= "Demo" ></div>

I wrote a few examples to put in the package file, the effect is as follows:

My third jquery plugin--promptfork13 content hint Plugin

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.