SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Zero Point Zero Siebird's Avatar
    Join Date
    Feb 2007
    Location
    York, PA
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    jQuery crashes IE6

    Hi -

    Can't seem to figure out what IE6 doesn't like about this simple script for an 'accordian' type effect. Example

    Code:
    <script type="text/javascript">
    	$(document).ready(function() {
      		$(".accordian").hide();
      		$("#resources h3").click(function() {
    			$(this).next(".accordian").slideToggle('slow')
    				.siblings(".accordian:visible").slideUp("slow");
      			});
    		$("#resources h3").mouseover(function() {
    			$(this).addClass("over");
    			});
    		$("#resources h3").mouseout(function() {
    			$(this).removeClass("over");
    			});
    	});
    </script>

  2. #2
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Seems like you need to report this to jQuery.

  3. #3
    Zero Point Zero Siebird's Avatar
    Join Date
    Feb 2007
    Location
    York, PA
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Apparently the IE6-only stylesheet is the thing that is causing the page to crash. When I removed the reference to the stylesheet, it worked fine. Take a look...


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
  •