Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help with link in infobox!


midpen

Recommended Posts

I tried to add a post office site link in my information box, I added below in information.php after define:

 

$info_box_contents[] = array('text' => '<a href="http://www.canadapost.ca"><img src="/images/postLogo.gif"></a><br>');

 

It worked. But I want to open the link at a new window, I used html code instead(I don't know php much):

 

<a href="#" onclick="javascript:window.open('http://www.canadapost.ca','','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');"><img src="images/postLogo.jpg" border="0" alt="Track your shipment!" style="text-align: center; border: 0px"></a>

 

It doesn't work anymore.

 

What code was wrong here? How to php it in order to get the same function? please help! And how to make the logo image at the center of the box? Thanks!

Link to comment
Share on other sites

I tried to add a post office site link in my information box, I added below in information.php after define:

 

$info_box_contents[] = array('text' => '<a href="http://www.canadapost.ca"><img src="/images/postLogo.gif"></a><br>');

 

It worked. But I want to open the link at a new window, I used html code instead(I don't know php much):

 

<a href="#" onclick="javascript:window.open('http://www.canadapost.ca','','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');"><img src="images/postLogo.jpg" border="0" alt="Track your shipment!" style="text-align: center; border: 0px"></a>

 

It doesn't work anymore.

 

What code was wrong here? How to php it in order to get the same function? please help! And how to make the logo image at the center of the box? Thanks!

$info_box_contents[] = array('text' => '<a target="_blank" href="http://www.canadapost.ca"><img src="/images/postLogo.gif"></a><br>');

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I mean I would like the opened window has no toolbar, etc. Thanks for the help

Then use the code I posted.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...