[HTML] Menù Laterale

« Older   Newer »
  Share  
yubi96
view post Posted on 13/4/2009, 09:39




Andate in:
amministrazione>>>>gestione codice html
e inserite questo codice in fondo al forum:

CODICE
<script type="text/javascript"><!--
moving=setTimeout('null',1);
function move(b){if(b<0&&parseInt(Menu.left)>-Width||b>0&&parseInt(Menu.left)<0){clearTimeout(moving); moving=setTimeout('move('+b+')',slideSpeed); theleft+=b; Menu.left=theleft} else{clearTimeout(moving); moving=setTimeout('null',1)}}
function startMenu(menu,barText){document.write('<div id=ssm style="width:'+(Width+30)+'px; left:-'+(Width)+'px; z-index:9; top:'+Yoffset+'px; '+(isStatic?'':'top:expression('+Yoffset+'+(y=document.body.scrollTop)+\'px\'); position:fixed!important; ')+'position:absolute" onmouseover=move(10) onmouseout="clearTimeout(moving); moving=setTimeout(\'move(-10)\',waitTime)"><table class=mainbg width=100% cellpadding=4 cellspacing=1><tr><td class=title align=center><b>'+menu+'<\/b><td class=ww rowspan=100 style="width:20px;padding:12px 4px 12px 4px;font-size:10pt;font-weight:bold" align=center valign=middle>'+barText); Menu=document.getElementById("ssm").style; theleft=-Width}
function addItem(text,link){document.write('<tr><td class=aa><span class=web><a HREF='+link+'>'+text+'<\/a><\/span>')}
function endMenu(){document.write('<tr><td style=font-size:0>&nbsp;<\/table><\/div>')}
if(document.getElementById){

isStatic=false;
Yoffset=20;
Width=130;
slideSpeed=20;
waitTime=500;

startMenu("Menù","M<br>e<br>n<br>ù<br><br>l<br>a<br>t<br>e<br>r<br>a<br>l<br>e");

addItem("Forumfree","http://www.forumfree.net");
addItem("Forumcommunity","http://www.forumcommunity.net");

endMenu()}
//--></script>

così vi appare un menù chiamato "Menù" che porta a Forumfree e Forumcommunity. Se vuoi chiamarlo in un altro modo, la parte da modificare è questa, è la parte finale:

CODICE
startMenu("Menù","M<br>e<br>n<br>ù<br><br>l<br>a<br>t<br>e<br>r<br>a<br>l<br>e");

addItem("Forumfree","http://www.forumfree.net");
addItem("Forumcommunity","http://www.forumcommunity.net");

endMenu()}
//--></script>

nella prima parentesti devi scrivere prima per intero e poi lettera per lettera separate da:

CODICE
<br>
 
Top
Alberto98
view post Posted on 15/8/2010, 22:16




scusa ma dove lo devo mettere questo codice?
 
Top
§crissysumm§
view post Posted on 24/8/2011, 13:15




Non ho capito molto, ma funziona anche per blogfree???
 
Top
2 replies since 13/4/2009, 09:39   1469 views
  Share