Vi posto tutto il codice per capire di cosa si tratta,
(lo script è in un .js esterno)
ho bisogno di fare questa modifica:
vorrei che fossero dei link ma dei pulsanti per show layer,
(sotto nei commenti)
document.write('<STYLE TYPE=text/css>');
document.write('.ejs_mv3_styl_scroll {font-size:12px;font-family:Verdana;color:#EDEDED;text-decoration:none}');
document.write('</STYLE>');
ejs_mv3_largeur = 215;
ejs_mv3_hauteur = 180;
ejs_mv3_bgcolor = '#333366';
ejs_mv3_menu = new Array;
ejs_mv3_menu[0] = 'Azienda';
ejs_mv3_menu[1] = 'Prodotti';
ejs_mv3_menu[2] = 'Contatti';
ejs_mv3_menu[3] = 'Organizer';
ejs_mv3_lien = new Array;
ejs_mv3_lien[0] = ''
ejs_mv3_lien[1] = ''
ejs_mv3_lien[2] = ''
ejs_mv3_lien[3] = ''
ejs_mv3_lien[0] += '- Profilo
';
//questa parte, non mi interessa un <a hreff=.....
//ma vorrei che ci fosse on click show layer
function d(texte)
{
document.write(texte);
}
d('<DIV ID=ejs_mv3_relativ STYLE="position:relative;width:'+ejs_mv3_largeur+' ;height:'+ejs_mv3_hauteur+'">');
d('<DIV ID=ejs_mv3_cadre STYLE="position:absolute;width:'+(ejs_mv3_largeur-8)+';height:'+(ejs_mv3_hauteur-8)+';top:4;left:4;clip:rect(0 '+(ejs_mv3_largeur-8)+' '+(ejs_mv3_hauteur-8)+' 0)">');
d('<div id=ejs_mv3_scroll_1 style="position:absolute;width:'+(ejs_mv3_largeur-8)+';left:0;top:0;" CLASS=ejs_mv3_styl_scroll>Caricamento del menù ...</DIV>');
d('<div id=ejs_mv3_scroll_2 style="position:absolute;width:'+(ejs_mv3_largeur-8)+';top:0;left:'+ejs_mv3_largeur+';" CLASS=ejs_mv3_styl_scroll></DIV>');
d('</DIV></DIV>');
ejs_mv3_mode = 1;
ejs_mv3_actuel = 0;
function ejs_mv3_show(menu)
{
if(menu == "menu")
{
var html = "<table border=1 cellspacing=12 cellpadding=4 bordercolorlight=#000033 bordercolordark=#9999CC bgcolor=#333366 width=100% BGCOLOR="+ejs_mv3_bgcolor+">";
for(a=0;a<ejs_mv3_menu.length;a++)
{
html += '<TR><TD>'+ejs_mv3_menu[a]+'</TD></TR>';
}
html += "</TABLE>";
document.getElementById("ejs_mv3_scroll_1").innerH TML = html;
if(ejs_mv3_mode == 2)
ejs_mv3_action(1);
}
else
{
var html = "<TABLE HEIGHT="+(ejs_mv3_hauteur-15)+" cellspacing=1 cellpadding=2 BORDER=1 bordercolorlight=#000033 bordercolordark=#9999CC bgcolor=#333366 WIDTH=100% BGCOLOR="+ejs_mv3_bgcolor+"><TR><TD HEIGHT=20 ALIGN=center CLASS=ejs_mv3_styl_scroll>"+ejs_mv3_menu[menu]+"</TD></TR><TR><TD HEIGHT="+(ejs_mv3_hauteur-55)+" VALIGN=top CLASS=ejs_mv3_styl_scroll>"+ejs_mv3_lien[menu]+"</TD></TR><TR><TD HEIGHT=20 CLASS=ejs_mv3_styl_scroll>< Indietro</TD></TR></TABLE>";
document.getElementById("ejs_mv3_scroll_2").innerH TML = html;
if(ejs_mv3_mode == 1)
ejs_mv3_action(2);
}
}
ejs_mv3_cursor = ejs_mv3_largeur;
function ejs_mv3_action(action)
{
if(action == 2)
{
if(ejs_mv3_cursor>0)
{
ejs_mv3_cursor -= 10;
document.getElementById("ejs_mv3_scroll_1").style. left = ejs_mv3_cursor-ejs_mv3_largeur;
document.getElementById("ejs_mv3_scroll_2").style. left = ejs_mv3_cursor;
setTimeout("ejs_mv3_action("+action+")",1);
ejs_mv3_mode = 2;
}
}
else
{
if(ejs_mv3_cursor<ejs_mv3_largeur)
{
ejs_mv3_cursor += 10;
document.getElementById("ejs_mv3_scroll_1").style. left = ejs_mv3_cursor-ejs_mv3_largeur;
document.getElementById("ejs_mv3_scroll_2").style. left = ejs_mv3_cursor;
setTimeout("ejs_mv3_action("+action+")",1);
ejs_mv3_mode = 1;
}
}
}
if(window.onload){
strOnload = window.onload
strOnload = strOnload.toString()
strOnload = strOnload.substr(strOnload.indexOf('{')+1,strOnloa d.lastIndexOf('}')-strOnload.indexOf('{')-1)
} else strOnload=''
window.onload=new Function(strOnload+"ejs_mv3_show('menu');")//questa parte, non mi interessa un <a hreff=.....
ho fatto un po' di prove ma senza risultato,
grazie