Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    January 18th, 2005
    Posts
    59
    Can anyone tell me how to get the below script to hide the div tag in a different way?
    With this one - in IE - when someone scrolls down the page.. it thorws the calculations off in the script.. so the div tag is hidden before you can get your mouse over it.. when your scrolled all the way to the top it works fine..

    SCRIPT
    ______________________________

    <script type="text/javascript">
    <!--
    var time = 3000;
    var numofitems = 6;

    //menu constructor
    function menu(allitems,thisitem,startstate){
    callname= "gl"+thisitem;
    divname="subglobal"+thisitem;
    this.numberofmenuitems = 6;
    this.caller = document.getElementById(callname);
    this.thediv = document.getElementById(divname);
    this.thediv.style.visibility = startstate;
    }

    //menu methods
    function ehandler(event,theobj){
    for (var i=1; i<= theobj.numberofmenuitems; i++){
    var shutdiv =eval( "menuitem"+i+".thediv");
    shutdiv.style.visibility="hidden";
    }
    theobj.thediv.style.visibility="visible";
    }

    function closesubnav(event){
    if ((event.clientY <170)||(event.clientY > 850)||(event.clientX <170)||(event.clientX > 400)){
    for (var i=1; i<= numofitems; i++){
    var shutdiv =eval('menuitem'+i+'.thediv');
    shutdiv.style.visibility='hidden';
    }
    }
    }
    // -->
    </script>

    ______________________________


    Any Help Would Be Greatly Appreciated!

    Happy Holidays
    &
    Merry Christmas..

  2. #2
    Member
    Join Date
    January 18th, 2005
    Posts
    59
    I guess no one knows the answer...

    and I thought this was the programmers corner..
    mmmmmmmm..


  3. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. A Lil funny :)
    By purplebear in forum Daily Chuckle
    Replies: 1
    Last Post: August 25th, 2013, 06:38 PM
  2. Question on AE Script
    By bandi in forum Cusimano.com Scripts
    Replies: 4
    Last Post: August 26th, 2005, 03:06 PM
  3. Question Regarding AE Script
    By bandi in forum Cusimano.com Scripts
    Replies: 1
    Last Post: August 11th, 2005, 09:23 PM
  4. Question regarding AE Script
    By bandi in forum Cusimano.com Scripts
    Replies: 2
    Last Post: July 27th, 2005, 09:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •