开发者

jquery and highslide

I use this js http://highslide.com. I have a separate div and i want open the highslide with this div with onclick e开发者_StackOverflow社区vent.. I have try this but not work..


$('#po').click(function(){ 
var s = $('#ap_1');
return hs.expand(s, config1);
});

#ap_1 is the first a tag element ...


I think hs.expand takes a DOM element; try using hs.expand(s.get(0), config1);.


Try this

$('a.highslide').click(function() {
    return hs.expand(this, options);
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜