Results 1 to 4 of 4
  1.    #1  
    I have taught myself with the help of this site to learn javascript and html but I can not figure out CSS. How would I make one of my scenes backround a image or just a different color? Any help would be nice. Thanks
  2.    #2  
    everytime I have posted a question no one answers. hwhy is this?
  3. #3  
    In your index.html, edit your BODY tag as follows:
    Code:
    <body id="body_wallpaper" class="body_wallpaper">
    Then to set your background to an image, do the following in your scene assistant's setup function:

    Code:
    this.controller.get('body_wallpaper').style.background = "url('./images/your_wallpaper_image.png')";
    To set your background to a solid color, do the following in your scene assistant's setup function:

    Code:
    this.controller.get('body_wallpaper').style.background = "url('./images/transparent_background.png')";  // transparent_background.png should be an image that consists of nothing but a transparent background.  You can create something like this in a free application such as Paint.NET by using the eraser tool and erasing the whole picture.
    
    this.controller.get('body_wallpaper').style.backgroundColor = "#000000" // This would generate a black background
  4.    #4  
    thanks dude you are the man!

Posting Permissions