Click to See Complete Forum and Search --> : Opening in new window....


Radio
11-15-2003, 02:26 PM
I need help adding the code to this table so that each link when clicked opens up in a new window. I tried the target="_blank" tag but I couldn't find the appropriate placing. Thanks for any help you can give me.
Code:

<div align="center">
<table style="bgcolor=#1CB4E4; border-width: 1px; border-color: #000000; border-style: solid" cellpadding="1" cellspacing="3" border="0" bgcolor="#1CB4E4">
<tr>
<td colspan="5" align="center"><span style="font: bold 12px verdana,arial"><font color="#000000" link="000000" alink="550086">SimNation</span><br><span style="font: 9px verdana,arial;">Ring Owner: <a href="mailto:somewhere@hotmail.com">Radio Active Chicken</a> Site: <a href="http://mysite.freeserve.com/Sim_Nation">SimNation</a></font></span></td>
</tr>
<tr>
<td onClick="document.location='http://pub26.bravenet.com/sitering/nav.php?usernum=2189714626&action=prev&siteid=40353'; this.style.cursor='hand';" style="width: 70px; background-color: #F2F4FA; border-width: 1px; border-color: #000000; border-style: solid; font: bold 10px verdana,arial; text-align: center; cursor: pointer" target="_blank" >PREV</td>
<td onClick="document.location='http://pub26.bravenet.com/sitering/nav.php?usernum=2189714626&action=list&siteid=40353'; this.style.cursor='hand';" style="width: 70px;background-color: #F2F4FA; border-width: 1px; border-color: #000000; border-style: solid; font: bold 10px verdana,arial; text-align: center; cursor: pointer">LIST</td>
<td onClick="document.location='http://pub26.bravenet.com/sitering/nav.php?usernum=2189714626&action=random&siteid=40353'; this.style.cursor='hand';" style="width: 70px;background-color: #F2F4FA; border-width: 1px; border-color: #000000; border-style: solid; font: bold 10px verdana,arial; text-align: center; cursor: pointer">RANDOM</td>
<td onClick="document.location='http://pub26.bravenet.com/sitering/nav.php?usernum=2189714626&action=join&siteid=40353'; this.style.cursor='hand';" style="width: 70px;background-color: #F2F4FA; border-width: 1px; border-color: #000000; border-style: solid; font: bold 10px verdana,arial; text-align: center; cursor: pointer">JOIN</td>
<td onClick="document.location='http://pub26.bravenet.com/sitering/nav.php?usernum=2189714626&action=next&siteid=40353'; this.style.cursor='hand';" style="width: 70px;background-color: #F2F4FA; border-width: 1px; border-color: #000000; border-style: solid; font: bold 10px verdana,arial; text-align: center; cursor: pointer">NEXT</td>
</tr>
<tr>
<td colspan="5" align="center"><a style="font: bold 10px tahoma,arial; text-decoration: none;"
href="http://www.bravenet.com" target="_new">
powered by <img src="http://images.bravenet.com/bravenet/images/poweredby.gif"
border="0" align="absmiddle" alt="Powered by Bravenet" /> bravenet.com</a></td>
</tr>
</table>
</div>

DaveSW
11-15-2003, 02:39 PM
Normal link code would be

<a href="somepage.htm" target="_Blank">Like to somepage</a>

Radio
11-15-2003, 02:45 PM
Thanks, but I know how to do that. What I want is this is the bravenet code for my site ring and I need to keep the format that it's in so that it collects the data and sends them to my site ring and not someone elses. I just need it so that it opens up in a new window not in the current one as my website uses frames and it's not suitable or desired to have other members webpages open up inside one frame of mine.
Thanks.

DaveSW
11-15-2003, 02:49 PM
I think I see the problem. You've used javascript for navigation (definite no no!)
What you need to do is have your td, and put the a tag inside:

<td><a href="http://pub26.bravenet.com/sitering/nav.php?usernum=2189714626&action=prev&siteid=40353" target="_Blank" style="display: block;">List</a></td>

Does that help?

Radio
11-15-2003, 02:56 PM
Lol! Blame Bravenet, their code. I wouldn't have made it so damn complicated. ;)
I'll have a mess around with it and see how it goes.

DaveSW
11-15-2003, 03:00 PM
LOL - where you have display block you can use width: 200px; height: 50px; to make it the same size as the containing cell.

DaveSW
11-15-2003, 03:08 PM
Obviously changing those values to the ones you've used. :D