Results 1 to 5 of 5

Thread: Image Crawler - doesn't show images in IE 8

  1. #1
    Join Date
    Oct 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Crawler - doesn't show images in IE 8

    1) Script Title: Image Crawler

    2) Script URL (on DD): http://test2.slowotwor.com/

    3) Describe problem: I cannot see the images in IE 8. It seems that the script deasn't work. In FF, Chrome and Opera works fine.
    Please help!

  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

    Always worked fine in IE 8 here. I think I see the problem. Here:

    Code:
    <script type="text/javascript">
    marqueeInit({
    	uniqueid: 'crawler-logos',
    	style: {
    		'padding': '10px',
    		'max-width': '1190px',
    		'height': '90px',
    		'width': '100%!important',
    	},
    	inc: 8, //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,
    	random: true,
    	addDelay: 30,
    	savedirection: true,
    });
    </script>
    See the red coma? It's technically invalid, get rid of it (there should be no coma after the last item in an array, nor after the last member of an object). Most browsers will error correct this for you. IE 8 and earlier will not.

    There could also be other problems, but - since it works in other browsers, that's probably it.

    The browser cache may need to be cleared, and/or the page refreshed to see changes.
    - John
    ________________________

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

  3. #3
    Join Date
    Oct 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi John!

    Thank you for your support!

    Unfortunately, I delete this come and nothing changes.
    I will be grateful for any other advices.

    Anna

  4. #4
    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

    I'm really not sure what to tell you. First of all, even without IE, there's something fundamentally off about the layout. You should not need 'width ':'100%!important'. And for IE 8, it can't be, and it cannot have a trailing comma for the same reason I mentioned before. The page also cannot have jQuery 2.1.1 because that doesn't support IE 8. But I think we can work around all of that, mostly.

    Get rid of:

    Code:
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    Add the highlighted, as shown:

    Code:
    	<link rel="stylesheet" href="http://test2.slowotwor.com/wp-content/themes/janal-theme/reset.css" type="text/css">
        <link rel="stylesheet" href="http://test2.slowotwor.com/wp-content/themes/janal-theme/style.css" type="text/css">
        <link rel="stylesheet" href="http://test2.slowotwor.com/wp-content/themes/janal-theme/style-typography.css" type="text/css">
    	<link rel="stylesheet" href="http://test2.slowotwor.com/wp-content/themes/janal-theme/stylesheet-fonts.css" type="text/css">
    <style type="text/css">
    .marquee0, .marquee0 div {width: 100% !important;}
    </style>
    Change:

    Code:
    <script type="text/javascript">
    marqueeInit({
    	uniqueid: 'crawler-logos',
    	style: {
    		'padding': '10px',
    		'max-width': '1190px',
    		'height': '90px',
    		'width': '100%!important',
    	},
    	inc: 8, //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,
    	random: true,
    	addDelay: 30,
    	savedirection: true
    });
    </script>
    to (without the !important and without the comma):

    Code:
    <script type="text/javascript">
    marqueeInit({
    	uniqueid: 'crawler-logos',
    	style: {
    		'padding': '10px',
    		'max-width': '1190px',
    		'height': '90px',
    		'width': '100%'
    	},
    	inc: 8, //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,
    	random: true,
    	addDelay: 30,
    	savedirection: true
    });
    </script>
    That should do it now.
    Last edited by jscheuer1; 10-07-2014 at 04:32 PM. Reason: style improvement
    - John
    ________________________

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

  5. #5
    Join Date
    Oct 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    John!
    Thank you very much for all hints and advices - I delete jQuery 2.11, I correct the CSS inside JS and on the beginning nothing change.
    Additionally, I add this JS code inside the body, on the bottom of the site and it works!

    I do not know why exactly nut meybe is some wordpress issue or my mistake.

    Thank you once again!
    The problem is resolved!
    Cheers!

Similar Threads

  1. Featured Content Slider doesn't show images anymore (Wordpress)
    By cheesenonion89 in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 03-26-2014, 05:58 PM
  2. crawler doesnt show images when hosted
    By bootersbooters in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 02-16-2013, 04:38 PM
  3. [Facebook Recommendation] Images Doesn't Show!
    By bbilal in forum JavaScript
    Replies: 0
    Last Post: 01-09-2011, 12:37 AM
  4. Text and Image Crawler WITH Captions for Images?
    By goldengirl in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 08-04-2010, 08:08 PM
  5. Center images in Image and Text Crawler
    By MTCgirl in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 04-06-2010, 06:14 AM

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
  •