ciao! ho scaricato un menù dai move di questo sito, e favoloso, sono riuscita a modificarlo secondo le mie esigenze ed è tutto ok!
ora volevo sapere se era possibile fare in modo che quando clicco sulla pag1.html del titolo2, quando si apre questa pagina il menù dovrebbe essere aperto e non presentarsi totalmente chiuso!!
non sono stata sicuramente chiara ma spero che qualcuno mi aiuti...
ciao e grazie.....
il link di questo menù: http://flash-mx.html.it/movies/view_movie.asp?id=417
titles = new Array();
titles = ['titolo1','titolo2','titolo3'];
elements = new Array();
elements = [['titolo1|pag1.html'], ['titolo2|pag1.html'], ['titolo3|pag1.html']];
// ----------------------------
// Functions
// ----------------------------
function Create() {
i = 0;
for (d=0; d<fixelements.length; d++) {
_root['el'+d]._y = 5+d*20;
_root['el'+d].desty = 5+d*20;
mytxt = new String(fixelements[d]);
mytxt = mytxt.split('|');
_root['el'+d].txt.text = mytxt[0];
_root['el'+d].link = mytxt[1];
last = 5+(d+1)*20;
i++;
}
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)*20);
_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);
}
}
}
_root.onEnterFrame = function() {
if (getBytesLoaded() == getBytesTotal()) {
_root.onEnterFrame = undefined;
nextFrame();
}
};
duplicateMovieClip(el, 'el'+d, i);