开发者

jquery and highslide

开发者 https://www.devze.com 2023-01-29 16:38 出处:网络
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 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

精彩评论

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