Skip to content

Instantly share code, notes, and snippets.

@alexkolson
Created November 29, 2010 21:59
Show Gist options
  • Save alexkolson/720710 to your computer and use it in GitHub Desktop.
Save alexkolson/720710 to your computer and use it in GitHub Desktop.
ruleset a369x111 {
meta {
name "Sidetab->Events"
description <<
Sidetab jQuery
>>
author "AKO"
logging on
use javascript resource jquery_ui_js
}
global {
css <<
#tester {
margin-left: 10px;
margin-top: 10px;
width: 80px;
height: 80px;
background: green;
position: relative;
}
>>;
}
rule tab {
select when pageview ".*"
pre {
results = <<
<div id="tester"></div>
>>;
}
{
sidetab() with pathToTabImage = "http://dl.dropbox.com/u/10762217/search-tab-images/tab2.png"
and tabColor = "transparent"
and topPos = "50px"
and message = results
and divCSS = {
"z-index": 10000,
"backgroundColor": "#ffffff",
"width": "200px",
"padding": "0px",
"imageHeight": "162px",
"imageWidth": "53px",
"-moz-border-radius": "5px"
};
emit <|
$K("#tester").bind("click", function() {
$K(this).effect("bounce", { "times" : 3 }, 300);
});
|>;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment