Jump to content

Rotating a div image based on page url


jvan1768

Recommended Posts

I am trying to figure out how to rotate an image in a div based on the current url the user is at. I am using this in Zen-cart and want to rotate the header image, but the php for the header section is the same for every page. I want to be able to display a different header image for each of the different shopping categories.  Any ideas? Let me know if you need me to clarify the problem.

Link to comment
Share on other sites

I'm sorry what is the gd library? I am not too familiar with php. Also to clarify, I want the php to select the appropriate image based on the current URL. The header php doesn't change throughout the site but I want the image that is there to change based on the URL

 

thanks

Link to comment
Share on other sites

This for an online store using Zen-cart. The url is going to be the location of a certain product.

 

Example: index.php?main_page=index&cPath=65_48 --> is the specific url of the product category

 

Now according to the specific product url, I want to be able to rotate the image that is displayed in the header whose php is the same across the entire site.

 

The images will be house in a central image folder and would be called into the header based on the current url.

 

Does this make more sense

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.