Wisha Posted March 18, 2005 Share Posted March 18, 2005 Hi, i've replaced the welcome note on my index page with images by linking to the images in includes/languagues/english/index.php - see code below. I know how to make an image map for these images but have no idea where to put the code, or am I going about this the wrong way??? What I want to acheive is a few images on the main body of the index page complete with image maps for linking to other parts of the site.....any help really appreciated!! osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', '<img src="images/welcome.gif" width="520" height="80" border="1" align="center"><br><br><img src="images/advertisement.gif" width="520" height="200" border="1" align="center">'); define('TABLE_HEADING_NEW_PRODUCTS', 'Featured Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); -------------------------- Link to comment Share on other sites More sharing options...
dave111 Posted March 18, 2005 Share Posted March 18, 2005 The easiest way i find to make cool looking content pages, *such as the index.php* is build the page/images in dreamweaver or frontpage then just copy the code from between the <body> tags and insert it in: define('TEXT_MAIN', 'INSERT IT HERE!'); Link to comment Share on other sites More sharing options...
Wisha Posted March 18, 2005 Author Share Posted March 18, 2005 The easiest way i find to make cool looking content pages, *such as the index.php* is build the page/images in dreamweaver or frontpage then just copy the code from between the <body> tags and insert it in: define('TEXT_MAIN', 'INSERT IT HERE!'); <{POST_SNAPBACK}> Thanks Dave, I'll give it a shot! Will Link to comment Share on other sites More sharing options...
Wisha Posted March 18, 2005 Author Share Posted March 18, 2005 Thanks Dave, I'll give it a shot!Will <{POST_SNAPBACK}> Where should the image map go? I have tried to put the image and image map there like you said but I just get a parse error now. I can call a plain old image but as soon as I put the image map in it stuffs up. Will. Link to comment Share on other sites More sharing options...
Wisha Posted March 19, 2005 Author Share Posted March 19, 2005 Here's my code in includes/languages/english/index.php, can anyone see any problems with that, all i get is a parse error! Thanks, Will. define('TEXT_MAIN', '<map name="FPMap0"><area href=" <?php echo tep_href_link(FILENAME_DEFAULT,'cPath=116'); ?> " shape="rect" coords="20, 39, 148, 192"></map><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'advertisement.gif', 'advertisement','','','USEMAP="#FPMap0" ') . '</a>'; ?>'); Link to comment Share on other sites More sharing options...
boxtel Posted March 19, 2005 Share Posted March 19, 2005 Here's my code in includes/languages/english/index.php, can anyone see any problems with that, all i get is a parse error! Thanks, Will.define('TEXT_MAIN', '<map name="FPMap0"><area href=" <?php echo tep_href_link(FILENAME_DEFAULT,'cPath=116'); ?> " shape="rect" coords="20, 39, 148, 192"></map><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'advertisement.gif', 'advertisement','','','USEMAP="#FPMap0" ') . '</a>'; ?>'); <{POST_SNAPBACK}> try this : define('TEXT_MAIN', '<map name="FPMap0"><area href="' . tep_href_link(FILENAME_DEFAULT,'cPath=116') . '" shape="rect" coords="20, 39, 148, 192"> </map><a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'advertisement.gif', 'advertisement','','','USEMAP="#FPMap0" ') . '</a>'); Treasurer MFC Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.