Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image instead of header title


prazim

Recommended Posts

do u mean u wish to replace the header with just a image, or smthing else on the home page?

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

do u mean u wish to replace the header with just a image, or smthing else on the home page?

well, for now, I'd like to try just having a gif there. this will enable me to control the font and exact appearance of the text.

 

Also, is it possible to specify the header by category? That would be ideal.

many thanks,

Sue

Link to comment
Share on other sites

  • 1 month later...

you can if you do it by having a file called gif.php replacing the header file

 

code would look like the following;

 

<?
  include("gif.php");
?>

 

And then inside the gif.php

 

<?php
$files = glob('{*.PNG,*.png,*.JPG,*.jpg,*.GIF,*.gif}', GLOB_BRACE);
readfile($files[array_rand($files)]);
?>

 

 

The code above is to do with a rotation of images but I'm sure it will work with one image as well as many others

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...