Gossamer Forum
Home : Products : Links 2.0 : Discussions :

how can i make links open in new window?

Quote Reply
how can i make links open in new window?
Hi there, does anyone know how i can make links open in new browser windows?
thanx
niko
Quote Reply
Re: how can i make links open in new window? In reply to
Assuming that you are using templates it you go into your "link.html" template and add:

<a class="link" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>"target="_blank">

If you aren't using templates then I don't know Smile

Hope this helps,
Chet

------------------
Webmasters get a sponsor for your website. Over 350 to choose from.
www.websitesponsors.com




Quote Reply
Re: how can i make links open in new window? In reply to
Hi there,

without using Templates open site_html.pl and search the following lines under "A Link":

$build_detailed ?
($output = qq~<ul><li><a class="link" href="$build_detail_url/$rec{$db_key}$build_extension">$rec{'Title'}</a>~) :
($output = qq~<ul><li><a class="link" href="$build_jump_url?$db_key=$rec{$db_key}">$rec{'Title'}</a>~);

and change them to:
$build_detailed ?
($output = qq~<ul><li><a class="link" href="$build_detail_url/$rec{$db_key}$build_extension" target="blank">$rec{'Title'}</a>~) :
($output = qq~<ul><li><a class="link" href="$build_jump_url?$db_key=$rec{$db_key}" target="blank">$rec{'Title'}</a>~);

The second step is to change the random-link in site_html.pl into:
<a class="menulink" href="$build_jump_url?ID=random" target="_blank">Zufallslink</a>

Hope that helps
Thomas
www.sonderpaed.de
Quote Reply
Re: how can i make links open in new window? In reply to
Thanks you very much for your help,
it works!