Menù a tendina

Versione Completa   Stampa   Cerca   Utenti   Iscriviti     Condividi : FacebookTwitter
ELIPIOVEX
00venerdì 3 agosto 2007 22:06
con la nuova versione è diventato fisso
Al momento l'abbiamo tolto perché non riuscivamo a ripristinarlo come era prima. Ho girato un po' tra i messaggi ma non ho trovato niente in argomento.
Sapete dirmi come fare a rimetterlo com'era prima (per capirsi è un menù a scomparsa che riappare quando ci passi sopra col mouse)
Grazie mille per la collaborazione.
admin
00sabato 4 agosto 2007 02:11
Quel tipo di menu a tendina contiene degli errori javascript che su Firefox non permettono la scomparsa. Non accadeva su ffz2 poichè lo standard html utilizzato era diverso. Almeno se ho capito di quale tipo di menu parli.

Se lo reinserite o ci comunicate il codice che stavate utilizzando possiamo verificare e correggerlo.
(Rosy)
00sabato 4 agosto 2007 15:14
errata corrige
Scusate ma era questo il codice che usavamo.

<!-- Prelevato su www.web-link.it -->
<script language="JavaScript1.2">
/*
Copyright © MaXimuS 2000-2001, All Rights Reserved.
Site: www.absolutegb.com/maximus
E-mail: maximus@nsimail.com
Version: 6.1 (NS6 Compatibility)
*/

// Default settings. Don't change them.

YOffset=40; // no quotes!!
staticYOffset=40; // no quotes!!
slideSpeed=20 // no quotes!!
waitTime=1000; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
hdrFontFamily="Verdana";
hdrFontSize="3";
hdrFontColor="#000080";
hdrBGColor="#AFCCDE";
hdrAlign="right";
hdrVAlign="center";
hdrHeight="40";
linkFontFamily="Verdana";
linkFontSize="2";
linkBGColor="#FFF7E5";
linkOverBGColor="#FFF7E5";
linkTarget="_top";
linkAlign="left";
menuBGColor="#990000";
menuIsStatic="yes";
menuWidth=110; // Must be a multiple of 10! no quotes!!
barBGColor="#AFCCDE";
barFontFamily="Verdana";
barFontSize="2";
barFontColor="#000080";
barVAlign="top";
barWidth=20; // no quotes!!

NS6 = (document.getElementById&&!document.all)
IE = (document.all)
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")

moving=setTimeout('',1)
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) {theleft+=10;ssm.left = theleft;}
if (IE) {ssm.style.pixelLeft += 10;}
if (NS) {document.ssm.left += 10;document.ssm.clip.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) {theleft-=10;ssm.left = theleft;}
if (IE) {ssm.style.pixelLeft -= 10;}
if (NS) {document.ssm.left -= 10;document.ssm.clip.left+=10}}
else {clearTimeout(moving);moving=setTimeout('',1)}};

lastY = 0;
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 = .3 * (winY - lastY - YOffset + staticYOffset);}
else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
smooth = .3 * (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;}
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;}
else if (IE) {
document.all("ssm").style.visibility = "visible"
document.all("ssm").style.pixelLeft = -menuWidth;}
else if (NS) {
document.layers["ssm"].clip.left = menuWidth;
document.layers["ssm"].left = -menuWidth;
document.layers["ssm"].visibility = "show"}
if (menuIsStatic=="yes") makeStatic();}

function reloadPage() {if(NS) reload()}

function startMenu(menuHeader, barText) {
if (IE||NS6) {document.write('<DIV ID="ssm" style="visibility:hidden;Position : Absolute ;Left : 0 ;Top : '+YOffset+' ;Z-Index : 20;width:1px" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (NS) {document.write('<LAYER visibility="hide" top="'+YOffset+'" name="ssm" bgcolor="'+menuBGColor+'" left="0" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (NS6){document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'"><TR><TD>')}
tempBar=""
for (i=0;i<barText.length;i++) {
tempBar+=barText.substring(i, i+1)+"<BR>"}
document.write('<table border="1" cellpadding="0" cellspacing="1" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'"><tr><td bgcolor="'+hdrBGColor+'" WIDTH="'+(menuWidth-1)+'" HEIGHT="'+hdrHeight+'" ALIGN="'+hdrAlign+'" VALIGN="'+hdrVAlign+'"> <font face="'+hdrFontFamily+'" Size="'+hdrFontSize+'" COLOR="'+hdrFontColor+'"><b>'+menuHeader+'</b></font></td><td align="center" rowspan="100" width="'+barWidth+'" bgcolor="'+barBGColor+'" valign="'+barVAlign+'"><p align="center"><font face="'+barFontFamily+'" Size="'+barFontSize+'" COLOR="'+barFontColor+'"><B>'+tempBar+'</B></font></p></TD></tr>')
theleft=-menuWidth}

function addItem(text, link, target) {
if (!target) {target=linkTarget}
document.write('<TR><TD BGCOLOR="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="'+(menuWidth-1)+'"><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'"><DIV ALIGN="'+linkAlign+'"><FONT face="'+linkFontFamily+'" Size="'+linkFontSize+'"> <A HREF="'+link+'" target="'+target+'" CLASS="ssmItems">'+text+'</DIV></LAYER></ILAYER></TD></TR>')}

function addHdr(text) {
document.write('<tr><td bgcolor="'+hdrBGColor+'" HEIGHT="'+hdrHeight+'" ALIGN="'+hdrAlign+'" VALIGN="'+hdrVAlign+'" WIDTH="'+(menuWidth-1)+'"> <font face="'+hdrFontFamily+'" Size="'+hdrFontSize+'" COLOR="'+hdrFontColor+'"><b>'+text+'</b></font></td></tr>')}

function endMenu() {
document.write('<tr><td bgcolor="'+hdrBGColor+'"><font size="0" face="Arial"> </font></td></TR></table>')
if (NS6){document.write('</TD></TR></TABLE>')}
if (IE||NS6) {document.write('</DIV>')}
if (NS) {document.write('</LAYER>')}
if (NS6||IE||NS) setTimeout('initSlide();', 500)}

window.onresize=reloadPage

/*
Configure menu styles below
NOTE: To edit the link colors, go to the STYLE tags and edit the ssmItems colors
*/
YOffset=20; // no quotes!!
staticYOffset=20; // no quotes!!
slideSpeed=20 // no quotes!!
waitTime=500; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuBGColor="#006600";
menuIsStatic="yes";
menuWidth=100; // Must be a multiple of 10! no quotes!!
hdrFontFamily="Verdana";
hdrFontSize="2";
hdrFontColor="#fbfb00";
hdrBGColor="#0000dd";
hdrAlign="left";
hdrVAlign="center";
hdrHeight="20";
linkFontFamily="tahoma";
linkFontSize="1";
linkBGColor="black";
linkOverBGColor="#66ff66";
linkTarget="_top";
linkAlign="Left";
barBGColor="#0000dd";
barFontFamily="Verdana";
barFontSize="2";
barFontColor="#ffff00";
barVAlign="center";
barWidth=20; // no quotes!!

startMenu("Menu", "Parole in libertà")
addItem("Home", "http://freeforumzone.leonardo.it/viewforum.aspx?f=79239", "");
addItem("Presentazioni", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=2", "");
addItem("Di Giorno in Giorno", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=9", "");
addItem("Parole in libertà", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=1", "");
addItem("Le nostre storie", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=4", "");
addItem("Le nostre poesie ", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=23", "");
addItem("Le poesie del cuore", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=7", "");
addItem("Arte in libertà", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=18", "");
addItem("Cosa bolle in pentola?", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=12", "");
addItem("Divertiamoci insieme", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=22", "");
addItem("I nostri programmi", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=3", "");
addItem("Il taccuino di viaggio", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=11", "");
addItem("L’edicola di Parole in libertà", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=21", "");
addItem("La Biblioteca del Forum", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=15", "");
addItem("Le Canzoni del cuore", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=8", "");
addItem("Le stelle di Parole in libertà", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=17","");
addItem("Sport:passione e tormento", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=16", "")
addItem("Tutti al cinema", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=14", "");
addItem("Per festeggiare insieme", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=13", "");
addItem("Tanti auguri a te", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=10", "");
addItem("Gemellaggi e forum amici", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=19", "");
addItem("I nostri link", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=6", "");
addItem("Privè", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=5", "");
addItem("Ultime discussioni", "http://freeforumzone.leonardo.it/viewrecenti.aspx?f=79239&ev=1", "");
endMenu()

</script>
</head>
admin
00sabato 4 agosto 2007 17:17
Ok, ora questo va bene l'altro codice era tutto sbagliato.

Ecco il nuovo codice con le modifiche da fare in grassetto, mi raccomando rimuovi anche il tag </head>, non deve essere inserito nei forum.


<!-- Prelevato su www.web-link.it -->
<script language="JavaScript1.2">
/*
Copyright © MaXimuS 2000-2001, All Rights Reserved.
Site: www.absolutegb.com/maximus
E-mail: maximus@nsimail.com
Version: 6.1 (NS6 Compatibility)
*/

// Default settings. Don't change them.

YOffset=40; // no quotes!!
staticYOffset=40; // no quotes!!
slideSpeed=20 // no quotes!!
waitTime=1000; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
hdrFontFamily="Verdana";
hdrFontSize="3";
hdrFontColor="#000080";
hdrBGColor="#AFCCDE";
hdrAlign="right";
hdrVAlign="center";
hdrHeight="40";
linkFontFamily="Verdana";
linkFontSize="2";
linkBGColor="#FFF7E5";
linkOverBGColor="#FFF7E5";
linkTarget="_top";
linkAlign="left";
menuBGColor="#990000";
menuIsStatic="yes";
menuWidth=110; // Must be a multiple of 10! no quotes!!
barBGColor="#AFCCDE";
barFontFamily="Verdana";
barFontSize="2";
barFontColor="#000080";
barVAlign="top";
barWidth=20; // no quotes!!

NS6 = (document.getElementById&&!document.all)
IE = (document.all)
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")

moving=setTimeout('',1)
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) {theleft+=10; var l=parseInt(ssm.left); ssm.left=""+(l+10)+"px"; /*EDIT FFZ3*/ /*ssm.left = theleft;*/ }
if (IE) {ssm.style.pixelLeft += 10;}
if (NS) {document.ssm.left += 10;document.ssm.clip.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) {theleft-=10; var l=parseInt(ssm.left); ssm.left=""+(l-10)+"px"; /*EDIT FFZ3*/ /*ssm.left = theleft;*/ }
if (IE) {ssm.style.pixelLeft -= 10;}
if (NS) {document.ssm.left -= 10;document.ssm.clip.left+=10}}
else {clearTimeout(moving);moving=setTimeout('',1)}};

lastY = 0;
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 = .3 * (winY - lastY - YOffset + staticYOffset);}
else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
smooth = .3 * (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;}
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"; /*EDIT FFZ3*/ /*ssm.left = -menuWidth;*/ }
else if (IE) {
document.all("ssm").style.visibility = "visible"
document.all("ssm").style.pixelLeft = -menuWidth;}
else if (NS) {
document.layers["ssm"].clip.left = menuWidth;
document.layers["ssm"].left = -menuWidth;
document.layers["ssm"].visibility = "show"}
if (menuIsStatic=="yes") makeStatic();}

function reloadPage() {if(NS) reload()}

function startMenu(menuHeader, barText) {
if (IE||NS6) {document.write('<DIV ID="ssm" style="visibility:hidden;Position : Absolute ;Left : 0 ;Top : '+YOffset+' ;Z-Index : 20;width:1px" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (NS) {document.write('<LAYER visibility="hide" top="'+YOffset+'" name="ssm" bgcolor="'+menuBGColor+'" left="0" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (NS6){document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'"><TR><TD>')}
tempBar=""
for (i=0;i<barText.length;i++) {
tempBar+=barText.substring(i, i+1)+"<BR>"}
document.write('<table border="1" cellpadding="0" cellspacing="1" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'"><tr><td bgcolor="'+hdrBGColor+'" WIDTH="'+(menuWidth-1)+'" HEIGHT="'+hdrHeight+'" ALIGN="'+hdrAlign+'" VALIGN="'+hdrVAlign+'"> <font face="'+hdrFontFamily+'" Size="'+hdrFontSize+'" COLOR="'+hdrFontColor+'"><b>'+menuHeader+'</b></font></td><td align="center" rowspan="100" width="'+barWidth+'" bgcolor="'+barBGColor+'" valign="'+barVAlign+'"><p align="center"><font face="'+barFontFamily+'" Size="'+barFontSize+'" COLOR="'+barFontColor+'"><B>'+tempBar+'</B></font></p></TD></tr>')
theleft=-menuWidth}

function addItem(text, link, target) {
if (!target) {target=linkTarget}
document.write('<TR><TD BGCOLOR="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="'+(menuWidth-1)+'"><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'"><DIV ALIGN="'+linkAlign+'"><FONT face="'+linkFontFamily+'" Size="'+linkFontSize+'"> <A HREF="'+link+'" target="'+target+'" CLASS="ssmItems">'+text+'</DIV></LAYER></ILAYER></TD></TR>')}

function addHdr(text) {
document.write('<tr><td bgcolor="'+hdrBGColor+'" HEIGHT="'+hdrHeight+'" ALIGN="'+hdrAlign+'" VALIGN="'+hdrVAlign+'" WIDTH="'+(menuWidth-1)+'"> <font face="'+hdrFontFamily+'" Size="'+hdrFontSize+'" COLOR="'+hdrFontColor+'"><b>'+text+'</b></font></td></tr>')}

function endMenu() {
document.write('<tr><td bgcolor="'+hdrBGColor+'"><font size="0" face="Arial"> </font></td></TR></table>')
if (NS6){document.write('</TD></TR></TABLE>')}
if (IE||NS6) {document.write('</DIV>')}
if (NS) {document.write('</LAYER>')}
if (NS6||IE||NS) setTimeout('initSlide();', 500)}

window.onresize=reloadPage

/*
Configure menu styles below
NOTE: To edit the link colors, go to the STYLE tags and edit the ssmItems colors
*/
YOffset=20; // no quotes!!
staticYOffset=20; // no quotes!!
slideSpeed=20 // no quotes!!
waitTime=500; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuBGColor="#006600";
menuIsStatic="yes";
menuWidth=100; // Must be a multiple of 10! no quotes!!
hdrFontFamily="Verdana";
hdrFontSize="2";
hdrFontColor="#fbfb00";
hdrBGColor="#0000dd";
hdrAlign="left";
hdrVAlign="center";
hdrHeight="20";
linkFontFamily="tahoma";
linkFontSize="1";
linkBGColor="black";
linkOverBGColor="#66ff66";
linkTarget="_top";
linkAlign="Left";
barBGColor="#0000dd";
barFontFamily="Verdana";
barFontSize="2";
barFontColor="#ffff00";
barVAlign="center";
barWidth=20; // no quotes!!

startMenu("Menu", "Parole in libertà")
addItem("Home", "http://freeforumzone.leonardo.it/viewforum.aspx?f=79239", "");
addItem("Presentazioni", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=2", "");
addItem("Di Giorno in Giorno", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=9", "");
addItem("Parole in libertà", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=1", "");
addItem("Le nostre storie", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=4", "");
addItem("Le nostre poesie ", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=23", "");
addItem("Le poesie del cuore", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=7", "");
addItem("Arte in libertà", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=18", "");
addItem("Cosa bolle in pentola?", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=12", "");
addItem("Divertiamoci insieme", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=22", "");
addItem("I nostri programmi", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=3", "");
addItem("Il taccuino di viaggio", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=11", "");
addItem("L’edicola di Parole in libertà", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=21", "");
addItem("La Biblioteca del Forum", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=15", "");
addItem("Le Canzoni del cuore", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=8", "");
addItem("Le stelle di Parole in libertà", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=17","");
addItem("Sport:passione e tormento", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=16", "")
addItem("Tutti al cinema", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=14", "");
addItem("Per festeggiare insieme", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=13", "");
addItem("Tanti auguri a te", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=10", "");
addItem("Gemellaggi e forum amici", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=19", "");
addItem("I nostri link", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=6", "");
addItem("Privè", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=5", "");
addItem("Ultime discussioni", "http://freeforumzone.leonardo.it/viewrecenti.aspx?f=79239&ev=1", "");
endMenu()

</script>

(Rosy)
00sabato 4 agosto 2007 17:23
Grazie, grazie, grazie!
(Rosy)
00sabato 4 agosto 2007 17:32
Re:
(Rosy), 04/08/2007 17.23:

Grazie, grazie, grazie!




C'è rimasto solo un piccolo inconveniente, prima seguiva lo scorrere della pagina adesso invece rimane fermo in alto.


Achille Lorenzi
00sabato 4 agosto 2007 21:35
(Rosy), 04/08/2007 17.32:


C'è rimasto solo un piccolo inconveniente, prima seguiva lo scorrere della pagina adesso invece rimane fermo in alto.

E' lo stesso inconveniente che si presenta anche nel forum che gestisco.
Ho modificato lo script come avete suggerito, ma il menù laterale rimane fermo in alto, anziché seguire la pagina come avveniva in precedenza.

Una persona mi ha detto che lo script contiene degli errori che lo rendono incompatibile con il nuovo DOCTYPE di FFZ3 e cioè XHTML 1.0 e che per farlo funzionare dovrei cancellare questa riga:

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"

Solo che questa riga fa parte delle impostazioni generali di FFZ e non mi è certo possibile modificarla.
L'unico rimedio sarebbe modificare lo script, ma il problema è come modificarlo...

Potete aiutarmi?
Vi ringrazio in anticipo.

Achille
(Rosy)
00mercoledì 12 settembre 2007 09:35
Re:
Achille Lorenzi, 04/08/2007 21.35:

E' lo stesso inconveniente che si presenta anche nel forum che gestisco.
Ho modificato lo script come avete suggerito, ma il menù laterale rimane fermo in alto, anziché seguire la pagina come avveniva in precedenza.

Una persona mi ha detto che lo script contiene degli errori che lo rendono incompatibile con il nuovo DOCTYPE di FFZ3 e cioè XHTML 1.0 e che per farlo funzionare dovrei cancellare questa riga:

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"

Solo che questa riga fa parte delle impostazioni generali di FFZ e non mi è certo possibile modificarla.
L'unico rimedio sarebbe modificare lo script, ma il problema è come modificarlo...

Potete aiutarmi?
Vi ringrazio in anticipo.

Achille




Riporto su la richiesta. E' possibile avere il menu a tendina che scorre lungo la pagina come faceva nella vecchia versione? Se non è possibile basta saperlo così decido se tenerlo ancora o eliminarlo del tutto.
admin
00mercoledì 12 settembre 2007 12:07
Non è possibile ovviamente modificare il doctype.

Abbiamo sistemato il codice, evidenziando le modifiche per attivare anche lo scroll verticale.





<!-- Prelevato su www.web-link.it -->
<script language="JavaScript1.2" type="text/javascript">
/*
Copyright © MaXimuS 2000-2001, All Rights Reserved.
Site: www.absolutegb.com/maximus
E-mail: maximus@nsimail.com
Version: 6.1 (NS6 Compatibility)
*/

// Default settings. Don't change them.

YOffset=40; // no quotes!!
staticYOffset=40; // no quotes!!
slideSpeed=20 // no quotes!!
waitTime=1000; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
hdrFontFamily="Verdana";
hdrFontSize="3";
hdrFontColor="#000080";
hdrBGColor="#AFCCDE";
hdrAlign="right";
hdrVAlign="center";
hdrHeight="40";
linkFontFamily="Verdana";
linkFontSize="2";
linkBGColor="#FFF7E5";
linkOverBGColor="#FFF7E5";
linkTarget="_top";
linkAlign="left";
menuBGColor="#990000";
menuIsStatic="yes";
menuWidth=110; // Must be a multiple of 10! no quotes!!
barBGColor="#AFCCDE";
barFontFamily="Verdana";
barFontSize="2";
barFontColor="#000080";
barVAlign="top";
barWidth=20; // no quotes!!

NS6 = (document.getElementById&&!document.all)
IE = (document.all)
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")

moving=setTimeout('',1);
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) {theleft+=10; var l=parseInt(ssm.left); ssm.left=""+(l+10)+"px"; /*EDIT FFZ3*/ /*ssm.left = theleft;*/ }
		if (IE) {ssm.style.pixelLeft += 10;}
		if (NS) {document.ssm.left += 10;document.ssm.clip.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) {theleft-=10; var l=parseInt(ssm.left); ssm.left=""+(l-10)+"px"; /*EDIT FFZ3*/ /*ssm.left = theleft;*/ }
	if (IE) {ssm.style.pixelLeft -= 10;}
	if (NS) {document.ssm.left -= 10;document.ssm.clip.left+=10}}
	else {clearTimeout(moving);moving=setTimeout('',1);}
}

lastY = 0;
function makeStatic() 
{
	if (NS6) {winY = window.pageYOffset;}
	if (IE) { if (document.documentElement && document.documentElement.scrollTop)
					winY = document.documentElement.scrollTop;
				else if (document.body)
					winY = document.body.scrollTop
				else
					winY=0;
				/*EDIT FFZ3*/ /*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 = .3 * (winY - lastY - YOffset + staticYOffset);
		}
		else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) 
		{
			smooth = .3 * (winY - lastY);
		}
		else { smooth=0; }
		
		if(smooth!=0)
		{	
			if(smooth > 0) smooth = Math.ceil(smooth);
			else smooth = Math.floor(smooth);	
			if (NS6) 
			{
				var l=parseInt(ssm.top); if(!l || isNaN(l)) l=0;
				ssm.top=""+(l+smooth)+"px";   
				/*EDIT FFZ3*/ /*ssm.top=parseInt(ssm.top)+smooth;*/ 
			}
			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"; /*EDIT FFZ3*/ /*ssm.left = -menuWidth;*/ 
	}
	else if (IE) {
	document.all("ssm").style.visibility = "visible"
	document.all("ssm").style.pixelLeft = -menuWidth;}
	else if (NS) {
	document.layers["ssm"].clip.left = menuWidth;
	document.layers["ssm"].left = -menuWidth;
	document.layers["ssm"].visibility = "show"}
	if (menuIsStatic=="yes") makeStatic();
}

function reloadPage() {if(NS) reload()}

function startMenu(menuHeader, barText) 
{
	if (IE||NS6) {document.write('<DIV ID="ssm" style="visibility:hidden;Position : Absolute ;Left : 0 ;Top : '+YOffset+' ;Z-Index : 20;width:1px" onmouseover="moveOut()" onmouseout="moveBack()">')}
	if (NS) {document.write('<LAYER visibility="hide" top="'+YOffset+'" name="ssm" bgcolor="'+menuBGColor+'" left="0" onmouseover="moveOut()" onmouseout="moveBack()">')}
	if (NS6){document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'"><TR><TD>')}
	tempBar=""
	for (i=0;i<barText.length;i++) {
	tempBar+=barText.substring(i, i+1)+"<BR>"}
	document.write('<table border="1" cellpadding="0" cellspacing="1" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'"><tr><td bgcolor="'+hdrBGColor+'" WIDTH="'+(menuWidth-1)+'" HEIGHT="'+hdrHeight+'" ALIGN="'+hdrAlign+'" VALIGN="'+hdrVAlign+'"> <font face="'+hdrFontFamily+'" Size="'+hdrFontSize+'" COLOR="'+hdrFontColor+'"><b>'+menuHeader+'</b></font></td><td align="center" rowspan="100" width="'+barWidth+'" bgcolor="'+barBGColor+'" valign="'+barVAlign+'"><p align="center"><font face="'+barFontFamily+'" Size="'+barFontSize+'" COLOR="'+barFontColor+'"><B>'+tempBar+'</B></font></p></TD></tr>')
	theleft=-menuWidth;
}

function addItem(text, link, target) 
{
	if (!target) {target=linkTarget}
	document.write('<TR><TD BGCOLOR="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="'+(menuWidth-1)+'"><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'"><DIV ALIGN="'+linkAlign+'"><FONT face="'+linkFontFamily+'" Size="'+linkFontSize+'"> <A HREF="'+link+'" target="'+target+'" CLASS="ssmItems">'+text+'</DIV></LAYER></ILAYER></TD></TR>');
}

function addHdr(text) 
{
	document.write('<tr><td bgcolor="'+hdrBGColor+'" HEIGHT="'+hdrHeight+'" ALIGN="'+hdrAlign+'" VALIGN="'+hdrVAlign+'" WIDTH="'+(menuWidth-1)+'"> <font face="'+hdrFontFamily+'" Size="'+hdrFontSize+'" COLOR="'+hdrFontColor+'"><b>'+text+'</b></font></td></tr>');
}

function endMenu() 
{
	document.write('<tr><td bgcolor="'+hdrBGColor+'"><font size="0" face="Arial"> </font></td></TR></table>')
	if (NS6){document.write('</TD></TR></TABLE>')}
	if (IE||NS6) {document.write('</DIV>')}
	if (NS) {document.write('</LAYER>')}
	if (NS6||IE||NS) setTimeout('initSlide();', 500);
}

window.onresize=reloadPage

/*
Configure menu styles below
NOTE: To edit the link colors, go to the STYLE tags and edit the ssmItems colors
*/
YOffset=20; // no quotes!!
staticYOffset=20; // no quotes!!
slideSpeed=20 // no quotes!!
waitTime=500; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuBGColor="#006600";
menuIsStatic="yes";
menuWidth=100; // Must be a multiple of 10! no quotes!!
hdrFontFamily="Verdana";
hdrFontSize="2";
hdrFontColor="#fbfb00";
hdrBGColor="#0000dd";
hdrAlign="left";
hdrVAlign="center";
hdrHeight="20";
linkFontFamily="tahoma";
linkFontSize="1";
linkBGColor="black";
linkOverBGColor="#66ff66";
linkTarget="_top";
linkAlign="Left";
barBGColor="#0000dd";
barFontFamily="Verdana";
barFontSize="2";
barFontColor="#ffff00";
barVAlign="center";
barWidth=20; // no quotes!!

startMenu("Menu", "Parole in libertà")
addItem("Home", "http://freeforumzone.leonardo.it/viewforum.aspx?f=79239", "");
addItem("Presentazioni", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=2", "");
addItem("Di Giorno in Giorno", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=9", "");
addItem("Parole in libertà", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=1", "");
addItem("Le nostre storie", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=4", "");
addItem("Le nostre poesie ", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=23", "");
addItem("Le poesie del cuore", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=7", "");
addItem("Arte in libertà", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=18", "");
addItem("Cosa bolle in pentola?", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=12", "");
addItem("Divertiamoci insieme", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=22", "");
addItem("I nostri programmi", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=3", "");
addItem("Il taccuino di viaggio", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=11", "");
addItem("L’edicola di Parole in libertà", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=21", "");
addItem("La Biblioteca del Forum", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=15", "");
addItem("Le Canzoni del cuore", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=8", "");
addItem("Le stelle di Parole in libertà", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=17","");
addItem("Sport:passione e tormento", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=16", "")
addItem("Tutti al cinema", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=14", "");
addItem("Per festeggiare insieme", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=13", "");
addItem("Tanti auguri a te", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=10", "");
addItem("Gemellaggi e forum amici", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=19", "");
addItem("I nostri link", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=6", "");
addItem("Privè", "http://freeforumzone.leonardo.it/viewdiscussioni.aspx?f=79239&idc=5", "");
addItem("Ultime discussioni", "http://freeforumzone.leonardo.it/viewrecenti.aspx?f=79239&ev=1", "");
endMenu();

</script>


(Rosy)
00mercoledì 12 settembre 2007 12:31
Grazie, admin. smack!
Achille Lorenzi
00mercoledì 12 settembre 2007 19:46
Dov'è l'errore?
Ahimé, ho provato a modificare lo script, secondo i vostri suggerimenti, ma credo di avere sbagliato qualcosa, perché il menù
a tendina rimane inesorabilmente fermo in altro.
Potreste per favore dirmi dov'è l'errore?
Questo lo script del menù presente nel mio forum:

<script language="JavaScript1.2" type="text/javascript">
/*
Copyright © MaXimuS 2000-2001, All Rights Reserved.
Site: www.absolutegb.com/maximus
E-mail: maximus@nsimail.com
Version: 6.1 (NS6 Compatibility)
*/

// Default settings. Don't change them.

YOffset=40; // no quotes!!
staticYOffset=10; // no quotes!!
slideSpeed=20 // no quotes!!
waitTime=1000; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
hdrFontFamily="Verdana";
hdrFontSize="3";
hdrFontColor="#000080";
hdrBGColor="#AFCCDE";
hdrAlign="right";
hdrVAlign="center";
hdrHeight="40";
linkFontFamily="Verdana";
linkFontSize="2";
linkBGColor="#FFF7E5";
linkOverBGColor="#FFF7E5";linkTarget="_top";
linkAlign="left";
menuBGColor="#000080";
menuIsStatic="yes";
menuWidth=100; // Must be a multiple of 10! no quotes!!
barBGColor="#AFCCDE";
barFontFamily="Verdana";
barFontSize="2";
barFontColor="#000080";
barVAlign="top";
barWidth=20; // no quotes!!

NS6 = (document.getElementById&&!document.all)
IE = (document.all)
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")

moving=setTimeout('',1);
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) {theleft+=10; var l=parseInt(ssm.left); ssm.left=""+(l+10)+"px"; /*EDIT FFZ3*/ /*ssm.left = theleft;*/ }
if (IE) {ssm.style.pixelLeft += 10;}
if (NS) {document.ssm.left += 10;document.ssm.clip.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) {theleft-=10; var l=parseInt(ssm.left); ssm.left=""+(l-10)+"px"; /*EDIT FFZ3*/ /*ssm.left = theleft;*/ }
if (IE) {ssm.style.pixelLeft -= 10;}
if (NS) {document.ssm.left -= 10;document.ssm.clip.left+=10}}
else {clearTimeout(moving);moving=setTimeout('',1);}
}

lastY = 0;
function makeStatic()
{
if (NS6) {winY = window.pageYOffset;}
if (IE) { if (document.documentElement && document.documentElement.scrollTop)
winY = document.documentElement.scrollTop;
else if (document.body)
winY = document.body.scrollTop
else
winY=0;
/*EDIT FFZ3*/ /*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 = .3 * (winY - lastY - YOffset + staticYOffset);
}
else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset)
{
smooth = .3 * (winY - lastY);
}
else { smooth=0; }

if(smooth!=0)
{
if(smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
if (NS6)
{
var l=parseInt(ssm.top); if(!l || isNaN(l)) l=0;
ssm.top=""+(l+smooth)+"px";
/*EDIT FFZ3*/ /*ssm.top=parseInt(ssm.top)+smooth;*/
}
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"; /*EDIT FFZ3*/ /*ssm.left = -menuWidth;*/
}
else if (IE) {
document.all("ssm").style.visibility = "visible"
document.all("ssm").style.pixelLeft = -menuWidth;}
else if (NS) {
document.layers["ssm"].clip.left = menuWidth;
document.layers["ssm"].left = -menuWidth;
document.layers["ssm"].visibility = "show"}
if (menuIsStatic=="yes") makeStatic();
}

function reloadPage() {if(NS) reload()}

function startMenu(menuHeader, barText)
{
if (IE||NS6) {document.write('<DIV ID="ssm" style="visibility:hidden;Position : Absolute ;Left : 0 ;Top : '+YOffset+' ;Z-Index : 20;width:1px" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (NS) {document.write('<LAYER visibility="hide" top="'+YOffset+'" name="ssm" bgcolor="'+menuBGColor+'" left="0" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (NS6){document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'"><TR><TD>')}
tempBar=""
for (i=0;i<barText.length;i++) {
tempBar+=barText.substring(i, i+1)+"<BR>"}
document.write('<table border="1" cellpadding="0" cellspacing="1" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'"><tr><td bgcolor="'+hdrBGColor+'" WIDTH="'+(menuWidth-1)+'" HEIGHT="'+hdrHeight+'" ALIGN="'+hdrAlign+'" VALIGN="'+hdrVAlign+'"> <font face="'+hdrFontFamily+'" Size="'+hdrFontSize+'" COLOR="'+hdrFontColor+'"><b>'+menuHeader+'</b></font></td><td align="center" rowspan="100" width="'+barWidth+'" bgcolor="'+barBGColor+'" valign="'+barVAlign+'"><p align="center"><font face="'+barFontFamily+'" Size="'+barFontSize+'" COLOR="'+barFontColor+'"><B>'+tempBar+'</B></font></p></TD></tr>')
theleft=-menuWidth;
}

function addItem(text, link, target)
{
if (!target) {target=linkTarget}
document.write('<TR><TD BGCOLOR="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="'+(menuWidth-1)+'"><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'"><DIV ALIGN="'+linkAlign+'"><FONT face="'+linkFontFamily+'" Size="'+linkFontSize+'"> <A HREF="'+link+'" target="'+target+'" CLASS="ssmItems">'+text+'</DIV></LAYER></ILAYER></TD></TR>');
}

function addHdr(text)
{
document.write('<tr><td bgcolor="'+hdrBGColor+'" HEIGHT="'+hdrHeight+'" ALIGN="'+hdrAlign+'" VALIGN="'+hdrVAlign+'" WIDTH="'+(menuWidth-1)+'"> <font face="'+hdrFontFamily+'" Size="'+hdrFontSize+'" COLOR="'+hdrFontColor+'"><b>'+text+'</b></font></td></tr>');
}

function endMenu()
{
document.write('<tr><td bgcolor="'+hdrBGColor+'"><font size="0" face="Arial"> </font></td></TR></table>')
if (NS6){document.write('</TD></TR></TABLE>')}
if (IE||NS6) {document.write('</DIV>')}
if (NS) {document.write('</LAYER>')}
if (NS6||IE||NS) setTimeout('initSlide();', 500);
}

window.onresize=reloadPage

/*
Configure menu styles below
NOTE: To edit the link colors, go to the STYLE tags and edit the ssmItems colors
*/
YOffset=20; // no quotes!!
staticYOffset=20; // no quotes!!
slideSpeed=20 // no quotes!!
waitTime=500; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuBGColor="#01347a";
menuIsStatic="yes";
menuWidth=200; // Must be a multiple of 10! no quotes!!
hdrFontFamily="verdana";
hdrFontSize="2";
hdrFontColor="#000066";
hdrBGColor="#00a0ff";
hdrAlign="center";
hdrVAlign="center";
hdrHeight="10";
linkFontFamily="Verdana";
linkFontSize="2";
linkBGColor="#f6f4ff";
linkOverBGColor="#ffffff";
linkTarget="_top";
linkAlign="center";
barBGColor="#0238a4";
barFontFamily="Verdana";
barFontSize="1";
barFontColor="white";
barVAlign="center";
barWidth=16; // no quotes!!

startMenu("CARTELLE", "INDICE VELOCE");
addItem("<b>Home", "http://freeforumzone.leonardo.it/forum.aspx?c=47801&f=47801", "");
addItem("<b>Discussioni recenti</b>", "http://freeforumzone.leonardo.it/recenti.aspx?c=47801&f=47801&ev=1", "");
addItem("<b>Regolamento</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228216", "");
addItem("<b>Problemi tecnici</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228218", "");
addItem("<b>Messaggi personali</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228220", "");
addItem("<b>Annunci</b>", "http://freeforumzone.leonardo.it/recenti.aspx?c=47801&f=47801&ev=2", "");
addItem("<b>Presentiamoci</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228222", "");
addItem("<b>Esperienze vissute</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228223", "");
addItem("<b>Forum principale</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228224", "");
addItem("<b>Argomenti dottrinali</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228225", "");
addItem("<b>Fuori tema</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228226", "");
addItem("<b>Scienza e TdG</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228227", "");
addItem("<b>Costume e società</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228228", "");
addItem("<b>La storia dei TdG</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228229", "");
addItem("<b>La Bibbia dei TdG</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228230", "");
addItem("<b>Non solo critica...</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228231", "");
addItem("<b>Pubblicazioni della WTS</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228235", "");
addItem("<b>Domande e risposte</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228232", "");
addItem("<b>Lettere e circolari</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228233", "");
addItem("<b>Domande sulla Bibbia</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228236", "");
addItem("<b>Rassegna stampa</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228237", "");
addItem("<b>Le cose già dette</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228238", "");
addItem("<b>La pagina dei links</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228240", "");
addItem("<b>Libri e dintorni</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228241", "");
addItem("<b>Pensieri e parole</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228242", "");
addItem("<b>Umorismo</b>", "http://www.freeforumzone.com/viewdiscussioni.aspx?f=47801&idc=18", "");
addItem("<b>Compleanni e ricorrenze</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228239", "");
addItem("<b>Entra nella chat</b>", "http://freeforumzone.leonardo.it/chat.aspx?c=47801&f=47801", "_blank");
endMenu();

</script>

Vi ringrazio in anticipo per il vostro aiuto e per l'infinita pazienza che mostrate con tutti gli utenti che vi interpellano.

Achille
Achille Lorenzi
00mercoledì 12 settembre 2007 21:30
Come non detto...
.. grazie al vostro aiuto, controllando meglio lo script, sono ruscito a trovare l'errore.
Ora il menù scorre anche verticalmente.

Grazie!!!

Achille
ziomerino
00mercoledì 12 settembre 2007 22:06
potresti postare quello corretto?
Achille Lorenzi
00giovedì 13 settembre 2007 07:15
ziomerino, 12/09/2007 22.06:

potresti postare quello corretto?

Questo è quello che funziona.
Ciao
Achille
----------------

<!-- Prelevato su www.web-link.it -->
<script language="JavaScript1.2" type="text/javascript">
/*
Copyright © MaXimuS 2000-2001, All Rights Reserved.
Site: www.absolutegb.com/maximus
E-mail: maximus@nsimail.com
Version: 6.1 (NS6 Compatibility)
*/

// Default settings. Don't change them.

YOffset=40; // no quotes!!
staticYOffset=40; // no quotes!!
slideSpeed=20 // no quotes!!
waitTime=1000; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
hdrFontFamily="Verdana";
hdrFontSize="3";
hdrFontColor="#000080";
hdrBGColor="#AFCCDE";
hdrAlign="right";
hdrVAlign="center";
hdrHeight="40";
linkFontFamily="Verdana";
linkFontSize="2";
linkBGColor="#FFF7E5";
linkOverBGColor="#FFF7E5";
linkTarget="_top";
linkAlign="left";
menuBGColor="#990000";
menuIsStatic="yes";
menuWidth=110; // Must be a multiple of 10! no quotes!!
barBGColor="#AFCCDE";
barFontFamily="Verdana";
barFontSize="2";
barFontColor="#000080";
barVAlign="top";
barWidth=20; // no quotes!!

NS6 = (document.getElementById&&!document.all)
IE = (document.all)
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")

moving=setTimeout('',1);
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) {theleft+=10; var l=parseInt(ssm.left); ssm.left=""+(l+10)+"px"; /*EDIT FFZ3*/ /*ssm.left = theleft;*/ }
if (IE) {ssm.style.pixelLeft += 10;}
if (NS) {document.ssm.left += 10;document.ssm.clip.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) {theleft-=10; var l=parseInt(ssm.left); ssm.left=""+(l-10)+"px"; /*EDIT FFZ3*/ /*ssm.left = theleft;*/ }
if (IE) {ssm.style.pixelLeft -= 10;}
if (NS) {document.ssm.left -= 10;document.ssm.clip.left+=10}}
else {clearTimeout(moving);moving=setTimeout('',1);}
}

lastY = 0;
function makeStatic()
{
if (NS6) {winY = window.pageYOffset;}
if (IE) { if (document.documentElement && document.documentElement.scrollTop)
winY = document.documentElement.scrollTop;
else if (document.body)
winY = document.body.scrollTop
else
winY=0;
/*EDIT FFZ3*/ /*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 = .3 * (winY - lastY - YOffset + staticYOffset);
}
else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset)
{
smooth = .3 * (winY - lastY);
}
else { smooth=0; }

if(smooth!=0)
{
if(smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
if (NS6)
{
var l=parseInt(ssm.top); if(!l || isNaN(l)) l=0;
ssm.top=""+(l+smooth)+"px";
/*EDIT FFZ3*/ /*ssm.top=parseInt(ssm.top)+smooth;*/
}
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"; /*EDIT FFZ3*/ /*ssm.left = -menuWidth;*/
}
else if (IE) {
document.all("ssm").style.visibility = "visible"
document.all("ssm").style.pixelLeft = -menuWidth;}
else if (NS) {
document.layers["ssm"].clip.left = menuWidth;
document.layers["ssm"].left = -menuWidth;
document.layers["ssm"].visibility = "show"}
if (menuIsStatic=="yes") makeStatic();
}

function reloadPage() {if(NS) reload()}

function startMenu(menuHeader, barText)
{
if (IE||NS6) {document.write('<DIV ID="ssm" style="visibility:hidden;Position : Absolute ;Left : 0 ;Top : '+YOffset+' ;Z-Index : 20;width:1px" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (NS) {document.write('<LAYER visibility="hide" top="'+YOffset+'" name="ssm" bgcolor="'+menuBGColor+'" left="0" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (NS6){document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'"><TR><TD>')}
tempBar=""
for (i=0;i<barText.length;i++) {
tempBar+=barText.substring(i, i+1)+"<BR>"}
document.write('<table border="1" cellpadding="0" cellspacing="1" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'"><tr><td bgcolor="'+hdrBGColor+'" WIDTH="'+(menuWidth-1)+'" HEIGHT="'+hdrHeight+'" ALIGN="'+hdrAlign+'" VALIGN="'+hdrVAlign+'"> <font face="'+hdrFontFamily+'" Size="'+hdrFontSize+'" COLOR="'+hdrFontColor+'"><b>'+menuHeader+'</b></font></td><td align="center" rowspan="100" width="'+barWidth+'" bgcolor="'+barBGColor+'" valign="'+barVAlign+'"><p align="center"><font face="'+barFontFamily+'" Size="'+barFontSize+'" COLOR="'+barFontColor+'"><B>'+tempBar+'</B></font></p></TD></tr>')
theleft=-menuWidth;
}

function addItem(text, link, target)
{
if (!target) {target=linkTarget}
document.write('<TR><TD BGCOLOR="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="'+(menuWidth-1)+'"><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'"><DIV ALIGN="'+linkAlign+'"><FONT face="'+linkFontFamily+'" Size="'+linkFontSize+'"> <A HREF="'+link+'" target="'+target+'" CLASS="ssmItems">'+text+'</DIV></LAYER></ILAYER></TD></TR>');
}

function addHdr(text)
{
document.write('<tr><td bgcolor="'+hdrBGColor+'" HEIGHT="'+hdrHeight+'" ALIGN="'+hdrAlign+'" VALIGN="'+hdrVAlign+'" WIDTH="'+(menuWidth-1)+'"> <font face="'+hdrFontFamily+'" Size="'+hdrFontSize+'" COLOR="'+hdrFontColor+'"><b>'+text+'</b></font></td></tr>');
}

function endMenu()
{
document.write('<tr><td bgcolor="'+hdrBGColor+'"><font size="0" face="Arial"> </font></td></TR></table>')
if (NS6){document.write('</TD></TR></TABLE>')}
if (IE||NS6) {document.write('</DIV>')}
if (NS) {document.write('</LAYER>')}
if (NS6||IE||NS) setTimeout('initSlide();', 500);
}

window.onresize=reloadPage

/*
Configure menu styles below
NOTE: To edit the link colors, go to the STYLE tags and edit the ssmItems colors
*/
YOffset=20; // no quotes!!
staticYOffset=20; // no quotes!!
slideSpeed=20 // no quotes!!
waitTime=500; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuBGColor="#01347a";
menuIsStatic="yes";
menuWidth=200; // Must be a multiple of 10! no quotes!!
hdrFontFamily="verdana";
hdrFontSize="2";
hdrFontColor="#000066";
hdrBGColor="#00a0ff";
hdrAlign="center";
hdrVAlign="center";
hdrHeight="10";
linkFontFamily="Verdana";
linkFontSize="2";
linkBGColor="#f6f4ff";
linkOverBGColor="#ffffff";
linkTarget="_top";
linkAlign="center";
barBGColor="#0238a4";
barFontFamily="Verdana";
barFontSize="1";
barFontColor="white";
barVAlign="center";
barWidth=16; // no quotes!!

startMenu("CARTELLE", "INDICE VELOCE");
addItem("<b>Home", "http://freeforumzone.leonardo.it/forum.aspx?c=47801&f=47801", "");
addItem("<b>Discussioni recenti</b>", "http://freeforumzone.leonardo.it/recenti.aspx?c=47801&f=47801&ev=1", "");
addItem("<b>Regolamento</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228216", "");
addItem("<b>Problemi tecnici</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228218", "");
addItem("<b>Messaggi personali</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228220", "");
addItem("<b>Annunci</b>", "http://freeforumzone.leonardo.it/recenti.aspx?c=47801&f=47801&ev=2", "");
addItem("<b>Presentiamoci</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228222", "");
addItem("<b>Esperienze vissute</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228223", "");
addItem("<b>Forum principale</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228224", "");
addItem("<b>Argomenti dottrinali</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228225", "");
addItem("<b>Fuori tema</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228226", "");
addItem("<b>Scienza e TdG</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228227", "");
addItem("<b>Costume e società</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228228", "");
addItem("<b>La storia dei TdG</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228229", "");
addItem("<b>La Bibbia dei TdG</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228230", "");
addItem("<b>Non solo critica...</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228231", "");
addItem("<b>Pubblicazioni della WTS</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228235", "");
addItem("<b>Domande e risposte</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228232", "");
addItem("<b>Lettere e circolari</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228233", "");
addItem("<b>Domande sulla Bibbia</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228236", "");
addItem("<b>Rassegna stampa</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228237", "");
addItem("<b>Le cose già dette</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228238", "");
addItem("<b>La pagina dei links</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228240", "");
addItem("<b>Libri e dintorni</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228241", "");
addItem("<b>Pensieri e parole</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228242", "");
addItem("<b>Umorismo</b>", "http://www.freeforumzone.com/viewdiscussioni.aspx?f=47801&idc=18", "");
addItem("<b>Compleanni e ricorrenze</b>", "http://freeforumzone.leonardo.it/cartella.aspx?c=47801&f=47801&idc=228239", "");
addItem("<b>Entra nella chat</b>", "http://freeforumzone.leonardo.it/chat.aspx?c=47801&f=47801", "_blank");
endMenu();

</script>


ziomerino
00giovedì 13 settembre 2007 17:24
GRAZIE, GENTILISSIMO!
Questa è la versione 'lo-fi' del Forum Per visualizzare la versione completa clicca qui
Tutti gli orari sono GMT+01:00. Adesso sono le 13:18.
Copyright © 2000-2024 FFZ srl - www.freeforumzone.com