Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2010
    Thanked 0 Times in 0 Posts

    Jquery div swap not working in IE

    I am not a programmer, I am just trying to accomplish some remote rollover div swaps on a website and found this script/instructions. It works great in Firefox, but nothing happens in IE and down at the bottom of the browser window there is a message that the page is not loading correctly. Since the unknown to me is the jquery script, I am assuming the issue is there?

    Here is the page in question: http://automationis.wrightarts.com/

    - mouse-ing over any menu item is supposed to swap out the main div (the images are the same right now, so only the text in the bottom right corner changes)


  • #2
    Senior Coder
    Join Date
    Feb 2009
    Ilkley, West Yorkshire, UK
    Thanked 727 Times in 721 Posts
    Looks like the problem is the switches variable - this must be a reserved word in IE. Try changing your variable names:

    [CODE] $switches = $('#switches > li');
    $slides = $('#slides > div');
    $switches.each(function(idx) {
    $(this).data('slide', $slides.eq(idx));
    function() {
    Last edited by SB65; 09-26-2010 at 10:29 AM.

  • Users who have thanked SB65 for this post:

    amandamay (09-26-2010)


    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