Ho un problema con questo menu nel senso che non riesco ad abbinare al pulsante l'evento "geturl..."
Vi posto il codice e vediamo se riesco a risolvere:
questo il codice delle azioni :
// stops the movie so that the roll over button moves the user to frame 2
stop();
// sets the x position for the menu to stop at and go back to
goto = 30;
backto = -110;
function bounce(please) {
// sets the swing properties
if (please == "right") {
go += (goto-button1._x);
go *= .09;
}
if (please == "left") {
go -= (backto-button1._x);
go *= .09;
}
return go;
}
function move() {
// sets the x position for the mouse to activate the menu movement
if (_xmouse<=20) {
button1._x = button1._x+bounce("right");
}
if (_xmouse>=110) {
button1._x = button1._x-bounce("left");
}
}
// sets the speed - don't set it too slow
setInterval(move, 5);
------------------------------------------------------
questo il codice relativo al primo pulsante:
onClipEvent (mousedown) {
getURL("indexflash.htm");
}
questo il codice relativo al secondo pulsante:
onClipEvent (enterFrame) {
_x = _root.button1._x
}
questo il codice relativo al terzo pulsante:
onClipEvent (enterFrame) {
_x = _root.button2._x
}
e così via...
ho provato ad aggiungere al secondo pulsante la riga
onClipEvent (enterFrame) {
_x = _root.button1._x
}
onClipEvent (mousedown) {
getURL("prodotti.htm");
però mi apriva due pagine, prodotti.htm e indexflas.htm (che era il primo pulsante)
------------------
e mi succede anche che la pagina stessa è diventata un pulsante
che richiama le pagine elencate sopra...
Grazie e saluti Francesco

Rispondi quotando
