Results 1 to 6 of 6

Thread: I need a little help on a script

  1. #1
    Join Date
    Apr 2008
    Posts
    84
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default I need a little help on a script

    Hi, all.

    I have this script on my clients site, to make 2 images preload before they marquee (...I know... but that's what he asked for...

    Code:
    <script>
    var myimages=new Array()
    function preloadimages(){
    for (i=0;i<preloadimages.arguments.length;i++){
    myimages[i]=new Image()
    myimages[i].src=preloadimages.arguments[i]
    }
    }
    preloadimages("images/banner.gif","images/america.png")
    </script>
    Problem is, the images are visible as they load up, then just sit there for a half a second, then disappear, and finally the scroll begins.
    This happens in Firefox, but it seams to work OK in IE.

    I need them to not show until the marquee starts.

    Can anyone rewrite it so it does that?

    I'm no coder, I just copied that off a tutorial site and added my image URL's, so if anyone could edit that for me and post the edit up here, or give me a different script, I'd appreciate it, thanks.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Please post a link to the page on your site that contains the problematic script so we can check it out.

    Please post a link to the site you found this script at.


    And is that all the code?
    Jeremy | jfein.net

  3. #3
    Join Date
    Apr 2008
    Posts
    84
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Hi, Nile.
    I'm not sure where the code came from, it was a response to someone elses question in some old forum post that came up in a Google search.
    That was all of the code. I deleted that script, since it did absolutely nothing in Firefox, and IE7 always displayed the marquee as I needed.

    Site is:
    http://www.selfdefensetrainingcentersofamerica.com/

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Is the marquee supposed to be in that little grey box below the header? Because I'm not seeeing anything. (Using Chrome)
    Jeremy | jfein.net

  5. #5
    Join Date
    Apr 2008
    Posts
    84
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Nile View Post
    Is the marquee supposed to be in that little grey box below the header? Because I'm not seeeing anything. (Using Chrome)
    ?
    The intro page, with the big marqueeing picture dropping down and the word 'America' marqueeing in from the left.

  6. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I don't think you should actually be using a <marquee> tag, try the text and image crawler.
    Jeremy | jfein.net

Bookmarks

Posting Permissions

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