header 1
header 2
header 3

JVbackground for Responsive & Classic

 

An alternate method for Displaying the Page Background for both Responsive and Classic Designs


Responsive and Classic Designs differ in page background display options. This is an overview of how this program differs from the standard ClassCreator background choices. The details are easier to see vs just reading about the options on this page. So click the sample pages below to see how the looks differ. Background images do NOT appear if the display screen is not large enough (for example a PHONE) or your Responsive Design elected the WIDE option that takes up the whole screen for most users.

Responsive Designs provide you basic control over how an image displays. It also keeps the image from scolling with the page.
Classic Designs always repeats the image, image size is fixed and the image scrolls as a user browses a page.

This program provides the same new Options to BOTH type of designs.

The best way to experiment with JVbackground is to create a TEST page, install the code on that page and then PREVIEW your choices. This keeps your website looking the same for your users as you experiment with various images and choices. The choices apply to ONLY YOUR TEST page when saved.

Every page where you install the code can have a DIFFERENT choices, unlike the univeral background for all pages for ClassCreator. If you want the choices to be UNIVERSAL for all pages, the code is placed in PREFERENCES (see below).

The new options using JVbackground are an easier way to see your changes without going into design and navigating the various options. In additon, providing you with the same background choices as Responsive without selecting Responsive for Classic pages. The scrolling and image display are the easiest to discover. Images for Classic are typically Repeated because large images are not easy to look correct. Both large and small images can be used. With or without repeating. You can also control the actual image size without having to resize the image to look correct.

 

Page Backgrounds can appear Two Different ways - Full Page or just on the Sides

 

ALL the code shown is entered in Editor SOURCE mode.
Click the Top Upper LEFT icon labelled "Source" in the editor. Then enter the code shown.

The script to generate BackGround images (quickstart: just put this on a page to see what changes  for classic)

<script src="https://www.classcreator.com/000/7/7/0/13077/userfiles/file/snow/JVbackground.js"></script>

Background images are displayed differently from ClassCreator.
Classic Designs can now have background options similar to Responsive Designs
Responsive Designs can have SIDE images - overrides stock Background

Where to Place this code

If you place the code in Preferences ADVANCED SITE TRACKING WITH GOOGLE ANALYTICS ALL the pages use the Script choices

If you place the code just on a page, then just that page will have the Background changes selected

So you could have different backgrounds for different pages.

How to Test choices

The best way to test your code choices is to create test page. Then play around with the choices.

 

The NEW Classic Design Options Available are

  • NO scrolling background - default
  • Optional repeating pattern - norepeat default
  • Image is easy to align on the right side if your page is aligned to the left
  • The left and right sides can have different images

 

JVbackground script Options

 

<script src="https://www.classcreator.com/000/7/7/0/13077/userfiles/file/snow/JVbackground.js?...options..."></script>

These options are entered after JVbackground.js?

The very first option has ? and the rest following use &

URL is the link image, typically stored in your file vault, but can be stored anywhere

Background Options - default values 

?background=imageURL  // URL or predefined name (see names below).    
&backfit=cover                  // cover, contain, auto or dimensions (e.g. 400px = image width)-  (auto - see repeat)
&backcolor=black             //  background color if no image (none) is selected
&backrepeat=norepeat     // image repeats if it is smaller than screen space - used repeat with backfit=auto
&backposition=0px          // image x offset. For example 1000px shifts the background 1000px to the right - classic page is 1000px wide

Side image Options if NO Background Image is entered (this displays images on the SIDE)

&sides=imageURL            // URL for image on both sides (If both sides have open space)
&sideleft=imageURL        // URL for left side image - if there is a left side open spaee
&sideright=imageURL      // URL for right side image - if there is a right side open space
&sidefit=cover                   // cover, contain, auto or dimensions (for example 400px 400px) - how image is displayed. 

Default action if NO options are entered - just the script and nothing else

The existing image uses the background options above. This is mostly useful for classic design. The existing image does not scroll and fills the total space available.

 

Sample pages showing various options

 

Click below to see examples of various background selections
[Note - minimum display width is 1200 wide to see variations (CC classic width is 1000, Responsive varies according to screen resolution) ]

  Side - different images on left and right

  Sides - both left and right Same Image

  Side Right - Repeated Image

  Side Right - Single Image

  Background - Image shows only on Right

  Background -  Image spread to cover both sides

 

 

Predefined Backgrounds or Sides

 

These are the Predefined background or side images

   Click here to preview ALL the images

snow1          - snow trees 1
snow2          - snow trees 2
snowcabin1  - snow with cabin
snowcabin2  - snow with cabin

autumn        - trees 
christmas    - ornaments
birthday       - balloons
fireworks     - fireworks
firework*     - fireworks animated
valentine      - hearts 
saintpatrick - shamrocks
halloween    - pumpkin
football        - football field
rain1            - rain 1
rain2            - rain 2

rain3            - rain 3
rain4            - rain 4
stars1          - star sky 1
stars2          - star sky 2
planet1        - planet sky 2
planet2        - planet sky 2
stars2          - star sky 2
stars2          - star sky 2
glassdoor     - glass door
glass1          - glass
glass2          - glass
glass3          - glass
glass4          - glass
glass5          - glass
glass6          - glass
glass7          - glass
mountain1
    - mountain

 

 

 

 

agape