Declare background variables in HTML

Home Forums Storm HTML Declare background variables in HTML

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  chjade84 4 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3853

    chjade84
    Participant

    I am working on a site where, basically, I want users to be able to upload their own background images. I have most of the work done but the uploads are referenced using tags, such as {tag_image1_value}, {tag_image2_value}, etc which returns /exampleImage1.jpg, /exampleImage2.jpg, etc.

    The problem is I can only use those in HTML pages and the background variables are stored in a .js file. Is it easily doable to somehow declare those variables in the webpage instead of the .js file or can I move the entire script to the HTML page?

    I’ve played around trying both but never got it to work.

    Thanks!

    #3857

    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #3858

    chjade84
    Participant

    Oops! 🙂

    I read how to change the backgrounds globally and when I didn’t see what I needed I started trying to fix it myself. I guess I should have kept reading.

    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.