Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Header.php - Image Repeat


plconline

Recommended Posts

Posted

Hi,

 

I am trying to repeat the top image on the header.php page. The file was originally called oscommerce.gif but i have replaced it with our new one called topspacer.jpg.

 

With this i want to repeat the image accross the screen horizontality, i know how to do it in html but am unsure as how to do it in PHP. Could some one please help.

 

Here is the code:

 

echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'topspacer.jpg', 'PLC'

) . '</a>';

Posted

This was set up especially to work with a javascript drop down menu working on top of a non-repeated background image - first a new class in stylesheet.css

 

.bgtable, .bgtable table {

background-image:url('images/topspacer.jpg');

background-color: whatever;

background-repeat: no-repeat;

 

}

 

You may only need .bgtable in the first line for what you want, and just change 'no-repeat' to 'repeat'.

 

Then within the first <table> definition in header.php insert, class="bgtable"

 

Vger

 

p.s. But this won't render it as a clickable 'return to homepage' link

Archived

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

×
×
  • Create New...