Using Javascript to rotate images with the style.backgroundImage property & I leave the onload pg & return, the images have trouble loading.

I'm using Javascript to rotate background images -->
function rotateImages() {
setInterval("startRotator()", 7000);
var counter = 0;
function startRotator() {
var images = ["images/finance1.jpg","images/finance2.jpg","images/finance3.jpg","images/finance4.jpg","images/finance5.jpg","images/finance6.jpg"];
if( counter >= images.length ) {
counter = 0;
var image = "url('" + images[counter] + "')";
counter++;
document.body.style.backgroundImage=image;
The script is triggered by the load event when the homepage loads and the script only runs on the homepage. Everything works fine upon opening the homepage.
If I leave the home page and return, the images will have trouble loading for about 3 to 5 cycles and I'll get white backgrounds for part of the time. The same thing happens if I enter the site from a page other than the homepage and then go to the homepage.
I discovered, however, that if I enter the site at the homepage and then leave the homepage and return using the back button, everything runs fine. Apparently it then accesses a cached version of the homepage? Seems having two cached versions creates a conflict?
This problem only happens with Firefox (I have ver 29.0.1). It does not happen on IE ver 11, Chrome ver 34, or Safari ver 5.1.7.
I get the same problem with XP, Win7, and Win8 but, only on Firefox.
Can you please fix this?

Hey, I am trying to reproduce this here: [http://jsfiddle.net/u3TLb/]
Mozillazine forums and the [http://webcompat.com] are more specialized in Web Compatibility, please ask there as well.

Similar Messages

  • Hi, I have trouble loading my iPhone 5 photos into Aperture. The iPhone icon appears in the import window, but the images won't show up in the loading window.

    Hi, I have trouble loading my iPhone 5 photos into Aperture. The iPhone icon appears in the import window, but the images won't show up in the loading window

    The iPhone icon appears in the import window, but the images won't show up in the loading window
    Do your images show, if you disable the option "Do not import duplicates"? If yes, then check, if the images have already been imported, eg. using Photo Stream, if you are using Aperture 3.3 or later.
    Aperture 2, Mac OS X (10.6.8)
    Is your profile signature above still current?

  • [svn:fx-trunk] 7830: Update ASDoc on the new backgroundFrameRate property to WindowedApplication , to by default reduce the CPU usage in cases where an app is not 'active'.

    Revision: 7830
    Author:   [email protected]
    Date:     2009-06-14 15:57:29 -0700 (Sun, 14 Jun 2009)
    Log Message:
    Update ASDoc on the new backgroundFrameRate property to WindowedApplication, to by default reduce the CPU usage in cases where an app is not 'active'.
    Bugs: SDK-21135
    Reviewer:
    QE Notes:
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-21135
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as
        flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication. as

    By the way, I agree with sybrand: you need to tune
    your redo log size.
    Regards
    Ignacio
    http://oracledisect.blogspot.com
    Ignacio,
    The excessive waits on log file parallel write and the related client wait of log file sync may be due to insufficient CPU availability, and may not point at an actual redo log size problem or a problem with the disk speed where the redo is written to disk, especially if there are 3 Oracle instances on the server with a single CPU.
    Paraphrased from "Optimizing Oracle Performance":
    The log file sync wait event is one of the first events to show increased latencies due to the time a process spends waiting in a CPU wait queue while processing excessive logical IOs.
    Kevin Closson wrote a couple blog entries that examined the potential problems of insufficient CPU capacity and its effects on log file parallel write when writing to solid state disks, and even when writing redo was explicitly disabled:
    http://kevinclosson.wordpress.com/2007/07/21/manly-men-only-use-solid-state-disk-for-redo-logging-lgwr-io-is-simple-but-not-lgwr-processing/
    "Once LGWR loses his CPU it may be quite some time until he gets it back. For instance, if LGWR is preempted in the middle of trying to perform a redo buffer flush, there may be several time slices of execution for other processes before LGWR gets back on CPU..." Fix the CPU problem, and the other significant waits may decrease.
    JesusLuvR,
    yingkuan's suggestion to look at the SQL statement that performs the 4,365,564 logical IOs, consumes 186.03 CPU seconds, and has an execution time of 225.06 seconds, is likely a very good starting point. You might also want to check the value of the SESSION_CACHED_CURSORS parameter to see if it needs to be adjusted.
    Charles Hooper
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • Due to Photoshop Elements 12 Organizer I uninstalled the program.  When I re-installed Photoshop Elements 12 on the same computer the "Photoshop Elements 12.0.exe" file is not available.  I have tried loading Photoshop Elements 12 from the Adobe web site

    Due to Photoshop Elements 12 Organizer I uninstalled the program.  When I re-installed Photoshop Elements 12 on the same computer the "Photoshop Elements 12.0.exe" file is not available.  I have tried loading Photoshop Elements 12 from the Adobe web site without success.

    The Elements 12 shortcut can't find the Elements12.0.exe file so the program will not load.  I can load the editor from its .exe file but not the organizer.

  • Inadvertently the typesize on the iPad screen has increased until it is impossible to read the screen.  Can someone tell me how to return the type size to standard please.

    As a newcomer to the iPad, can you please tell me how to return the font size to standard. Somehow I've enlarged the font size until it's unreadable and it applies to the icons as well!  Many thanks in anticipation.

    Try this:
    Settings>General>Accessibility>Zoom>Off

  • How to replace a sub vi that is used in many main VIs with another sub vi under a different file name without repeating the replace vi operation?

    Hello,
    I am converting a LV5.1.1 llb to LV7.1 that contains serial sub VIs ("Serial Port Read.vi", "Serial Port Write.vi", and "Bytes at Serial Port.vi") that need to be replaced with the newer VISA serial sub VIs ("VISA Read.vi", "VISA Write.vi", and "VISA Bytes at Serial Port.vi").  The older serial sub VIs are used on many different main VIs under the same llb, and I want to be able to replace all the older serial sub VIs with the equivalent VISA sub VIs in LV7.1 without repeating the same replace VI task on each main VI.  Please advise if it can be done in LV7.1 and how?
    Thank you so much for your help,
    Valen

    If you have the old serial VIs in the llb, make a copy of it and delete them. Then, when you open the top level VI in 7.1, LabVIEW should replace them with compatibility VIs of the same name but using VISA.

  • I have been trying to use an apple wireless keyboard with my ipad 2.  I will be typing then suddenly the ipad will repeat the key strock about twenty times.  It drives me crazy.  What is happening and why?

    I have been trying to use an apple wireless keyboard with my ipad 2.  I will be typing along and suddenly the ipad will take off and repeat the key stroke about twenty times rapid fire.  It really makes me crazy.  What is happening and why?  Help

    Found this thread by searching the forum. I hope it helps.
    https://discussions.apple.com/thread/5471311

  • I am using firefox 3.6.7. with Windows 7. There is no " sort by name" in the dropo down when I right click. How do I alphabatize my book marks?

    I want to alphabetize my bookmarks. I am using Firefox 3.6.7 with Windows 7. When I right click on a bookmark no "sort by name" appears in the drop down. How can I do this/

    In Firefox 3 the option to sort bookmarks is only available for folders and not for individual bookmarks.
    Easiest to sort by name is to do that in the left pane of the Bookmarks Manager (Bookmarks > Organize Bookmarks) or in the sidebar and right-click the folder that you want to sort.
    See also http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox
    SortPlaces: https://addons.mozilla.org/firefox/addon/9275

  • How to search a property value in a TDMS and return the group name.

    Hi.
    Please help
    I want to search a TDMS file by property value and then return the group names or channels.
    I am using labview 8.2 with the connectivity toolkits.

    The error # is -2558
    I try to close the TDMS file before it reach the search part but still give me the error code -2558
    Attachments:
    search and read property value per group.jpg ‏77 KB

  • I have trouble loading PDF files in Firefox both 3.6.15 and the 4 Beta. IE 6.0 and 7.0 both load them fine. Thanks.

    I have an account with fine homebuilding. The pdf files often take more than one attempt to load and some will not load at all. All the PDFs load first time with IE 6 or 7.
    Thanks

    Yes, it is possible. But you need to make sure the '''firefox.exe''' process for one version isn't still running in the Task Manager before trying to open the other version. If a process is "hung", you'll just get a new window of the "hung" process.
    Create a new profile exclusively for the 4.0 beta version and create a desktop shortcut with -P "profile" appended to the target to launch that profile.
    * http://kb.mozillazine.org/Testing_pre-release_versions
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

  • After using the minidisplay port to connect to a projector, my computer screen displays images with less resolution than before.  How do I get back the usual sharp resolution?

    After using the minidisplay port to connect to a projector, my computer screen does not have the usual sharp resolution.  How do I get back that sharp resolution?  The computer screen images are now a bit blurry.

    Do you mean after the projector is disconnected? It should change back to normal after disconnecting. If it does not, go to System Preferences > Displays and move the resolution setting back to the largest number.

  • Images have trouble loading on secure (https) sites..

    Often images won't load when I log into my E*Trade or PayPal accounts. I often have to refresh the screen to see them. It's happened a couple times on this site, but it seems to happen more often with secure sites.
    Anyone else have this problem?
    Bryan

    My problem was solved with my new iMac. For some reason, secure images wouldn't load always on the mini. Don't know if it was the video RAM, or what, but the iMac loads them everytime in Safari. I have another mac mini.
    Strange!
    Bryan

  • Ihave a mac osx 10.4.11 and use firefox and safari as browsers and have trouble loading adobe flash

    I need help loading this adobe flash player as I keep getting the failure answer

    Hi, have you reviewed and followed the Mac Troubleshooting Guide?
    http://kb2.adobe.com/cps/865/cpsid_86551.html
    You can also review this recent thread that has a lot of valuable information:
    http://forums.adobe.com/thread/783366?tstart=0
    Hope those are helpful.
    eidnolb

  • How can I use javascript in a Text Area with HTML editor??

    My question is... how can I use javascript in Text Area with HTML editor??
    I can use javascript functions that change the content of Text Areas but i can´t if i try in text area with html editor....
    I need to limit number of characters in a text area with html editor and i can´t.
    could anybody help me please?

    I have been experiencing similar problems with the HTML Editor and have managed to find an answer that should start to answer some of my questions. The Apex HTML Editor Standard is actually an HTML editor called FCKeditor. The FCKeditor has a Javascript API that can be found at http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API. Unfortuately this doesn't seem to give the whole answer and I found more at http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:49607.
    I needed to get the text entered within my html editor standard (e.g. P1_MYTEXT) and use it within my javascript function. I did this by using the following script
    <script language="JavaScript" type="text/javascript">
    function showtext(){
    var oEditor = FCKeditorAPI.GetInstance('P1_MYTEXT');
    var editortext = escape(oEditor.GetXHTML(oEditor.FormatOutput));
    alert(editortext);
    </script>
    Hope this helps.
    Matthew

  • How do I change the style of a subset of rows inside a Datagrid?

    How do I change the style of a subset of rows inside a
    Datagrid? I have tried dgExample.selectedItem.fontWeight="bold" but
    that does not work. What should I do?
    Please help.

    I see where you mean but I'm not familiar with the 'language'
    of CSS. Currently, the background of the body (or probably the div
    container) is set to none on this page. So visually, I have a white
    background with black letters. I want to place a gradient image in
    this container instead of the 'none'. The coding with "none isn't
    even the CSS code because I vaguely remember deleted it because I
    thought I would never need it. So can you tell the CSS code I need
    to place this image in the #container (I think that's where it
    should go) and where? Thanks. I've included the little piece of
    code where I think it should go in somewhere. Thanks for the help.
    <link href="../CSS/twoColFixLtHdr.css" rel="stylesheet"
    type="text/css" /><!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional
    comment */
    .twoColFixLtHdr #sidebar1 { width: 230px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional
    comment */
    .twoColFixLtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixLtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout
    it needs to avoid several bugs */
    </style>
    <![endif]-->
    <style type="text/css">
    <!--
    -->
    </style>
    <link href="../css/global.css" rel="stylesheet"
    type="text/css" />
    <script src="../SpryAssets/SpryMenuBar.js"
    type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarHorizontal.css"
    rel="stylesheet" type="text/css" />
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    </head>
    Lou
    quote:
    Originally posted by:
    Newsgroup User
    Redefine the CSS for ".twoColFixLTHDR #container" in the page
    itself,
    below the link to the external style sheet.
    JMS

Maybe you are looking for

  • WebDynpro with Adobe Interactive Forms

    Hello Experts, We use Java Webdynpro with Adobe Interactive forms. We have 2 local development components. In the first development component we create a PDF and mail that PDF to client. De mode we used for PDF creation in 'UpdateDataInPdf'. The clie

  • Inconsistency using SUN Rowset Reference Implementation

    I am Using the RowSet reference implemention with Oracle Database. I am having a class which takes a input in form of XML adhering to the webrowset format. The xml contains some records to be inserted , some records to be updated and some records to

  • Slow load time

    We are a quality control group that needs to check thousands of files to see if they open and playback correctly in Quicktime Pro.  Unfortunately, Quicktime takes an unusually long time to start up for each file.  Are there settings available to make

  • Office Jet 8600 All in One

    My printer was working fine wirelessly when I noticed it flashing and a message to turn off and back on, which I did. All I get it what looks like a timer button on the display with a code. I have tried to reset several times and sometimes the code c

  • Overriding exit on close?

    how can i overwrite the default exit on close operation of a JFrame to run a method of my choice? what i am actually trying to do is, create a booking program, only i want it to load itself from file, check the users username & password, then initali