Home  >  Article  >  Web Front-end  >  jquery plug-in floating fixed layer at any position_jquery

jquery plug-in floating fixed layer at any position_jquery

WBOY
WBOYOriginal
2016-05-16 18:57:061173browse

/*Floating fixed layer at any position*/
/*No Sword (http://regedit.cnblogs.com) 08-03-11*/
/*Description: You can make the specified layer float to the web page Any position, when the scroll bar scrolls, it will remain at the current position and will not flash*/
/*Call:
1 No parameter call: Default float in the lower right corner
$( "#id").floatdiv();

2 built-in fixed position float
//lower right corner
$("#id").floatdiv("rightbottom");
/ /Lower left corner
$("#id").floatdiv("leftbottom");
//Lower right corner
$("#id").floatdiv("rightbottom");
/ /Upper left corner
$("#id").floatdiv("lefttop");
//Upper right corner
$("#id").floatdiv("righttop");
/ /Center
$("#id").floatdiv("middle");

3 Custom position float
$("#id").floatdiv({left:"10px" ,top:"10px"});
With the above parameters, set the floating layer at 10 pixels from the left and 10 pixels from the top
*/

Online demonstrationhttp:// img.jb51.net/online/jquery.floatDiv/demo.htm
File Packaginghttp://img.jb51.net/online/jquery.floatDiv/jquery.floatDiv.rar

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn