ciao.
ho scaricato il codice per gestire un menu a linguette
Il problema e' ....che nel codice e' gia gestito l'evento onload e non mi permette nella pagina di gestirlo da me.
per capirci....questa funzione e' quella dello script scaricato e viene eseguita in automatico
Codice PHP:
function tabberAutomaticOnLoad(tabberArgs)
{
/* This function adds tabberAutomatic to the window.onload event,
so it will run after the document has finished loading.
*/
var oldOnLoad;
if (!tabberArgs) { tabberArgs = {}; }
/* Taken from: [url]http://simon.incutio.com/archive/2004/05/26/addLoadEvent[/url] */
oldOnLoad = window.onload;
if (typeof window.onload != 'function') {
window.onload = function() {
tabberAutomatic(tabberArgs);
}
}
}
a questo punto se nella mia pagina includo questo codice non posso piu scrivere
Codice PHP:
window.onload=function(){
mia_funzione();
}
la cosa funziona se mia_funzione(); la chiamo nel loro script cosi
Codice PHP:
function tabberAutomaticOnLoad(tabberArgs)
{
/* This function adds tabberAutomatic to the window.onload event,
so it will run after the document has finished loading.
*/
var oldOnLoad;
if (!tabberArgs) { tabberArgs = {}; }
/* Taken from: [url]http://simon.incutio.com/archive/2004/05/26/addLoadEvent[/url] */
oldOnLoad = window.onload;
if (typeof window.onload != 'function') {
window.onload = function() {
tabberAutomatic(tabberArgs);
mia_funzione();
}
}
}
problema e' che devo chiamare anche altre funzioni a seconda della pagina in cui uso il menu a linguette...
vorrei quindi tornare ad avere l'evento onload su ogni pagina