Forum Moderators: coopster

Message Too Old, No Replies

Define Link Target

how do include target=_blank in php driven link...

         

iggy99

1:08 pm on Sep 4, 2003 (gmt 0)

10+ Year Member



here is a link i need to define target as blank - to open new window --

how can this be done - i have fumbled helplessly for a few weeks on and off and would be grateful for any suggestions

thank you

<a href="<?php $sess->purl(URL . "?page=$flypage&product_id=" . $db->f("product_id") . "&category_id=" . $db->f("category_id"));?>">
<?php $ps_product->show_image($db->f("product_thumb_image"),"height=100 width=100 hspace=0 vspace=0 alt=\"" . ($db->f("product_s_desc")) . "\"");?>
</a>

justageek

1:28 pm on Sep 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<a href="<?php $sess->purl(URL . "?page=$flypage&product_id=" . $db->f("product_id") . "&category_id=" . $db->f("category_id"));?>">
<?php $ps_product->show_image($db->f("product_thumb_image"),"height=100 width=100 hspace=0 vspace=0 alt=\"" . ($db->f("product_s_desc")) . "\" target=\"_blank\"");?>
</a>

iggy99

1:29 pm on Sep 4, 2003 (gmt 0)

10+ Year Member



never mind - figured it out...

<a href="<?php $sess->purl(URL . "?page=$flypage&product_id=" . $db->f("product_id") . "&category_id=" . $db->f("category_id"));?>;" target="_blank"><font class="menu"><b>
<?php $db->p("product_name");?>
</b></font></a>

iggy99

1:31 pm on Sep 4, 2003 (gmt 0)

10+ Year Member



justageek...

many thanks for your effort!

this forum has been a great resource for me from the getgo - 1998 and we still use traxis on most of out static sites!

whatever hapened to traxis?

justageek

1:33 pm on Sep 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't rightly know. I haven't heard that name in years :-)

iggy99

1:39 pm on Sep 4, 2003 (gmt 0)

10+ Year Member



justageek...

another quickie --- maybe a bit more difficult to answer...

how would i go about adding new page width / height / scrollbar/ toolbar specs to this?

plan b is to re neme target to top if i cannot get new page size to work...

many thanks

justageek

2:18 pm on Sep 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The only way I have done it is with javascript.

<script language="JavaScript">
function showpage() {
window.open("http://www.yoursite.com/yourpage.php","showpage","width=800,height=600,toolbar=0,status=0,scrollbars=3,menubar=0");
</script>

This will open a page 800 by 600

Your href then becomes

<a href="javascript:showpage()">