Opening in new window....

admin

Administrator
Staff member
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. <br />
Code: <br />
<br />
<div align="center"><br />
<table style="bgcolor=#1CB4E4; border-width: 1px; border-color: #000000; border-style: solid" cellpadding="1" cellspacing="3" border="0" bgcolor="#1CB4E4"><br />
<tr><br />
<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=http://www.webdeveloper.com/forum/archive/index.php/"mailto:[email protected]">Radio Active Chicken</a> Site: <a href="http://mysite.freeserve.com/Sim_Nation">SimNation</a></font></span></td><br />
</tr><br />
<tr><br />
<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><br />
<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><br />
<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><br />
<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><br />
<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><br />
</tr><br />
<tr><br />
<td colspan="5" align="center"><a style="font: bold 10px tahoma,arial; text-decoration: none;" <br />
href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.bravenet.com" target="_new"><br />
powered by <img src=http://www.webdeveloper.com/forum/archive/index.php/"http://images.bravenet.com/bravenet/images/poweredby.gif"<br />
border="0" align="absmiddle" alt="Powered by Bravenet" /> bravenet.com</a></td><br />
</tr><br />
</table><br />
</div><!--content-->Normal link code would be<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"somepage.htm" target="_Blank">Like to somepage</a><!--content-->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. <br />
Thanks.<!--content-->I think I see the problem. You've used javascript for navigation (definite no no!)<br />
What you need to do is have your td, and put the a tag inside:<br />
<br />
<td><a href=http://www.webdeveloper.com/forum/archive/index.php/"http://pub26.bravenet.com/sitering/nav.php?usernum=2189714626&action=prev&siteid=40353" target="_Blank" style="display: block;">List</a></td><br />
<br />
Does that help?<!--content-->Lol! Blame Bravenet, their code. I wouldn't have made it so damn complicated. ;) <br />
I'll have a mess around with it and see how it goes.<!--content-->LOL - where you have display block you can use width: 200px; height: 50px; to make it the same size as the containing cell.<!--content-->Obviously changing those values to the ones you've used. :D<!--content-->
 
Back
Top