开发者

Jquery Tools Overlay

开发者 https://www.devze.com 2022-12-09 02:41 出处:网络
Hey guys, I\'ve got a few quick questions. Here is the site: link text I am using Jquery Tools overlay as shown here.

Hey guys, I've got a few quick questions.

Here is the site: link text

I am using Jquery Tools overlay as shown here.

http://flowplayer.org/tools/demos/overlay/index.html

When you click the image, the popup shows up fine.

<img src="whatever.jpg" rel="#1" class="slideimg" alt="title" />

But whenever I try to use something else, say an image or a span, it wont work.

<a rel="#1" href="#">Click for Large</a>

Here is my Jquery for an image. I've t开发者_开发知识库ried replacing img with a and a few other things. Any ideas?

    $(document).ready(function(){
$("img[rel]").overlay();

});


I second what Sea Hag says .. However if you are not able to get $("a[rel]").overlay() then one of the possible reasons for it cud also be that you have other tags with rel attribute. Either you can do away with those or use a different jquery selector .. I mean replace "a[re]" with some other selector like "#myid" to make it work.

0

精彩评论

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