JS Background Resize issue.

Out of context: Reply #4

  • Started
  • Last post
  • 12 Responses
  • meffid0

    ^ That JPG one requires you put this in:

    Example HTML for Background DIV

    <!-- This gets positioned absolutely so place it anywhere. -->
    <div id="body-background"><img src="image/bg.jpg" alt="Bg"></div>

    Example Example jQuery Code

    $(document).ready(function() {
    $("#body-background").ezBgResize...
    });

    • It doesn't *require* anything. Name the div ID whatever you want just make sure you reference it properly in your jQuery call.foobaz
    • jQuery call.foobaz

View thread