我已经使用 Kynetx 的 jQuery UI 集成成功地在页面上产生了 jQuery UI 效果。
但是,我无法从侧选项卡中获得效果。这是我的申请规则。我希望有人能指出我所缺少的:
global {
css <<
#tester
{
margin-left: 10px;
margin-top: 10px;
width: 80px;
height: 80px;
background: green;
position: relative;
}
>>;
}
rule tab is active {
select when pageview ".*" setting ()
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"
};
watch("#tester", "click");
}
}
rule jeffect_on_click is active {
select when web click "#tester"
jquery_ui:effect("#tester","bounce","normal");
}
}
我确保包括
use javascript resource jquery_ui_js
在我的元标记中。