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