Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
170
Dynamically change background image
posted

Good afternoon,

After much futzing around, trial and error and finding the AppStylist insufficient for my needs I have finally made my menu work. I have made a horizontal menu with some nice gradient background images and even made duplicate images with arrows for submenus. So far so good.

My website uses this same menu for four sections. One section has a blue theme, one an orange theme and so on. I am trying, so far unsuccessfully, to change those background images dynamically as the user navigates to the different sections of the application.

Any suggestions?

 

i appreciate the assistance!

 

 

 

 

 

Parents
  • 4493
    Verified Answer
    posted

    Hello,

    Since you gave up using WebAppStylist, I guess you have ended with some custom CSS file, where you have defined your custom classes. Now you can create four such CSS files, each one with the respective colors/images, and include only one of them at a time depending on the section of your site. You will have same CSS Class names in all four files, just the class names will have different definitions.

Reply Children
No Data