Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

image map question ?


yanarasod

Recommended Posts

Posted

image map question i want to put a image map in a new page , is it necessary to convert the code to php or i can make it straight away using html, is it going to show any errors if using in html. i did also like to have the onmouseout feature but couln't quite make it, doesanyone know how can i hide the text omouseout that appears onmouseover .

 

see code

 

<html>

<head>

<title>Image -map</title>

 

<style type="text/css">

p {

font-weight: bold;

}

</style>

 

 

 

<script type="text/javascript">

function writeText(txt){

document.getElementById("desc").innerHTML=txt;

}

</script>

 

</head>

<body topmargin="10" leftmargin="25">

 

<img src="world_map.bmp" usemap="#world_map" alt="" style="border-style:none" /><map

id="world_map" name="world_map"><area shape="circle" alt="India" coords="401,131,6" nohref title="India" onMouseOver="writeText('oscommerce')" />

</map>

 

<p id="desc"></p>

 

</body>

</html>

Posted

hey but i will add it in a php page, take this example of shipping.php , can i add the image map html out here

 

<?php

/*

$Id: shipping.php,v 1.22 2003/06/05 23:26:23 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHIPPING);

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SHIPPING));

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

 

<!-- body //-->

<table border="0" width="100%" cellspacing="3" cellpadding="3">

<tr>

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table></td>

<!-- body_text //-->

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_delivery.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="main"><?php echo TEXT_INFORMATION; ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table></td>

<!-- body_text_eof //-->

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

<br>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Posted

hey why don't you answer straight

 

can i add this image map in thie shipping.php file, i already have pure html menus in header.php, it doesn't show any error, but i am not sure about anything. please can you tell in details whatever it is.

Posted
hey why don't you answer straight

 

:o :o :huh:

 

That IS a straight answer. There is no more to it than that!! You could say it other ways I am sure, but the advice you got was as straight as it comes.

 

Don't put html tags inside the opening and closing <?php ?> tags.

Posted

so i have to create a html document for that as .html or convert it to php fully , can you tell something about this too.

Archived

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

×
×
  • Create New...