Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by stas on Oct 14, 2008 02:57
open dhtmlx forum
Top-Right Corner Caption in dhtmlxMenu

Can i add my text in top-right corner in dhtmlxMenu 2.0. ?
Thanks, and sorry for my poor english
Answer posted by Support on Oct 14, 2008 03:10
You can do it after initing the menu like this:

    <style>
        .myClass {
            position: relative;
            float: right;
        }
    </style>

<div id="menuObj"></div>
...
var menu = new dhtmlXMenuObject("menuObj");
...
var p = document.getElementById("menuObj");
var d = document.createElement("DIV");
d.innerHTML = "myText";
d.className = "myClass";
p.appendChild(d);