dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: javascript code not working in IE8

  1. #1
    Join Date
    Aug 2011
    Posts
    1

    Unhappy javascript code not working in IE8

    Hi guys,

    can anyone offer clues as to why the image gallery in the following page doesn't work properly in IE8? It's fine in FF, Chrome, Safari.

    http://luxe-deluxe.com/collections/winter2011.html

    would using the HTML 5 tag be of any use? Any help is greatly appreciated... I'll post the answer if I find it.

  2. #2
    Join Date
    May 2011
    Posts
    194

    activate script debugger of ie 8

    Hi,

    please use script debugger of IE 8

    winter2011.html
    line 29
    char 1




    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head profile="http://www.w3.org/2005/10/profile">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="icon" type="image/png" href="../favicon.png" />
    <title>Luxe Deluxe | WINTER 2011</title>
    <meta name="Description" content="Fashion Design by Susie Jacobs" />
    <meta name="Keywords" content="luxe deluxe, susie jacobs, clothing, fashion design, melbourne, australia" />
    <link rel="stylesheet" type="text/css" href="../style.css"/>
    <script type="text/javascript">
    var addthis_config = {
    ui_cobrand: "Luxe Deluxe"
    }
    </script>
    <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4e1a525515d7b0c3">
    </script>


    <!-- FOLLOWING SCRIPT PRELOADS GALLERY IMAGES -->
    <script type="text/javascript">
    <!--


    if (document.images)
    {
    preload_image_object = new Image();
    // set image url
    image_url = new Array();
    img_url[0] = "Susielookbook-561.jpg" < ================================== line 29 'img_url' undefinded
    img_url[1] = "Luxe Deluxe W11 (9).jpg"
    img_url[2] = "Luxe Deluxe W11 (10).jpg"
    img_url[3] = "Luxe Deluxe W11 (13).jpg"
    img_url[4] = "Luxe Deluxe W11 (19).jpg"
    img_url[5] = "Susielookbook-259.jpg"
    img_url[6] = "Susielookbook-293.jpg"
    img_url[7] = "Susielookbook-431.jpg"
    img_url[8] = "Susielookbook-613.jpg"

    var i = 0;
    for(i=0; i<=3; i++)
    preload_image_object.src = image_url[i];
    }

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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