Advertisement

12.27.2007 at 07:56PM PST, ID: 23046501 | Points: 250
[x]
Attachment Details

Oscommerce, PHP CSS Need to display an image over an image

Asked by twistedindustries in Cascading Style Sheets (CSS), Hypertext Markup Language (HTML), PHP and Databases

Tags:

I am making a site based on oscommerce and I would like to make it so that I can add a "New" image or "Out of stock" image over the products image.  Where the image is displayed it has one set of code for all the images if that makes sense.  Is there a way to set it up so that I can tell it I want a div over the image with another image inside the div?  Sorry for such a confusing question.  Below is the code that shows the images.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
case 'PRODUCT_LIST_IMAGE':
				$lc_align = 'center';
				if (isset($HTTP_GET_VARS['manufacturers_id'])) {
					$lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
				} else {
					$lc_text = '&nbsp;<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>&nbsp;';
				}
				break;
[+][-]12.28.2007 at 04:09AM PST, ID: 20541167

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.28.2007 at 12:44PM PST, ID: 20544985

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.29.2007 at 08:44AM PST, ID: 20548219

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.05.2008 at 09:57AM PST, ID: 20825183

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628