MyBB Community Forums

Full Version: SOLVED: trying to add link to nav bar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,
im trying to add this code to my nav bar for my newsletter link:

<script type="text/javascript">function openWinBoo()
{
  NewWindow=window.open
  ('http://www.irishtechtalk.com/simple/index.php', 'Newsletter',
  'width=400,height=250');
}</script><br>
<pre id="line154">&nbsp;</pre>
<br>
<a href="http://www.irishtechtalk.com/BBboard/images/toplinks/newsletter.gif"><img src="newsletter.gif" width="16" height="16" border="0"></a><a href="javascript:openWinBoo()"> Newsletter</a>

Any ideas on why it wont show when i enter it? It just gives a blank space and seperates the nav bar.

Thanks,
Dave
bump it up Wink

Any ideas??
Try putting:
<script type="text/javascript">function openWinBoo()
{
  NewWindow=window.open
  ('http://www.irishtechtalk.com/simple/index.php', 'Newsletter',
  'width=400,height=250');
}</script>
in the headerinclude template, and:
<li><a href="http://www.irishtechtalk.com/BBboard/images/toplinks/newsletter.gif"><img src="newsletter.gif" width="16" height="16" border="0"></a><a href="javascript:openWinBoo()"> Newsletter</a></li>
where all the other links are in the header template.

If it still doesn't work please post the link on the board so we can debug the problem.
Your a star mate. Although, i had to add the javascript function to the header template also.

Thanks!!,
Dave