Lightbox without rel tag or addRel without jQuery

强颜欢笑 提交于 2019-12-13 00:20:40

问题


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 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?

来源:https://stackoverflow.com/questions/1575451/lightbox-without-rel-tag-or-addrel-without-jquery

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!