I want to make a menu like the star Windows Menu, and when I click on
any option I want to create dynamically a window.
The idea that I supose is create a DIV inside a big window content
region and then make it draggable.
But I no have idea to create objets dynamycally using the YUI.
Please help me.
var oParentDiv = YAHOO.util.Dom.get("parentdiv");
oParentDiv.innerHTML = '<div id="newchilddiv">Content for new DIV goes here!</div>';
...or I suppose that, after you get the parentdiv, instead of re-writing the innerHTML, you could instead add a child node using Yahoo! UI's DOM utility. I'm not sure which is the "proper" solution, but either should work.