Looking for OnClick for Custom Menu

  • Unknown's avatar

    Hi,

    Im looking for anything what will get me closer to a OnClick menu for the WordPress Custom Menu.

    All comments, pointer, hints and suggestions are welcome!

    Been trying to find this for some time now.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    What the hell is an ONCLICK menu?

  • Unknown's avatar

    Picture a drop down menu that drops down then you click on it.

  • Unknown's avatar

    You can’t use this code on WordPress, but I hope it helps.


    ENTER TEXT

    <script language="javascript">

    function toggleDiv(divid){

    var TheDiv = document.getElementById(divid);

    alert(TheDiv);
    alert(TheDiv.style.display);

    if(TheDiv.style.display == 'none'){
    TheDiv.style.display = 'block';
    }else{
    TheDiv.style.display = 'none';
    }
    }
    </script>
    <div id='T1' style="display:none">ENTER TEXT THAT WILL BE CLICKED
    <textarea width="99" length="99" >
    <HTML>
    <FORM NAME="form1">
    <SCRIPT LANGUAGE="JavaScript"> <img src="arrowbuttonn.gif" onclick="toggleDiv('T1')" /> <div id='T1' style="display:none">ENTER TEXT HERE
    <textarea width="99" length="99" >
    <HTML>
    <FORM NAME="form1">
    <SCRIPT LANGUAGE="JavaScript">

    function ChangeColor(c)
    {
    document.bgColor=c
    }

    function Bigger()
    {
    document.form1.BUT.size +=10;
    }

    function Smaller()
    {
    document.form1.BUT.size -=10;
    }

    function HandleClick()
    {

    document.form1.BUT.size +=10;
    }

    </SCRIPT>
    </FORM>

    ENTER TEXT ON WHICH YOU WANT TO APPEAR

    </HTML>
    </textarea>

    </div>

    Haven’t done HTML in a while. Whew.

  • Unknown's avatar

    You can’t use this code on WordPress, but I hope it helps.

    ENTER TEXT

    <script language="javascript">

    function toggleDiv(divid){

    var TheDiv = document.getElementById(divid);

    alert(TheDiv);
    alert(TheDiv.style.display);

    if(TheDiv.style.display == 'none'){
    TheDiv.style.display = 'block';
    }else{
    TheDiv.style.display = 'none';
    }
    }
    </script>
    <div id='T1' style="display:none">ENTER TEXT THAT WILL BE CLICKED
    <textarea width="99" length="99" >
    <HTML>
    <FORM NAME="form1">
    <SCRIPT LANGUAGE="JavaScript"> <img src="arrowbuttonn.gif" onclick="toggleDiv('T1')" /> <div id='T1' style="display:none">ENTER TEXT HERE
    <textarea width="99" length="99" >
    <HTML>
    <FORM NAME="form1">
    <SCRIPT LANGUAGE="JavaScript">

    function ChangeColor(c)
    {
    document.bgColor=c
    }

    function Bigger()
    {
    document.form1.BUT.size +=10;
    }

    function Smaller()
    {
    document.form1.BUT.size -=10;
    }

    function HandleClick()
    {

    document.form1.BUT.size +=10;
    }

    </SCRIPT>
    </FORM>

    ENTER TEXT ON WHICH YOU WANT TO APPEAR

    </HTML>
    </textarea>

    </div>

    Haven’t done HTML in a while. Whew.

  • Unknown's avatar

    You can’t use this code on WordPress, but I hope it helps.

    ENTER TEXT

    <script language="javascript">

    function toggleDiv(divid){

    var TheDiv = document.getElementById(divid);

    alert(TheDiv);
    alert(TheDiv.style.display);

    if(TheDiv.style.display == 'none'){
    TheDiv.style.display = 'block';
    }else{
    TheDiv.style.display = 'none';
    }
    }
    </script>
    <div id='T1' style="display:none">ENTER TEXT THAT WILL BE CLICKED
    <textarea width="99" length="99" >
    <HTML>
    <FORM NAME="form1">
    <SCRIPT LANGUAGE="JavaScript"> <img src="arrowbuttonn.gif" onclick="toggleDiv('T1')" /> <div id='T1' style="display:none">ENTER TEXT HERE
    <textarea width="99" length="99" >
    <HTML>
    <FORM NAME="form1">
    <SCRIPT LANGUAGE="JavaScript">

    function ChangeColor(c)
    {
    document.bgColor=c
    }

    function Bigger()
    {
    document.form1.BUT.size +=10;
    }

    function Smaller()
    {
    document.form1.BUT.size -=10;
    }

    function HandleClick()
    {

    document.form1.BUT.size +=10;
    }

    </SCRIPT>
    </FORM>

    ENTER TEXT ON WHICH YOU WANT TO APPEAR

    </HTML>
    </textarea>

    </div>

    Haven’t done HTML in a while. Whew.

    I apologize for the last two comments. Please ignore them.

  • Unknown's avatar

    This is the first part. WordPress didn’t show it.

    ENTER TEXT

  • Unknown's avatar

    @tennisfilmproduction: How on earth does this help when it can’t be used on wordpress.com?

    @silvertistel: See here:

    Custom menus

  • Unknown's avatar

    @justpi Thank you for your reply. But the link you posted only cover the basic use of the custom menu and nothing about how to make a parents child pages visible while clicking on them.

    @tennisfilmproduction
    Thank you for your reply. You are closer to a solution but this would not work with wordpress’s custom menus since each parent has its own ul list. What you wrote will show all children.

  • Unknown's avatar

    @silvertistel: You’re welcome. My post covers everything that has to do with custom menus. Please describe more precisely what you’re looking for.

  • Unknown's avatar

    lol.

    Bummer that advanced HTML can’t be used in WordPress for free…

    Anyways, you’re welcome.

  • The topic ‘Looking for OnClick for Custom Menu’ is closed to new replies.