Results 1 to 2 of 2

Thread: Background Images not Randomizing

Hybrid View

  1. #1
    Join Date
    Jan 2014

    Background Images not Randomizing

    I inherited a bit of code and there is one aspect that is driving me bananas, the background images are not randomly loading as they are supposed to. A single static image loads and that's it.

    So I don't bombard anyone with code, the sections that I think are causing the issue are:

    Right after the body tag:

    <script type="text/javascript">//<![CDATA[try{(function(a){var b="http://",c="newsite.robertbillings.net",d="/imagebank/cover/",e="img.gif",f=new a;f.src=[b,c,d,e].join("")})(Image)}catch(e){}//]]></script>
    Bottom of page, right before body tag closes:

    <!-- Javascripts -->
    var page = "index"; 
    var overlayWidth = 1000;
    <script src="../ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
    <script src="cache/scriptsc058.js?359"></script>
    /* JS: Add body class if specific slide is displayed */
    /* Alternate logo color */
    $('.white header h1 img').prop('src', '../imagebank/cover/82_image_36047.png'); rsn.uniformHeight(666);
    // Add download blocker only to home page
    $(document).ready(function() { if (page == "index") { rsn.blocker(); } });

    Without the lower script nothing loads at all. jquery.min is located on the server. Anyone have an idea?

  2. #2
    Join Date
    Mar 2007
    First off, JQuery is not JavaScript.

    Secondly, what is it you want your code to do? It may be simpler to just use JavaScript and its often simper for maintenance and size of script reasons.
    Yes, I know I'm about as subtle as being hit by a bus..(\\.\ Aug08)
    Yep... I say it like I see it, even if it is like a baseball bat in the nutz... (\\.\ Aug08)
    I want to leave this world the same way I came into it, Screaming, Incontinent & No memory!
    I laughed that hard I burst my colostomy bag... (\\.\ May03)
    Life for some is like a car accident... Mine is like a motorway pile up...

    Problems with Vista? :: Getting Cryptic wid it. :: The 'C' word! :: Whois?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles