Ciao ho un sito qui su altervista. ho inserito un code nel mio sito che permette di fare un menù a scomparsa e ci ho messo in questo menù dei link, ma quando li apro si apre un'altra pagina, mentre io vorrei che restassero sulla pagina iniziale.
Il code e questo
[code:1:989a69ce9d]<style>
A:link, A:visited { text-decoration: none }
A:hover { text-decoration: underline }
</style>
<style>
<!--
#slidemenubar, #slidemenubar2{
position:absolute;
border:1.0px solid black;
background-color:#f0f0f0;
layer-background-color:#f0f0f0;
font:bold 12px Verdana;
line-height:20px;
}
-->
</style>
<BODY BGCOLOR="white" vlink="blue" link="blue">
<script language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
var SymRealWinOpen = window.open;
function SymWinOpen(url, name, attributes)
{
return (new Object());
}
window.open = SymWinOpen;
//-->
</script>
<script language="JavaScript1.2">
var slidemenu_width=180
var slidemenu_reveal=10
var slidemenu_top=70
var ns4=document.layers?1:0
var ie4=document.all&&navigator.userAgent.inde xOf("Opera")==-1
var ns6=document.getElementById&&!document.all ?1:0
if (ie4||ns6)
document.write('<div id="slidemenubar2" style="left:'+((slidemenu_width-slidemenu_reveal)*-1)+'; top:'+slidemenu_top+'; width:'+slidemenu_width+'" onMouseover="pull()" onMouseout="draw()">')
else if (ns4){
document.write('<style>\n#slidemenubar&# 123;\nwidth:'+slidemenu_width+';}\n<\/style>\n')
document.write('<layer id="slidemenubar" left=0 top='+slidemenu_top+' width='+slidemenu_width+' onMouseover="pull()" onMouseout="draw()" visibility=hide>')
}
var sitems=new Array()
sitems[0]=["<div align='center'><font face='Verdana'>Menù</font></div>", ""]
sitems[1]=["&nbsp;Nuovi articoli", "http://www.musclegym.altervista.org/nuoviarticoli.htm"]
sitems[2]=["&nbsp;Rubriche&qu ot;, "http://www.musclegym.altervista.org/rubriche.htm"]
sitems[3]=["&nbsp;Visualizza link", "http://www.musclegym.altervista.org/link.htm"]
sitems[4]=["&nbsp;Nuovi articoli", "http://www.musclegym.altervista.org/nuoviarticoli.htm"]
sitems[5]=["&nbsp;Servizi&quo t;, "http://www.musclegym.altervista.org/servizi.htm"]
sitems[6]=["&nbsp;Utilities&q uot;, "http://www.musclegym.altervista.org/utilities.htm"]
sitems[7]=["&nbsp;Esercizi&qu ot;, "http://www.musclegym.altervista.org/esercizi.htm"]
sitems[8]=["&nbsp;Articoli&qu ot;, "http://www.musclegym.altervista.org/articoli.htm"]
sitems[9]=["&nbsp;Schede di allenamento", "http://www.musclegym.altervista.org/schede.htm"]
var target="_new"
/////////////////////////////////////////////////////////
if (ie4||ns4||ns6){
for (i=0;i<sitems.length;i++){
if (sitems[i][1])
document.write('<a href="'+sitems[i][1]+'" target="'+target+'">')
document.write(sitems[i][0] 1;
if (sitems[i][1])
document.write('</a>')
document.write('<br>\n')
}
}
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (ns4){
document.slidemenubar.left=((slidemenu_wid th-slidemenu_reveal)*-1)
document.slidemenubar.visibility="show"
setTimeout("window.onresize=regenerate&qu ot;,400)
}
}
window.onload=regenerate2
rightboundary=0
leftboundary=(slidemenu_width-slidemenu_reveal)*-1
if (ie4||ns6){
document.write('</div>')
themenu=(ns6)? document.getElementById("slidemenubar2&qu ot;).style : document.all.slidemenubar2.style
}
else if (ns4){
document.write('</layer>')
themenu=document.layers.slidemenubar
}
function pull(){
if (window.drawit)
clearInterval(drawit)
pullit=setInterval("pullengine()& quot;,10)
}
function draw(){
clearInterval(pullit)
drawit=setInterval("drawengine()& quot;,10)
}
function pullengine(){
if ((ie4||ns6)&&parseInt(them enu.left)<rightboundary)
themenu.left=parseInt(themenu.left)+10
else if(ns4&&themenu.left<rightboundary& #41;
themenu.left+=10
else if (window.pullit){
themenu.left=0
clearInterval(pullit)
}
}
function drawengine(){
if ((ie4||ns6)&&parseInt(them enu.left)>leftboundary)
themenu.left=parseInt(themenu.left)-10
else if(ns4&&themenu.left>leftboundary&# 41;
themenu.left-=10
else if (window.drawit){
themenu.left=leftboundary
clearInterval(drawit)
}
}
</script>
[/code:1:989a69ce9d]
Grazie per chi mi risponderà e risolverà il mio problema.