Gossamer Forum
Home : Products : Links 2.0 : Customization :

Opening a New window

Quote Reply
Opening a New window
I hope someone can help me.

In my templates.cfg file i have the following

$special2 = 'News Headlines';
$special_url2 = ' ';

I have a page which I have designed to display the current new headlines. When the link is clicked I would like the page diaplayed in a seperate window without the tool bars and scroll bars. I would also like this window to be of a certain size.

Has anyone got any ideas what I place between the ' ' in $special_url2

Cheers

Quote Reply
Re: Opening a New window In reply to
If you would've searched the forum (and also read some HTML handbooks or guides), you would've found the following attribute:

Code:

target="newwin"


OR

Code:

target="_blank"


OR

Code:

target="_new"


Stick this attribute in the link codes, like the following:

Code:

<a href="http://www.gethtmlfordummies.com/" target="newwin">


Regards,

Eliot Lee
Quote Reply
Re: Opening a New window In reply to
Is this what you need?

See my site and see last link.. In one of the link sections
click spider.

http://www.thefreebiesite.com

If this is what you need this is the code I used in my
link.html just modify to your use...


<a href="http://spider-it" onclick="window.open('<%db_cgi_url%>/spider.cgi?URL=<%URL%>', 'Newwin', 'scrollbars=yes,width=469,height=350');return false;">Spider</a>

Note that the http://spider-it does not really go anywhere it's just there to show in the bottom of the screen. The real action goes on when you click it..

You can also adjust the window just change the hight and width.. "width=469,height=350"

I think this is what you are looking for...

Quote Reply
Re: Opening a New window In reply to
I feel that I am not getting my point accross. I require a new window to be opened when someone clicks on a link which has been defined in the templates.cfg. I have lines which go

$special2 = 'News Headlines';
$special_url2 = ' ';

I understand how to place a normal link in $special_url2 so the code would look like this

$special_url2 = 'http://www.yahoo.co.uk';

What I am after is for this link to be displayed in a new window. Please could someone post me the exact code I need. I know this has been discussed before. However everytime I try, when I come to build the pages, I get a download box appearing.

Sorry for being so thick?

Cheers

Quote Reply
Re: Opening a New window In reply to
I have already responded to your duplicate post. Wink

Regards,

Eliot Lee