Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

creating a pop up window link


amestres

Recommended Posts

Posted

Can anyonew tell me how to create a link within a text, fo example the text is:

 

"To view our work click here"

 

How do i make the word "here" show up as here and be a link to a new popup window?

 

How do I create the pop up window and be able to edit it using front page?

 

(i know quite basic for all...but just learning)

Posted

like this:

<?php
echo '<script language="javascript" type="text/javascript"><!--' . "\n" . 
'document.write(\'<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_HERE) . '\\\')">Here<\/a>\');' . "\n" . 
'//--></script><noscript>' . "\n" . 
'<a href="' . tep_href_link(FILENAME_POPUP_HERE) . '" target="_blank">Here</a>' . "\n" . 
'</noscript>'
?>

And of course you need to create a file for the popup.

Archived

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

×
×
  • Create New...