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

jquery plug-in floating fixed layer at any position_jquery

WBOY
Release: 2016-05-16 18:57:06
Original
1229 people have browsed it

/*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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template