Results 1 to 3 of 3

Thread: Text and Image Crawler

  1. #1
    Join Date
    Mar 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Text and Image Crawler

    1) Script Title: Text and Image Crawler

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...wler/index.htm

    3) Describe problem:

    hi, First I would like to say this script rocks.

    as for my problem: The script works fine in FF, but when I switch to IE7 the script doesn't show.

    here is a link to the site:
    http://www.blowfishsushilounge.com/beta/
    Last edited by Snookerman; 04-24-2009 at 06:05 AM. Reason: added “Resolved” prefix

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Technically speaking in javascript there are no commas allowed at the end of objects. However, most modern browsers with the exception of IE (possibly others, but I doubt it) now error correct this for you. In other words here (highlighted and red):

    Code:
            <script type="text/javascript">
            marqueeInit({
                uniqueid: 'Menu',
                style: {
                    'padding': '1px',
                    'width': '100%',
                    'height': '360px',
                },
                inc: 5, //speed - pixel increment for each iteration of this marquee's movement
                mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
                moveatleast: 2,
                neutral: 150,
                savedirection: true
            });
            </script>
    at the end of the style object you have a trailing comma that doesn't belong, remove it:

    Code:
            <script type="text/javascript">
            marqueeInit({
                uniqueid: 'Menu',
                style: {
                    'padding': '1px',
                    'width': '100%',
                    'height': '360px'
                },
                inc: 5, //speed - pixel increment for each iteration of this marquee's movement
                mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
                moveatleast: 2,
                neutral: 150,
                savedirection: true
            });
            </script>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    cool, Thanks

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
  •