Di seguito ho riportato uno script che fa parte di un menu, ma vorrei, se possibile che le pagine si aprissero come pop up. Ho provato in tutti i modi, ma non ci riesco.![]()
C'è qualcuno che mi sa dire che script inserire e dove?
Grazie
// ----------------------------
// sliding MENU
// by gurfm@libero.it
// ----------------------------
// Defining Menu Items
// ----------------------------
titles = new Array();
titles = ['Profilo', 'Referenze', 'Sede', 'Servizi', 'Prodotti', 'Contatti'];
elements = new Array();
elements = [['Azienda|azienda.html'],['Certificazione ISO 9002|link.htm', 'Attestazione SOA|attestazione_soa.html', 'Principali Clienti|principali_clienti.html', 'Lavori realizzati|lavori_realizzati.pdf'], ['Dove siamo|dove_siamo.html'], ['Assistenza tecnica|link.htm', 'Preventivi gratuiti|link.htm', 'Certificazione|link.htm', 'Forniture installatori|link.htm'],['Civili|link.htm', 'Industriali|link.htm'],['Richiesta info|link.htm', 'Richiesta preventivo|link.htm', 'Richiesta assistenza|link.htm']];
// ----------------------------
// Functions
// ----------------------------
function Create() {
i = 0;
for (a=0; a<titles.length; a++) {
for (b=0; b<elements[a].length; b++) {
duplicateMovieClip(el, 'el'+a+b, i);
_root['el'+a+b]._y = last+a*20;
_root['el'+a+b].desty = last+a*20;
mytxt = new String(elements[a][b]);
mytxt = mytxt.split('|');
_root['el'+a+b].txt.text = mytxt[0];
_root['el'+a+b].link = mytxt[1];
i++;
}
}
for (c=0; c<titles.length; c++) {
duplicateMovieClip(tl, 'tl'+c, i);
_root['tl'+c]._y = last+c*20;
_root['tl'+c].desty = last+c*20;
_root['tl'+c].txt.text = titles[c];
_root['tl'+c].num = c;
_root['tl'+c].open = false;
i++;
}
}
function Open(a) {
_root['tl'+a].open = true;
for (b=0; b<elements[a].length; b++) {
lasty = _root['el'+a+b].desty+((b+1)*15);
_root['el'+a+b].desty = lasty;
}
i = 1;
for (c=a+1; c<elements.length; c++) {
pos = lasty+(i*20);
_root['tl'+c].desty = pos;
for (d=0; d<elements[c].length; d++) {
_root['el'+c+d].desty = pos;
}
i++;
}
}
function Close(a) {
_root['tl'+a].open = false;
for (b=0; b<elements[a].length; b++) {
lasty = _root['tl'+a]._y;
_root['el'+a+b].desty = lasty;
}
i = 1;
for (c=a+1; c<elements.length; c++) {
pos = lasty+(i*20);
_root['tl'+c].desty = pos;
for (d=0; d<elements[c].length; d++) {
_root['el'+c+d].desty = pos;
}
i++;
}
}
function CloseOpened() {
for (a=0; a<titles.length; a++) {
if (_root['tl'+a].open) {
_root.Close(_root['tl'+a].num);
}
}
}
// ----------------------------
// Preloader
// ----------------------------
_root.onEnterFrame = function() {
if (getBytesLoaded() == getBytesTotal()) {
_root.onEnterFrame = undefined;
nextFrame();
}
};