Results 1 to 3 of 3

Thread: Why doesn't switch content 1 and dd tab menu 11 work together in the same page

  1. #1
    Join Date
    Jul 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Why doesn't switch content 1 and dd tab menu 11 work together in the same page

    Can someone help me out? The switch content 1 and DD tab menu 11 don't seem to work proberly on the same page. If someone could help me out that would be great cheers.

    MyStart http://www.mystart.co.nz

  2. #2
    Join Date
    Oct 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hi,

    have you found any solution to your problem? I'm in the same case, I want to integrate a switch content into a dd tab menu sheet.

    first it seems that we have to rename the functions do_onload(). Both of 'em have the same name.

    it's a matter of the java script functions addEventListener and attachEvent...
    http://www.quirksmode.org/js/events_order.html

    But so far I'm not good enough to help us out from this problem.
    hope somebody can find it out.
    Thx

  3. #3
    Join Date
    Oct 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default pb solved

    ok, for those who are interested in: it's not possible to use more than one windows.onload, which is obvious.

    A) i recommend people to do the following for multiple .onload :
    create a new fction debut()

    <script>
    function debut() {
    fct1();
    fct2();
    fct3();
    do_onload(); //from dd tab menu
    do_onload_alpha(); // rename original switch content do_onload()
    etc...
    }
    window.onload = debut;
    </script>

    B) rename the expandcontent() fctions

    C) finally, don't forget to rename the ids also
    thought was more complicated
    Last edited by bolderix1; 10-23-2006 at 08:49 PM.

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
  •