Skip to content

Instantly share code, notes, and snippets.

@kaievns
Created October 9, 2010 19:01
Show Gist options
  • Save kaievns/618493 to your computer and use it in GitHub Desktop.
Save kaievns/618493 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>RightJS Growl Example</title>
<link href="demo.css" media="screen" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="http://rightjs.org/hotlink/right.js"></script>
<script type="text/javascript" src="../src/rightjs-growl.js"></script>
<script type="text/javascript">
"a.regular-growl".onClick(function(e){
new Growl($E('div').html('<h3>I\'m not sticky</h3><p>So I\'ll disappear briefly!</p>'));
});
"a.sticky-growl".onClick(function(){
new Growl($E('div').html('<h3>I\'m sticky</h3><p>So I\'ll only disappear if you close me!</p>'), {sticky: true});
});
</script>
</head>
<body>
<ul>
<li><a href="#" class="regular-growl">Show regular growl</a></li>
<li><a href="#" class="sticky-growl">Show sticky growl</a></li>
</ul>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment