开发者

Lightbox without rel tag or addRel without jQuery

开发者 https://www.devze.com 2022-12-08 02:05 出处:网络
This is the idea. I want to put a lightbox (or slimbox or mediabox or whateverbox) on my forum so that it will open user-posted links in lightbox.

This is the idea. I want to put a lightbox (or slimbox or mediabox or whateverbox) on my forum so that it will open user-posted links in lightbox.

Problem is, lightbox开发者_C百科 requires the rel=lightbox tag, and people are too lazy to use the custom bbcode that adds the correct rel tag to the link.

So, can lightbox (or any other) work for all links without the rel tag?

The alternative is to add the rel tag to all links. I can use the 'addRel' function from jquery, but it would be a waste to include the whole of jquery only for this one function.

How can I add a rel tag without jquery?

0

精彩评论

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