Results 1 to 3 of 3

Thread: Stuck with Step Carousel Viewer

  1. #1
    Join Date
    Aug 2008
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Stuck with Step Carousel Viewer

    1) Script Title: Step Carousel Viewer 1.4

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

    3) Describe problem:
    Hi all,

    I'm having problems with the Step Carousel Viewer 1.4 on IE7. It all works fine in Firefox, but it breaks in IE, and I can't figure out just where the problem lies in my code. The problem can be seen at http://student.cmd.hro.nl/0780525/sh...V2/indexie.php
    Can anybody point me in the right direction?

  2. #2
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Actually, the script doesn't even run for me in FF on your page. Looking at the source, there are a few issues that certainly may be the contributing reasons. Firstly, there should be no semicolon at the very end of your config code (in red):

    Code:
    	if(statusA == 3){
    	var obj1= document.getElementById('n1'); obj1.style.border = "none";
    	var obj2= document.getElementById('n2'); obj2.style.border = "none";
    	var obj3= document.getElementById('n3'); obj3.style.border = "solid 1px #000";
    	}
    	},
    })
    Secondly, the HTML you're showing within each "panel" DIV is totally out of whack. For example:

    Code:
    <div class="belt">
    
    <div class="panel">
    <!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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    
    <body>
    <div id="afbeelding"><img src="images/1.jpg" /></div>
    <div id="overlay">
    <b>Content inside DIV!</b><br />
    <b>Note: Fade effect enabled. Height programmically defined. DIV hidden using inline CSS.</b><br />
    </div>
    </body>
    </html>
    </div>
    Why are there a whole bunch of doctype, HEAD, even BODY tags within this HTML? It should be a simple:

    Code:
    <div class="panel">
    //valid BODY HTML here
    </div>
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    SkyR (08-27-2008)

  4. #3
    Join Date
    Aug 2008
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I can't believe it was something as simple as a semicolon that I overlooked. Thanks a lot

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
  •