Hi there, i want to use greybox for opening some links. the thing is that those links are given with javascript. If i just place the javascripts in the <head></head> section then the javascript that gives the links does not work. to solve this, i put this in the javascript
document.write(‘<scr’ + ‘ipt type=”text/javascript”>var GB_ROOT_DIR = “myurl/greybox/”</scr’ + ‘ipt>’);
document.write(‘<scr’ + ‘ipt type=”text/javascript” src=”./greybox/AJS.js”></scr’ + ‘ipt>’);
document.write(‘<scr’ + ‘ipt type=”text/javascript” src=”./greybox/AJS_fx.js”></scr’ + ‘ipt>’);
document.write(‘<scr’ + ‘ipt type=”text/javascript” src=”./greybox/gb_scripts.js”></scr’ + ‘ipt>’);
I then put rel=”gb_page_fs” in the <a href>. the link opens in a new tab.
<a href=”‘+link+'” title=”‘+title+'” rel=”gb_page_fs” target=”+link+”>’+title+'</a>
Other links in the page with the use of rel=”gb_page_fs” work. any ideas???
thank you