- var sub = document.createElement ('option');
- sub.appendChild (document.createTextNode ('+ ' + lang));
+ var li = document.createElement ('li');
+ li.style.position = 'relative';
+ li.style['list-style']= 'none';
+ li.style.margin = '0';
+ li.style.padding = '0';
+ li.onmouseover = function ()
+ {
+ this.style.backgroundColor = 'yellow';
+ var children = this.getElementsByTagName ('ul');
+ for (var i = children.length - 1; i >= 0; i--)
+ children[i].display = 'block';
+ };
+ li.onmouseout = function () { this.style.backgroundColor = 'white'; };
+ li.appendChild (document.createTextNode (lang));
+ var sub = document.createElement ('ul');
+ sub.style.position = 'absolute';
+ sub.style.top = '0px';
+ sub.style.display = 'none';
+ li.appendChild (sub);