The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Drop down list separator line

Go down

Solved Drop down list separator line

Post by JAN2XONLINE on February 12th 2013, 2:42 am



How do I put separator line in the drop down list like in that one?

I'm using this code:
Code:
(function() {
  window.fmtabs = {
      add: function (name) {
        if (document.getElementById('logout')) $('#fa_menu').before('<div class="toolbar_name">' + name + '</div>');
      },
      list: function (name, html) {
        if (document.getElementById('logout')) {
            $('#fa_menu').before('<div id="toolbar_list_name_' + name + '" class="toolbar_list_name">' + name + '</div><div id="toolbar_list_' + name.replace(/\s/g, '_') + '" class="toolbar_list">' + html + '</div>');
            $('#toolbar_list_name_' + name.replace(/\s/g, '_')).click(function() {
              if (this.className == "toolbar_list_name") this.className += " active";
              else this.className = "toolbar_list_name";
              this.nextSibling.style.left = this.offsetLeft + 'px';
              this.nextSibling.style.top = this.offsetHeight + 'px';
              $(this.nextSibling).slideToggle();
            });
        }
      }
  };
})();
$(window).load(function () {
    fmtabs.list('Shortcuts', '<a href="/f1-">Announcements and updates</a><br /><a href="/f2-">Test2</a><br /><a href="/f3-">Test3</a>');
    fmtabs.add('<a href="/forum">| Forum |</a>');
});
avatar
JAN2XONLINE
Forumember

Male Posts : 943
Reputation : 32
Language : Tagalog, English
Location : Alberta, Canada

http://animeph.4umer.com/

Back to top Go down

Solved Re: Drop down list separator line

Post by JAN2XONLINE on February 12th 2013, 7:52 am

Thanks! ^^
avatar
JAN2XONLINE
Forumember

Male Posts : 943
Reputation : 32
Language : Tagalog, English
Location : Alberta, Canada

http://animeph.4umer.com/

Back to top Go down

Solved Re: Drop down list separator line

Post by SLGray on February 12th 2013, 10:03 am

Is this one solved?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 41867
Reputation : 2877
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Drop down list separator line

Post by JAN2XONLINE on February 12th 2013, 10:16 am

Yes.
avatar
JAN2XONLINE
Forumember

Male Posts : 943
Reputation : 32
Language : Tagalog, English
Location : Alberta, Canada

http://animeph.4umer.com/

Back to top Go down

Solved Re: Drop down list separator line

Post by SLGray on February 12th 2013, 10:17 am

Thanks.
Topic Solved & Locked


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 41867
Reputation : 2877
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum