这是indexloc提供的服务,不要输入任何密码
Skip to content

victorcastelan/Sticky

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jquwery sticky

// Sticky v1.0 by Daniel Raftery // http://thrivingkings.com/sticky

// Sticky2 v1.0 by Victor Castelan // victorcastelan@gmail.com // Sticky2 is the same of the original sticky, but with a few mods. // Thanks Daniel Raftery for your great plugin.

  • Whats new on v2:
  • Add remove() when closing
  • Add onClose callback as parameter option
  • Add position as parameter option
  • Add addClass as parameter option. The classes in css will be prefixed with "sticky-" addClass:"myClass" will call "sticky-myClass" css class
  • Add style as parameter option

Example:

$.sticky('hello world',{position:"up-right", style:"width:500px", onClose:function(){alert('I am closing')});

$.sticky('hello world',{position:"bottom-right", style:"background-color:#cccccc");

multiple sticky can be displayed at the same time in different positions

About

An unbelievably simple notification system for jQuery with a few modifications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%