Parašė bruzgis· 2008 Kov. 6 16:03:08
#3
:) nu jei nezinai geriau nerasyk ;)
enuFriend.userName=null;
SMenuFriend.photoId=null;
SMenuFriend.photoDescriptor=null;
SMenuFriend.generate=function(parent)
{
if (!parent)
return;
if (SMenuFriend.div)
return;
var C=Community;
SMenuFriend.div=C.CE("div",parent,{id:"shortcutMenuFriend"},{});
SMenuFriend.div.onmouseover=function()
{
SMenuFriend.overDiv=1;
}
SMenuFriend.div.onmouseout=function()
{
SMenuFriend.overDiv=0;
setTimeout('closeSMenuFriend()',500);
}
SMenuFriend.userName=C.CE("span",SMenuFriend.div,{});
var body=C.CE("ul",SMenuFriend.div,{},{});
function gen_menu(body,icon,label,clickHandler)
{
var a=C.CE("a",C.CE("li",body,{className:"shortcutMenuItem-" + icon}),{href:"javascript:void(0);",innerHTML:C.i18n(label)});
a.onclick=clickHandler;
}
gen_menu(body,"view","Draugo profilis",function()
{ window.location="/navigate.do";
return false;
});
gen_menu(body,"message","Siusti zinute",function()
{
window.location="/navigate.do"+SMenuFriend.queryPrefix+"st.id=community.friendphotos.page&st.friend="+SMenuFriend.userId;
return false;
});
gen_menu(body,"nuotrauka","Ziureti nuotraukas",function()
{
cia tau panasu i dhtml meniu? :/