-
Ciao gente!!!
Siccome molti mi hanno suggerito di fare un menu qualcuno potremme prepararmi qualche riga di codice con i link gia presenti per un menų orrizzontale???THKS
http://skateboard.altervista.or/
6) Cercare, se possibile, di usare solo frasi esplicite come intestazioni dei messaggi.
Facendo cosė si puō individuare facilmente il contenuto di un messaggio, e sopratutto un'eventuale risposta.
Messaggi con un titolo come "aiuto" "importante" o "vitale importanza" e simili, non solo confondono gli utenti che potrebbero aiutarvi, ma potrebbero confondere voi stessi in un prossimo futuro quando cercate un thread.
by twisterdark
-
guarda che se cerchi su qualsiasi motore di ricerca di script pronti da modificare per menu ne esistono milioni ;)
-
-
-
-
puoi usare questo
PROVALO
[code:1:98da932487]<script>
<!--
/*
Copyright Š MaXimuS 2002, All Rights Reserved.
Site: http://maximus.ravecore.com
E-mail: maximusforever@hotmail.com
Script: Static Slide Menu
Version: 6.6 Build 34
*/
NS6=(document.getElementById&&!documen t.all)
IE=(document.all);IE4=(document.all&am p;&!document.getElementById)
NS=(navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4&qu ot;)
OP=(navigator.userAgent.indexOf('Opera' 1;>-1)
tempBar='';barBuilt=0;lastY=0;lastX=0;sI=new Array();moving=setTimeout('null',1) ;;
function moveOut() {
if(parseInt(ssm.left)<0&&mP os||parseInt(ssm.left)>0&&!mPos ){
clearTimeout(moving);
moving=setTimeout('moveOut()', slideXSpeed);
slideMenu((!mPos)?"out": "out");
}
else {
clearTimeout(moving);
moving=setTimeout('null',1);
}
}
function moveBack() {
clearTimeout(moving);
moving=setTimeout('moveBack1()',waitTi me);
}
function moveBack1() {
if(parseInt(ssm.left)>-(menuWidth+1)&&mPos||parseInt( ssm.left)<menuWidth+1&&!mPos) {
clearTimeout(moving);
moving=setTimeout('moveBack1()',slideX Speed);
slideMenu((!mPos)?"in":& quot;in");
}
else{
clearTimeout(moving);
moving=setTimeout('null',1);
}
}
function slideMenu(way){
fHow=(NS6)?0.4:0.2;
if(way=="out")flow=fHow*-(parseInt(ssm.left));
if(way=="in"&&!mPos)flow =fHow* (menuWidth+1-parseInt(ssm.left));
else if(way=="in")flow=fHow*-(menuWidth+1+parseInt(ssm.left)) ;;
if(flow>0)flow=Math.ceil(flow) ;
else flow=Math.floor(flow);
if(IE||NS6){
lastX+=flow;
bssm.clip="rect(0 "+((!mPos)?(barWidth+menuWidt h+3):(barWidth+2+lastX))+" ; "+(((IE4)?document.body.clien tHeight:0)+tssm.offsetHeight)+" "+((!mPos)?(lastX+1): 0)+")";
}
ssm.left=parseInt(ssm.left)+flow;
if(NS){
if(!mPos){
bssm.clip.left+=flow;
bssm2.clip.left+=flow;
}
else{
bssm.clip.right+=flow;
bssm2.clip.right+=flow;
}
if(bssm.left+bssm.clip.right>document.width )document.width+=flow;
}
}
function makeStatic() {
winY=(IE)?document.body.scrollTop:wind ow.pageYOffset;
sHow=(NS6)?0.4:0.2;
if(winY!=lastY&&winY>YOffset-staticYOffset)smooth=sHow*(winY-lastY-YOffset+staticYOffset);
else if(YOffset-staticYOffset+lastY>YOffset-staticYOffset&&winY<=YOffset-staticYOffset)smooth=sHow*(winY-lastY-(YOffset-(YOffset-winY)));
else smooth=0;
if(smooth>0)smooth=Math.ceil(smooth );
else smooth=Math.floor(smooth);
bssm.top=parseInt(bssm.top)+smooth;
lastY=lastY+smooth;
setTimeout('makeStatic()',slideYSpeed& #41;;
}
function menuClick(id) {
obj=(document.all)?document.all(id) ;:document.getElementById(id);
with(obj){
if(event.srcElement.id!=id){
if(target=="_top")top.location=h ref;
else if(target=="_parent")parent.loca tion=href;
else if(target=="_blank")window.open& #40;href);
else if(target>""&&top.frames& #91;target])top.frames[target].loc ation=href;
else if(target>"")eval('window .open("'+href+'","'+target+'&qu ot;)');
else location=href;
}
}
}
function buildBar() {
if(!barType)tempBar='<IMG SRC="'+barText+'" BORDER="0">';
else{
for(b=0;b<barText.length;b++)tempBar+=b arText.charAt(b)+"<BR>"
}
ssmHTML+='<td align="center" rowspan="100" width="'+barWidth+'" bgcolor="'+barBGColor+'" valign="'+barVAlign+'" align="'+barAlign+'" class="ssmBar" NOWRAP>'+tempBar+'</td>';
}
function initSlide() {
if (!mPos)lastX=menuWidth
if ((NS6||IE)&&!OP||(operaFix !=2&&OP)){
ssm=(NS6)?document.getElementById(&quo t;thessm").style:document.all(&qu ot;thessm").style;
tssm=(NS6)?document.getElementById(&qu ot;thessm"):document.all("th essm");
bssm=(NS6)?document.getElementById(&qu ot;basessm").style:document.all(& quot;basessm").style;
bssm.clip="rect(0 "+(barWidth+2+((!mPos)?menuWi dth+1:0))+" "+(((IE4)?document.body.clien tHeight:0)+tssm.offsetHeight)+" "+((!mPos)?(menuWidth+1)& #58;0)+")";
if (OP&&operaFix==1)XOff=(!mPos&# 41;?document.body.clientWidth-barWidth-3:0;
bssm.left=(!mPos)?XOff-menuWidth:XOff;
if(OP)ssm.left=ssm.left;
bssm.visibility="visible";
if(NS6&&!OP){
bssm.top=YOffset;
if(menuOpacity!=100)ssm.MozOpacity=menuOpa city/100;
slideIsGo=window.innerHeight>tssm.offsetHeight+ staticYOffset;
}
else{
if(menuOpacity!=100)ssm.filter="alpha (opacity="+menuOpacity+")&quo t;;
slideIsGo=((OP)?window.innerHeight: ;document.body.clientHeight)>parseInt(t ssm.offsetHeight)+staticYOffset;
}
if(autoHideXOverflow&&((IE?doc ument.body.clientWidth:window.innerWidth-16)<parseInt(bssm.left)+parseInt 0;ssm.left)+menuWidth+barWidth+3)) 3;
document.body.style.overflowX="hidden";
document.body.style.overflowY="scroll";
}
}
else if(NS){
bssm=document.layers["basessm1"] ;
bssm2=bssm.document.layers["basessm2" ;];
ssm=bssm2.document.layers["thessm"&# 93;;
bssm.clip.left=(!mPos)?menuWidth+1:0;
bssm.clip.right=(!mPos)?(menuWidth+bar Width+3):barWidth+2;
bssm.left=(!mPos)?XOff-menuWidth:XOff;
ssm.visibility="show";
slideIsGo=window.innerHeight>ssm.clip.bottom+st aticYOffset;
}
if(slideY&&(slideOnYOverflow||( ;!slideOnYOverflow&&slideIsGo)) 1;makeStatic();
if(!slideX)moveOut();
}
function getXOff() {
return (((!XAlign)?((IE||OP)? document.body.clientWidth-barWidth-3:window.innerWidth-barWidth-3-17):(XAlign==1)?Math.floor( 0;(IE||OP)?document.body.clientWidth/2-barWidth/2-1.5:window.innerWidth/2-barWidth/2-1.5)):0)+XOffset);
}
function buildMenu() {
mPos=menuPosition;
ssmHTML="";
XOff=getXOff();
if(IE||NS6)ssmHTML+='<DIV ID="basessm" style="visibility:hidden;Position : Absolute ;Top : '+YOffset+' ;Z-Index : 20;width:'+(barWidth+2)+';">&l t;DIV ID="thessm" style="Position : Absolute ;Left : '+((!mPos)?menuWidth+1:-menuWidth-1)+' ;Top : 0px ;Z-Index : 30;'+((IE)?"width:1px"&# 58;"")+'" '+((slideX)?'onmouseover="moveOut ()" onmouseout="moveBack()")' 8;'')+'>';
if(NS)ssmHTML+='<LAYER name="basessm1" top="'+YOffset+'" visibility="show" onload="initSlide()"><ILAY ER name="basessm2"><LAYER visibility="hide" name="thessm" bgcolor="'+menuBGColor+'" left="'+((!mPos)?menuWidth+1:-menuWidth-1)+'" '+((slideX)?'onmouseover="moveOut ()" onmouseout="moveBack()")' 8;'')+'>';
if(NS6)ssmHTML+='<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+3)+'&quo t;><TR><TD>';
ssmHTML+='<table border="0" cellpadding="0" cellspacing="1" width="'+(menuWidth+barWidth+3)+'&quo t; bgcolor="'+((!NS)?menuBGColor: ;"")+'">';
for(i=0;i<sI.length;i++){
ssmHTML+='<TR>';
if(barBuilt==0&&!mPos){
buildBar();
barBuilt=1
}
if(sI[i][3]>1)ssmHTML+= '<TD BGCOLOR="'+hdrBGColor+'" ALIGN="'+hdrAlign+'" WIDTH="'+menuWidth+'"'+((NS6) ;?' style="padding:'+hdrPadding+'px"' 8;'><TABLE CELLPADDING="'+hdrPadding+'" CELLSPACING="0" BORDER="0"><TR><TD')+' CLASS="ssmHdr" VALIGN="'+hdrVAlign+'">'+((sI [i][3]==3)?'<a HREF="'+((sI[i][1].in dexOf("://")==-1&&sI[i][1].indexOf(&q uot;../")==-1)?targetDomain:'')+sI[i][ 1]+'" target="'+sI[i][2]+'" class="ssmHdr">':'')+sI[i ][0]+((sI[i][3] ;==3)?'</a>':'')+((NS6)?'':'&l t;/TD></TR></TABLE>')+'</TD>';
else{
if(!sI[i][2])sI[i] [2]=targetFrame;
ssmHTML+='<TD WIDTH="'+menuWidth+'"'+(NS&& !sI[i][3]?'':'BGCOLOR="'+ linkBGColor+'"')+' '+((NS6)?'CLASS="ssmItem" style="padding:'+linkPadding+'px;" ALIGN="'+linkAlign+'"':'')+' '+((sI[i][3])?'>'&# 58;'onmouseover="style.backgroundColor=\''+li nkOverBGColor+'\'" onmouseout="style.backgroundColor=\''+linkBGC olor+'\'" onclick="menuClick(\'item_'+i+'\');&q uot;'+(IE?' style="cursor:hand;"':'')+'& gt;<ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'& quot; onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'" bgcolor="'+linkBGColor+'">')+( ;(NS6)?'':'<DIV ALIGN="'+linkAlign+'" CLASS="ssmItem"><TABLE CELLPADDING="'+linkPadding+'" CELLSPACING="0" BORDER="0"><TR><TD VALIGN="'+linkVAlign+'" CLASS="ssmItem">')+((sI&# 91;i][3])?'':'<A HREF="'+((sI[i][1].in dexOf("://")==-1&&sI[i][1].indexOf(&q uot;../")==-1)?targetDomain:'')+sI[i][ 1]+'" target="'+sI[i][2]+'" CLASS="ssmItem" id="item_'+i+'">')+sI[i]& #91;0]+''+((sI[i][3]&# 41;?'':'</A>')+((NS6)?'':'</TD></TR></TABLE></DIV>')+((sI[i][3]&# 41;?'':'</LAYER></ILAYER>')+'</TD>';
}
if(barBuilt==0&&mPos){
buildBar();
barBuilt=1;
}
ssmHTML+='</TR>';
}
ssmHTML+='</table>';
if(NS6)ssmHTML+='</TD></TR></TABLE>';
if(IE||NS6){
ssmHTML+='</DIV></DIV>';
setTimeout('initSlide();',1);
}
if(NS)ssmHTML+='</LAYER></ILAYER></LAYER>';
document.write(ssmHTML);
}
function addHdr(text){sI[sI.length]=&# 91;text, '', '', 2]}
function addLink(text, link, target){if(!link)link="javas cript://";sI[sI.length]=[text, link, target, 3]}
function addItem(text, link, target){if(!link)link="javas cript://";sI[sI.length]=[text, link, target, 0]}
function addText(text){sI[sI.length]=& #91;text, '', '', 1]}
//window.onresize=function(){setTimeout ('alert(getOff());XOff=getXOff ();bssm.left=(!mPos)?XOff-menuWidth:XOff;');}
//-->
</script>
<script>
<!--
YOffset=40;
XAlign=2;
XOffset=0;
staticYOffset=20;
waitTime=500;
slideX=1;
slideXSpeed=15;
slideY=1;
slideYSpeed=15;
slideOnYOverflow=1;
autoHideXOverflow=1;
targetFrame="";
targetDomain="";
operaFix=0;
menuOpacity=100;
menuPosition=1;
menuBGColor="black";
menuWidth=125;
hdrBGColor="#2C323B";
hdrPadding=3;
hdrAlign="left";
hdrVAlign="center";
linkBGColor="#545C65";
linkOverBGColor="#2C323B";
linkAlign="left";
linkVAlign="center";
linkPadding=3;
barWidth=15;
barBGColor="#2C323B";
barAlign="left";
barVAlign="center";
barType=1;
barText="NAVIGATION";
//The Menu's Items
addHdr("Forum Navi.");
addItem("Home", "{U_INDEX}", "");
addItem("FAQ", "{U_FAQ}", "");
addItem("Search", "{U_SEARCH}", "");
addItem("Memberslist", "{U_MEMBERLIST}", "");
addItem("User Groups", "{U_GROUP_CP}", "");
<!-- BEGIN switch_user_logged_out -->
addItem("Register", "{U_REGISTER}", "");
<!-- END switch_user_logged_out -->
addItem("Profile", "{U_PROFILE}", "");
addItem("Priv.Msgs.", "{U_PRIVATEMSGS}", "");
addItem("{L_LOGIN_LOGOUT}" , "{U_LOGIN_LOGOUT}", "");
buildMenu();
//-->
</script>[/code:1:98da932487]
-
ho fatto in un altro modo, ma grazie lo stesso