Bonjour.
Je chercher à appeler un SWF suite à un Konami Code. Le problème c'est qu'il me charge la page et j'aimerais qu'il me charge ça dans ma shadowbox.
Le code :
if ( window.addEventListener ) {
var state1 = 0, konami = [38,38,40,40,37,39,37,39,66,65];
var state2 = 0, google = [71,79,79,71,76,69];
window.addEventListener("keydown", function(e) {
if ( e.keyCode == konami[state1] ) state1++;
else state1 = 0;
if ( e.keyCode == google[state2] ) state2++;
else state2 = 0;
if ( state1 == 10 )
window.location = "http://le-pixel.com/wp-content/swf/dealwithit.swf
";
if ( state2 == 6 )
window.location = "http://www.google.com/";
}, true);
}
Merci. 