Acılır Navbar [vB 3.0.x]

Konu sahibi son olarak 2618 gün önce görüldü
Acılır Navbar [vB 3.0.x]
Bu eklenti Forumunuzun Solunda Hareketli Navbar (Ek menü) yaratır..

Admin paneli >> style düzenleyicisi >> edit templates >> header

buraya yazarsan bu menu her yerde aktif olur en alta ekle:

PHP Kodu:
<body>
<script language=javascript>
NS6 = (document.getElementById&&!document.all)
IE = (document.all)
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")
moving=setTimeout('****',1);
lastY = 0;
function moveOut() {
if ((NS6 && parseInt(ssm.left)<0)||(IE && ssm.style.pixelLeft<0)||(NS && document.ssm.left<0))
{
clearTimeout(moving);moving = setTimeout('moveOut()', slideSpeed)
if (NS6){
ssm.left = parseInt(ssm.left)+10+"px";
}
if (IE){
ssm.style.pixelLeft += 10;
}
if (NS){
document.ssm.left += 10;
}
} else {
clearTimeout(moving);
moving=setTimeout('****',1);
}
}
function moveBack(){
clearTimeout(moving);
moving = setTimeout('moveBack1()', waitTime);
}
function moveBack1() {
if ((NS6 && parseInt(ssm.left)>(-menuWidth))||(IE && ssm.style.pixelLeft>(-menuWidth))||(NS && document.ssm.left>(-menuWidth)))
{
clearTimeout(moving);moving = setTimeout('moveBack1()', slideSpeed);
if (NS6){
ssm.left = parseInt(ssm.left)-10+"px";
}
if (IE){
ssm.style.pixelLeft -= 10;
}
if (NS){
document.ssm.left -= 10;
}
} else {
clearTimeout(moving);moving=setTimeout('****',1)
}
}
function makeStatic() {
if (NS6) {
winY = window.pageYOffset;
}
if (IE) {
winY = document.body.scrollTop;var NM=document.all('ssm').style
}
if (NS){
winY = window.pageYOffset;var NM=document.ssm
}
if (NS6||IE||NS){
if (winY!=lastY&&winY>YOffset-staticYOffset){
smooth = .2 * (winY - lastY - YOffset + staticYOffset);
} else if(YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
smooth = .2 * (winY - lastY);
} else {
smooth=0
}
if(smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
if (NS6) ssm.top=parseInt(ssm.top)+smooth+"px"
if (IE) NM.pixelTop+=smooth;
if (NS) NM.top+=smooth;
lastY = lastY+smooth;
setTimeout('makeStatic()', 1)
}
}
function initSlide() {
if (NS6){
ssm=document.getElementById("ssm").style
ssm.visibility="visible";
ssm.left = -menuWidth + "px"; ;
} else if (IE) {
ssm.style.visibility = "visible"
ssm.style.pixelLeft = -menuWidth;
} else if (NS) {
document.ssm.left = -menuWidth;
document.ssm.visibility = "show"
}
if (menuIsStatic=="no") makeStatic();
}
function startMenu(menuHeader, barText) {
if (IE||NS6) {
***************('<div id="ssm" style="visibility:hidden;position : absolute ;left : 0px ;top : '+YOffset+' ;Z-Index : 20;width:1px" onmouseover="moveOut()" onmouseout="moveBack()">')
}
if (NS) {
***************('<span class="tablea" layer visibility="hide" top="'+YOffset+'" name="ssm" left="0" onmouseover="moveOut()" onmouseout="moveBack()">')
}
if (NS6){
***************('<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+2)+'" span class="tablea"><tr><td>')
}
tempBar=""
for (i=0;i<barText.length;i++) {
tempBar+=barText.substring(i, i+1)+"<br>"
}
***************('<table cellpadding="0" cellspacing="2" width="'+(menuWidth+barWidth+2)+'" border="0" class="tableinborder"><tr><td class="tabletitle" width="'+(menuWidth-1)+'" height="6" align="center" valign="center"> <span class="smallfont"><b>'+menuHeader+'</b></span></td><td align="center" rowspan="100" width="'+barWidth+'" span class="tableb" valign="center"><p align="center"><span class="smallfont"><b>'+tempBar+'</b></span></p></td></tr>')
}
function addItem(text, link, target) {
if ( !target ) {
target = '_self';
} else {
target = '_blank';
}
***************('<tr>');
***************('<td span class="tablea" width="'+(menuWidth-1)+'">');
***************('<ilayer><layer width="100%" align="center">');
***************('<div align="center">');
***************('<a href="'+link+'" class="ssmItems" target='+target+'>');
***************('<span class="smallfont"> '+text+'</span></div></a>');
***************('</layer></ilayer></td></tr>');
}
function addHdr(text) {
***************('<tr><td span class="tabletitle" height="6" align="center" valign="center" width="'+(menuWidth-1)+'"> ');
***************('<span class="smallfont"><b>'+text+'</b></span></td></tr>')
}
function endMenu() {
***************('</table>')
if (NS6){***************('</td></tr></table>')}
if (IE||NS6) {***************('</div>')}
if (NS) {***************('</layer>')}
if (NS6||IE||NS) setTimeout('initSlide();', 100)
}
//-->

YOffset=20; // no quotes!!
staticYOffset=20; // no quotes!!
slideSpeed=20 // no quotes!!
barWidth=20; // no quotes!!
waitTime=1000; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuWidth=100; // Must be a multiple of 10! no quotes!!
menuIsStatic="no";
linkTarget="_self";

startMenu("-- Menüler --",".:: By LordHackeR ::.")
addItem("AnaSayfa", "index.php");
addItem("Portal", "hmportal.php");
addItem("Profil", "usercp.php");
addItem("Mesaj-Box", "pms.php");
addItem("Takvim", "calendar.php");
addItem("Üyeler", "memberslist.php");
addItem("Kadro", "team.php");
addItem("Arama", "search.php");
addItem("Yardim", "misc.php?action=faq");
addHdr("-- Extralar -");
addItem("Download", "info_db.php");
addItem("DEMO ROOM", "http://www.siteniz.comhmportal.php");
addItem("CHAT", "http://chat.siteniz.com/sample.php");
endMenu()
</script>
 
Geri