Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other script problems

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37130
    Jay
    Member

    how to make a {java script} menu with changing cotent on the parent page

    #98956
    Senff
    Participant

    You’ll have to be a little more concrete with describing what you want, I’m afraid.

    #99020
    Jay
    Member

    ok, I made JS menu for the main page and when I click its links they open new pages, but I need them to stay the same and just change the content of the page (below menu – parent one) only

    #99022
    Jay
    Member

    well, here’s the js code:
    function hmenuhover()
    {
    if(!document.getElementById(“hmenu”))
    return;
    var lis = document.getElementById(“hmenu”).getElementsByTagName(“LI”);
    for (var i=0;i {
    lis.onmouseover=function(){this.className+=” iehover”;}
    lis
    .onmouseout=function() {this.className=this.className.replace(new RegExp(” iehover\b”), “”);}
    }
    }
    if (window.attachEvent)
    window.attachEvent(“onload”, hmenuhover);

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Other’ is closed to new topics and replies.