Results 1 to 4 of 4

Thread: want to use Omni Slide menu using button

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

    Default want to use Omni Slide menu using button

    I am using slide menu(Omni Slide menu) which is available in Menu and Navigation. But here i want to use this menu on one button.Please help me to do that.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Fine this in mmenu.js:
    Code:
    var tb='<div id="'+o.id+'" onmouseover="movein(this);" onmouseout="moveout(this);"><div><table>\n';
    And replace it with this:
    Code:
    var oID_a = o.id;
    var tb='<div id="'+o.id+'"><div><table>\n';
    And at the top of your mmenjs, find this:
    Code:
    var menu=[], resizereinit=true;
    And replace it with:
    Code:
    var menu=[], resizereinit=true, oID_a;
    And then in your main page, have a button like this:
    Code:
    <script type="text/javascript">
      var a = [1,2];
      var i = 1;
      var checkE = function(e){
        if(i >= 1){
          i=0;
        } else {
          ++i;
        }
          return a[i];
      }
      var goNcheck = function(e) { if(!checkE(e)){ movein(e); } else { moveout(e); } };
    </script>
    <input type="button" value="Show/Hide Menu!" onClick="goNcheck(document.getElementById(oID_a));" />
    I havn't seen it working yet, I havn't tested it either. There may be some errors, I just fixed one. So you'll have to see.
    Last edited by Nile; 10-19-2008 at 11:14 PM.
    Jeremy | jfein.net

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

    Exclamation Thank you but still have a problem

    Sir,
    Thank you for your help.But it's not working and having an error on line 82
    ie.Object required.
    Please help.

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Can you paste line 82 please.
    Jeremy | jfein.net

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
  •