Created
November 29, 2010 21:59
-
-
Save alexkolson/720710 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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