I have another question. I found out about thickbox and is really cool how it lets you access the anything in the same window and page. I was wondering if its possible to add it to the chatroom. I have already implemented in my forum and it works fine. But when I add it to the chatroom it doesn't work.
Thickbox needs three files that need to be called:
<script type="text/javascript" src="lbox/jquery.js"></script>
<script type="text/javascript" src="lbox/thickbox.js"></script>
<link rel="stylesheet" href="lbox/thickbox.css" type="text/css" media="screen" />
I have try adding this to my main page. And this is my other code.
- Code: Select all
rx = new RegExp('\[verso\](.+?)\[/verso\]','ig');
msg = msg.replace(rx, '<a href="http://www.biblegateway.com/passage/?search=$1&version=60;?TB_iframe=true&height=400&width=800" class="thickbox">$1</a>');
So when I add this in my chatroom [verso]Juan3:16[/verso] it will create the link above but when you open that link its supposed to open with thickbox but it doesn't. I was wondering if there's another place I can add the java scripts and the css rather than the main page so it will work. Thanks in advance...