Logged Out
Create an Account
Login:
Password:

Forgot your password?
Lightbox/Shadowbox Issues

Lightbox/Shadowbox Issues
[Back to Index]
Thread Tags
Primary: [Support]
Secondary: None

I currently have shadowbox (www.shadowbox-js.com) running on my site and it works almost perfect except in addition to having an image show up in the shadowbox it also opens it in a new tab. Is there any way to disable the image opening in a new tab? Thanks in advance.


--
Wolfify
Resto Druid
<Infamous With Style>
Darkspear -- Alliance
I suspect this has to do with the way the site scans links for external links.

Could you post an example of the code link you're using to post a lightbox image? From there, I can offer a suggestion.


--
It's all in the reflexes.
Using it on the News(Home) page.


<a href="http://dkpfiles.com/iws/files/majordomo.png" rel="shadowbox"><img src="http://dkpfiles.com/iws/files/majordomosplash.png"/></a>


and here's the script that's used in the layout.html file.

<link rel="stylesheet" type="text/css" href="http://dkpfiles.com/iws/files/shadowbox.css">

<script type="text/javascript" src="http://dkpfiles.com/iws/files/shadowbox.js"></script>

<script type="text/javascript">

Shadowbox.init();

</script>



Thanks for looking into it Chops.


--
Wolfify
Resto Druid
<Infamous With Style>
Darkspear -- Alliance
Thanks, I'll have to look over the shadowbox.js code to see what it's doing exactly. I suspect simply adding something like a "return false;" somewhere in there will prevent it from opening the pictures in addition to opening the lightbox, but I won't know until I tinker a bit.


--
It's all in the reflexes.


[Back to Index]