Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

pop up image with dynamic background


Guest

Recommended Posts

i want to make the background of my popup_image.php file the same image that is being viewed from the database... is there a way to do this?

thanks in advance for help.

Link to comment
Share on other sites

okay... i thought i had it narrowed down to something similar to the way HTML_PARAM is done... how can i make this work?

<body <?php echo (DIR_WS_IMAGES . $products['products_image']); ?>>

Link to comment
Share on other sites

WOOOHOOOO!!!! I DID IT I DID IT!!!! IN CASE ANYONE IS WONDERING...

 

You can make the products_image the background of popup_image.php by removing the existing < body > tag, and replacing it with this CSS:

<style type="text/css">
<!--
body {background-image: url(<?php echo HTTP_SERVER . DIR_WS_HTTP_CATALOG . DIR_WS_IMAGES . $products['products_image']; ?>);}
-->
</style>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...