Avatar of aznprncritic
aznprncritic
 asked on

Problem with Scriptaculous effect

I'm using the following script to animate some rollovers:

Effect.divSwap = function(element,container){
    var div = document.getElementById(container);
    var nodeList = div.childNodes;
    var queue = Effect.Queues.get('menuScope');

    if(queue.toArray().length<1){
        if(Element.visible(element)==false){
            for(i=0;i<nodeList.length;i++){
                if(nodeList.item(i).nodeName=="DIV" && nodeList.item(i).id!=element){
                    if(Element.visible(nodeList.item(i))==true){
                        Effect.Fade(nodeList.item(i),{queue:{position:'front',scope:'menuScope',limit:1}})
                    }
                }
            }
            Effect.Appear(element,{queue:{position:'end',scope:'menuScope',limit:2}})
       }
   }
}

Here's the HTML i'm using:

<div id="localNavContainer">
    <ul id="localNav">
      <li id="simplicity"><a href="choose-simplicity.php" onmouseover="Effect.divSwap('simplicity-hero','centerCol');" title="Simplicity"></a></li>
      <li id="style"><a class="selected" href="choose-style.php" onmouseover="Effect.divSwap('style-hero','centerCol');" title="Style"></a></li>
      <li id="performance"><a href="choose-performance.php" onmouseover="Effect.divSwap('performance-hero','centerCol');" title="Performance"></a></li>
    </ul>
    <div><img src="img/bg/largedivider.jpg" width="881" height="35" alt="" /></div>
  </div>

The problem I'm having is that in IE, when I rollover the items, the effect will only fire *most of the time* but not everytime.  Am I missing something here?
JavaScript

Avatar of undefined
Last Comment
system_down

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
system_down

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck