|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Registered User
Iscritto dal: Dec 2005
Messaggi: 232
|
[javascript] Domanda su "window.onload=function()"
Non riesco a capire dove sbaglio a unificare queste due chiamate:
Prima: window.onload=function(){ myHeight = new fx.Height('container', {duration: 400}); document.getElementById("loading").style.display="none"; } devo aggiungere questa: window.onload = function() { settings = { tl: { radius: 20 }, tr: { radius: 20 }, bl: { radius: 20 }, br: { radius: 20 }, antiAlias: true, autoPad: true, validTags: ["div"] } var myBoxObject = new curvyCorners(settings, "myBox"); myBoxObject.applyCornersToAll(); } Anche se la aggiungo mi da sempre errore e non mi da l'effetto desiderato. Lo imposto così io: window.onload=function(){ myHeight = new fx.Height('container', {duration: 400}); document.getElementById("loading").style.display="none"; settings = {tl: { radius: 20 }, tr: { radius: 20 }, bl: { radius: 20 },br: { radius: 20 }, antiAlias: true, autoPad: true, validTags: ["div"] } var myBoxObject = new curvyCorners(settings, "myBox"); myBoxObject.applyCornersToAll(); } Non capisco dove sbaglio |
![]() |
![]() |
![]() |
#2 |
Registered User
Iscritto dal: Dec 2005
Messaggi: 232
|
Sapete indicarmi come fare?
![]() |
![]() |
![]() |
![]() |
#3 |
Registered User
Iscritto dal: Dec 2005
Messaggi: 232
|
Vi prego...devo finirlo tra poco sigh, e non mi gira lo script!
![]() |
![]() |
![]() |
![]() |
#4 |
Member
Iscritto dal: Mar 2006
Città: Molfetta
Messaggi: 239
|
Puoi mettere la pagina completa o almeno ridotta? Se no non possiamo testarlo
![]() Ultima modifica di whiles_ : 07-03-2007 alle 16:06. |
![]() |
![]() |
![]() |
#5 | |
Registered User
Iscritto dal: Dec 2005
Messaggi: 232
|
Quote:
La prima pagina del sito è questa: http://www.masterleague.altervista.org/0708/kiki.html L'effetto che devo aggiungere è di questa pagina: http://www.masterleague.altervista.org/0708/demo.html Importo senza problemi il file in JS, ma quando definisco onload mi da problemi... |
|
![]() |
![]() |
![]() |
#6 |
Member
Iscritto dal: Mar 2006
Città: Molfetta
Messaggi: 239
|
Ma myBox l'hai attribuito a qualche elemento?
![]() Codice:
window.onload=function(){ myHeight = new fx.Height('container', {duration: 400}); document.getElementById("loading").style.display="none"; settings = {tl: { radius: 20 }, tr: { radius: 20 }, bl: { radius: 20 },br: { radius: 20 }, antiAlias: true, autoPad: true, validTags: ["div"] } var myBoxObject = new curvyCorners(settings, "myBox"); myBoxObject.applyCornersToAll(); } |
![]() |
![]() |
![]() |
#7 |
Registered User
Iscritto dal: Dec 2005
Messaggi: 232
|
Si si, se guardi il file demo.html c'è un div che si chiama MyBox.
Io dovrei portare l'effetto del file "demo" nel file "kiki". Solo che non so bene come unificare le chiamate. Se lo faccio ogni script non va più... |
![]() |
![]() |
![]() |
#8 |
Member
Iscritto dal: Mar 2006
Città: Molfetta
Messaggi: 239
|
nel file "demo", non nel file "kiki", quando hai fatto le prove sul "kiki" hai modificato in modo tale che la chiamata si riferisse ad un id esistente?
|
![]() |
![]() |
![]() |
#9 |
Registered User
Iscritto dal: Dec 2005
Messaggi: 232
|
Ho provato a fare così (ti linko la pagina) ma non va lo stesso
![]() http://www.masterleague.altervista.org/0708/kiki3.html |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 07:26.