Grazie a Fcaldera ho capito che se ho più chiamate le devo unificare.
Ma a queste chiamate:
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 :berto: