Ho provato lo script chemi hai suggerito:
Però non funziona, come mai?codice:<html> <head> <script> $("html").click(function(){ $("html").animate({ opacity: 0}, 1000, function(){ $.get("Home.html",function(data){ $("body").html(data); }); $("html").css({backgroundImage:"none"}) $("html").animate({opacity:1 }, 1000); }); }); </script> <style> * { margin: 0; padding: 0; } html { background: url(images/Home.png) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } #page-wrap { width: 400px; margin: 50px auto; padding: 20px; background: white; -moz-box-shadow: 0 0 20px black; -webkit-box-shadow: 0 0 20px black; box-shadow: 0 0 20px black; } p { font: 15px/2 Georgia, Serif; margin: 0 0 30px 0; text-indent: 40px; } </style> </head> <body> </body> </html>
Sembra che vanno in contrasto!

Rispondi quotando