• Page 1 of 1
  • 1
Ucoz scrip.
nsanyi23
Posts: 4
Reputation: 0

Message # 1 | 3:30 PM
Hello! I don't know why but in my html page code I have a lot of script code. Please tell me how I can reduce the part of script.

Thanks!

Code
<script type="text/javascript">
function buildmenuL(){
var adm=document.getElementById('uzadmp');
var zz={zpos:_uWnd.getTopZ(),setZ:function(z){document.getElementById('uzadpn').style.zIndex=z;}};
_uWnd.zchilds[_uWnd.zchilds.length]=zz;
zz.setZ(zz.zpos);
window._mnh=buildmenuL2(adm);
}
function buildmenuL2(ad){
var adm=ad || document.getElementById('uzadmp');
return new _uMENU('topmenu',{pos:{x:3,y:0},childdy:1},{static:1,shadow:0,hidden:0,horiz:1,parentnode:adm,noabs:1},[
['<div class="admBarLeft"></div><div class="admBarCenter"><div>General</div></div><div class="admBarRight"></div>',
[
['<a href="javascript://" rel="nofollow" onclick="window.open(\'/index/8\',\'upp\',\'scrollbars=1,top=0,left=0,resizable=1,width=680,height=350\');return false;">My profile on the site</a>','a'],
['<a href="http://295002719.unet.com/" target="_blank">uNet profile management</a>','a'],
'sep',
['<a href="/admin/" target="_blank">Login to Control Panel</a>','a'],
'sep',
['<div style="position:absolute;right:0;top:0;width:16px;height:18px;background: url(http://s102.ucoz.net/img/wd/6/sample.gif) no-repeat 0px 7px;"></div>Admin Bar color',function(){new _uWnd('Cab','Admin Bar color',180,150,{align:'left',closeonesc:1,min:0,max:0},{url:'/index/42'});}],
'sep',
['<a href="/index/10">Log out</a>','a'],
['Close Admin Bar',function(){document.getElementById('puzadpn').style.display='none';}]
]],

['<div class="admBarLeft"></div><div class="admBarCenter"><div>Control</div></div><div class="admBarRight"></div>',
[
['<b>Inactive entries</b>',function(){new _uWnd('unaEnt','Inactive entries',350,150,{align:'left',closeonesc:1,min:0,max:0},{url:'/index/85'});}],
'sep',
['<a href="/index/86" target="_blank">Comments management</a>','a'],

'sep',
['File Manager',function(){window.open('/tmpls/?a=fm;n=1','fman','resizable=1,scrollbars=1,top=0,left=0,width=600,height=400');}],
'sep',
['Notifications about updates',function(){new _uWnd('SfU','Notifications about updates',400,200,{align:'left',closeonesc:1,min:0,max:0,maxh:300,resize:0},{url:'/index/67'});}],
'sep',
['IP blocking',function(){new _uWnd('ipBanW','IP blocking',350,150,{align:'left',closeonesc:1,min:0,max:0},{url:'/index/83'});}],
['URL blocking',function(){new _uWnd('WBan','URL blocking',350,150,{align:'left',closeonesc:1,min:0,max:0},{url:'/index/43'});}]
]],
['<div class="admBarLeft"></div><div class="admBarCenter"><div>Addition</div></div><div class="admBarRight"></div>',[['<a target="_blank" href="http://www.best-pariuri-online.com/index/31">Page Editor</a>','a'],'sep',['<a target="_blank" href="http://www.best-pariuri-online.com/news/0-0-0-0-1">Site News</a>','a'],['<a target="_blank" href="http://www.best-pariuri-online.com/blog/0-0-0-0-1">Blog</a>','a'],['<a target="_blank" href="http://www.best-pariuri-online.com/publ/0-0-0-0-1">Publisher</a>','a'],['<a target="_blank" href="http://www.best-pariuri-online.com/load/0-0-0-0-1">File Catalog</a>','a']]],

['<div class="admBarLeft"></div><div class="admBarCenter"><div>Users</div></div><div class="admBarRight"></div>',
[
['<a href="/index/15-1" target="_blank"><b>Site users</b></a>','a'],
'sep',
['Removal of user\'s entries',function(){new _uWnd('Ud','Removal of user\'s entries',300,210,{align:'left',closeonesc:1,min:0,max:0},{url:'/index/33'});}],
'sep',
['<a href="/index/14-0-5" target="_blank">Mass PM dispatch</a>','a'],
'sep',
['View site as ...',
[['Users',function(){achgroup('1');}],['Checked',function(){achgroup('2');}],['Moderators',function(){achgroup('3');}],['<div style="position:absolute;right:0;top:0;width:12px;height:16px;background: url(http://s102.ucoz.net/img/wd/6/ar2.gif) no-repeat 2px 8px;"></div><b>Administrators</b>',null,0],['Friends',function(){achgroup('251');}],['Blocked',function(){achgroup('255');}],['Guests',function(){achgroup('999');}]]
]
]]

,['<div class="admBarLeft"></div><div class="admBarCenter"><div>Multimedia</div></div><div class="admBarRight"></div>',
[
['<b>Graffiti</b>',function(){window.open('/media/?t=draw;h=1','graffity','resizable=1,scrollbars=1,top=0,left=0,width=740,height=540');}],
'sep',
['Upload video (.swf)',function(){window.open('/tmpls/?a=fm;n=1;ffilter=video','fman','resizable=1,scrollbars=1,top=0,left=0,width=600,height=400');}],
['Upload audio (.mp3)',function(){window.open('/tmpls/?a=fm;n=1;ffilter=audio','fman','resizable=1,scrollbars=1,top=0,left=0,width=600,height=400');}],
'sep',
['Insert video (youTube ...)',function(){new _uWnd('video','Inserting video',550,210,{align:'left',closeonesc:1,min:0,max:0},{url:'/tmpls/?a=mm;t=video'});}],
['Insert audio (mp3)',function(){new _uWnd('audio','Inserting audio',550,210,{align:'left',closeonesc:1,min:0,max:0},{url:'/tmpls/?a=mm;t=audio'});}]
]]

,['<div class="admBarLeft"></div><div class="admBarCenter"><div><b>Builder</b></div></div><div class="admBarRight"></div>',
[
['Enable Builder',function(){descustf(1);}],
'sep',
['List of page variables',
[['<table border="0" cellpadding="3" cellspacing="1"><tr><td nowrap="nowrap">$URI_ID$</td><td><input type="text" style="width:100px;font-weight:normal;" onclick="this.select()" value="page1"></td></tr><tr><td nowrap="nowrap">$PAGE_ID$</td><td><input type="text" style="width:100px;font-weight:normal;" onclick="this.select()" value="sitePage1"></td></tr><tr><td nowrap="nowrap">$MODULE_ID$</td><td><input type="text" style="width:100px;font-weight:normal;" onclick="this.select()" value="index"></td></tr></table>',null,0]]
]
]]

,['<div class="admBarLeft"></div><div class="admBarCenter"><div title="Help">?</div></div><div class="admBarRight"></div>',
[
['<a href="http://forum.ucoz.com/" target="_blank">uCoz Support Forum</a>','a'],
['<a href="http://faq.ucoz.com/" target="_blank">FAQ</a>','a']

]]

]);

}
jQuery(function(){buildmenuL();if (typeof(window.uToolBar) != "undefined") { window.uToolBar.BuildMenu(); }_uWnd.alert('<div style=\"cursor:pointer;\" onclick=\"_uWnd.close(\'tip\');new _uWnd(\'Tips\',\'Tips\',370,150,{autosize:0,closeonesc:1,align:\'justify\'},{url:\'/index/61-26-9\'});return false;\">By means of the \"Backup\" feature in the Control Panel you can create a full or partial backup copy o...</div>','Tip',{name:'tip',w:250,h:100,tm:11000,align:'justify',icon:'http://s102.ucoz.net/img/icon/tip.png'});});
function achgroup(v){document.cookie = "8pariurionlineuz47="+escape(v)+";path=/;";window.location.reload();}
function descustf(v){document.cookie = "8pariurionlineuz48="+escape(v)+";path=/;";window.location.reload();}
document.body.insertBefore(document.getElementById("puzadpn"),document.body.firstChild);

</script>
Dartz
Posts: 1931

Message # 2 | 3:53 PM
This is uCoz support forum and not "Fix Newbies Codes".
[... With uCoz since December 2 2007 ...]
nsanyi23
Posts: 4
Reputation: 0

Message # 3 | 4:10 PM
Hello again!

I have a site with ucoz, I have a problem so I think the support forum is the right place where I can put my questions.

I think this script include a lot of non esential informations. I see this part of html code at another ucoz sites and I think in my site it is too long.

Dartz
Posts: 1931

Message # 4 | 10:38 PM
That code isn't in uCoz source pages, so no, it's not uCoz related question.
And support forum isn't meant to ask how to short-down the code. No one
here will code for one user.

[... With uCoz since December 2 2007 ...]
Sunny
Posts: 9296
Reputation: 456

Message # 5 | 10:39 AM
nsanyi23, it looks like the code of uToolBar. If are using it then no wonder you have this code.
I'm not active on the forum anymore. Please contact other forum staff.
Sunny
Posts: 9296
Reputation: 456

Message # 6 | 11:20 AM
nsanyi23, use [code] tags to paste codes!

Better provide your website url, it does not look as the default template. And if you are using a custom template, then Dartz is right

Quote
That code isn't in uCoz source pages, so no, it's not uCoz related question.
And support forum isn't meant to ask how to short-down the code. No one
here will code for one user.

I'm not active on the forum anymore. Please contact other forum staff.
nsanyi23
Posts: 4
Reputation: 0

Message # 7 | 11:38 AM
Ohhh what a good support!

Thanks for all!

  • Page 1 of 1
  • 1
Search: