Results 1 to 10 of 10

Thread: Animated Collapsible DIV ie6 problem

  1. #1
    Join Date
    May 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Animated Collapsible DIV ie6 problem

    1) Script Title: Animated Collapsible DIV

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

    3) Describe problem:

    http://www.interactive.ac.nz/2008/thomas/lswebb/
    when i view in IE6 it shows any underlined link in its colapsed postion and doesnt move them. also when you put the mouse on the link it hides the underlined link.

    also i have the enquire links as well, with pictures, which work but on the parts with the pacific institute it has the dots stuck there. and hovering on the picture hides the dots.

    I dont know whats going on prolly just made a error or something but i cant seem to find it. although it works fine in ff

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

    Default

    Actually, I can't even test the links in FF, as the links in question are blank actually:

    Code:
    <a  id="artwo" href="javascript:collapse2.slideit(2)" onclick="javascript:collapse3.slideup(1)" >
    
    
    </a>
    Please put up a working example of the script.

  3. #3
    Join Date
    May 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    sorry, I changed that while trying get it to show the css background image instead of the link and be clickable....

    it has a link there no , its in the events tab

  4. #4
    Join Date
    May 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default code

    Code:
    <a  id="artwo" href="javascript:collapse2.slideit(2)" onclick="javascript:collapse3.slideup(1)" >...
    </a>
    
    <a id="arone" href="javascript:collapse3.slideit(1)" onclick="javascript:collapse2.slideup(1)"  > ... </a>
    
    
    <div id="services">
    <div id="dog">
    <!--Your DIV content as follows. Note to add CSS padding or margins, do it inside a DIV within the Collapsible DIV -->
    <p>
    <a class="enq" href="#" onclick="">
    <img  src="images/linkimg/enquire.gif" alt="enquire"/>
    </a>
      </p>
    <img src="images/lsimg/Breakthrough%202-day.jpg" alt="Jumping" style="float:right;" />
    <p>
    <a class="enq" href="#" onclick="">
    <img  src="images/linkimg/enquire.gif" alt="enquire"  />
    </a>
       or visit   
    <!--here--->
    <a class="enq" href="http://www.pacificinstitute.co.nz" onclick="">
    pacific institute
    </a>
    </p>
    </div>
    <script type="text/javascript">
    //Syntax: var uniquevar=new animatedcollapse("DIV_id", animatetime_milisec, enablepersist(true/fase), [initialstate] )
    var collapse3=new animatedcollapse("dog", 800, true)
    </script>
    </div>
    
    
    
    
    <div id="cat">
    
    ggggggggg
    </div>
    
    <script type="text/javascript">
    
    //Syntax: var uniquevar=new animatedcollapse("DIV_id", animatetime_milisec, enablepersist(true/fase), [initialstate] )
    var collapse2=new animatedcollapse("cat", 800, true)
    
    </script>
    
    
    </div>
    Last edited by tommyguntom; 05-14-2008 at 08:14 AM.

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

    Well, it's picking up this style:

    Code:
    a:hover, a:active {
    	color: #005367;
    	text-decoration: none;
    	}
    from stylesheet1.css and probably something else that gives it position and/or a high z-index. Styles cascade a little differently in IE 6. Usually, in most browsers just giving something a class wipes the slate clean of several (not all) other styles that might have otherwise affected an element. But in IE 6 everything that possibly could cascades unless specifically contradicted in the definitions for that class.
    - John
    ________________________

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

  6. #6
    Join Date
    May 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    so i striped everything down
    and it works properly.. hmmmm

  7. #7
    Join Date
    May 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yay found what was wrong.
    realised it was something in the CSS so i divided and conquered to find what was the culprit and is was this piece of #$@! line of code
    Code:
    * html a {
    	position: relative;
    	}

  8. #8
    Join Date
    May 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ok not quite, it was working on a test version with only the events tab. but stil does the same thing on the real one even with no css at all it still does it
    Last edited by tommyguntom; 05-14-2008 at 08:51 AM.

  9. #9
    Join Date
    May 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    oooooooook so its

    Code:
    * html a {
    	position: relative;
    	}
    aaswell asss this piece of FRIKEN !@#$@#

    Code:
     <!--[if lte IE 6]>
     <script type="text/javascript" src="java/supersleight-min.js"></script>
     <![endif]-->
    if theres anything else im gona go nuts. and havnt even looked at that script to see how its making it not work.

  10. #10
    Join Date
    May 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation

    k hopefully solved.

    in supersleight.js i removed

    Code:
    if(applyPositioning&&(obj.tagName=='A'||obj.tagName=='INPUT')&&obj.style.position===''){
    	obj.style.position='relative';
    	
    	  }
    have no idea what that does but everything seems to be working fine

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
  •