Inserer animaton swf a partir de fichier js

Résolu/Fermé
marcelin3012 Messages postés 87 Date d'inscription vendredi 5 novembre 2010 Statut Membre Dernière intervention 21 avril 2011 - Modifié par marcelin3012 le 9/03/2011 à 11:25
pijaku Messages postés 12263 Date d'inscription jeudi 15 mai 2008 Statut Modérateur Dernière intervention 4 janvier 2024 - 9 mars 2011 à 16:43
Bonjour, j'aimerai insérer une animation swf dans un document .js mais je n'y arrive pas. le but de mon message est de remplacer cette ligne src="images/x(1).gif" par une animation. pouvez vous m'aider? merci

var now = new Date();
var habillageImage = '';
var habillageLien = '';
var habillageColor = '';

if( now.getTime() > new Date("March 01 2011 00:00:00") && now.getTime() < new Date("March 31 2011 00:00:00") ) {
var habillageImage = 'background/bkgnd_.jpg';
var habillageLien = 'http://www.google.fr/';
var habillageColor = '#ffcc00';
document.write('<div id="header"><a href="' + habillageLien + '" target="_blank"><img alt="' + habillageLien + '" border="0" height="120" width="100%" src="images/x(1).gif" /></a></div>');
document.write('<style type="text/css"> <!-- .fullbox, .box { border-color:' + habillageColor + ' #CCCCCC #CCCCCC; } body { background:url("' + habillageImage + '") no-repeat fixed center top #FFFFFF; } #header { background:url("' + habillageImage + '") no-repeat scroll center top transparent; overflow:hidden; position:fixed; top:0; z-index:99; width:100%; text-align:center; margin:auto; } #header a { text-align:center; margin:auto; } #header a img { text-align:center; margin:auto; } #container { padding-top:130px; } --> </style><!--[if lte IE 6]><style type="text/css"> <!-- #container { padding-top:0; } --> </style><![endif]-->');
}


A voir également:

3 réponses

marcelin3012 Messages postés 87 Date d'inscription vendredi 5 novembre 2010 Statut Membre Dernière intervention 21 avril 2011 1
9 mars 2011 à 15:57
personne pour m'aider sur ce forum?
0
pijaku Messages postés 12263 Date d'inscription jeudi 15 mai 2008 Statut Modérateur Dernière intervention 4 janvier 2024 2 744
9 mars 2011 à 16:03
Bonjour,
Personne pour m'aider?
Sisi : ici
0
marcelin3012 Messages postés 87 Date d'inscription vendredi 5 novembre 2010 Statut Membre Dernière intervention 21 avril 2011 1
9 mars 2011 à 16:37
merci, ca marche maintenant
0
pijaku Messages postés 12263 Date d'inscription jeudi 15 mai 2008 Statut Modérateur Dernière intervention 4 janvier 2024 2 744
9 mars 2011 à 16:43
En fait, le manque de réponse à ta question était essentiellement due à ton titre... Tu demandais de l'aide pour du javascript ET du flash. Vachement pointu! Les membres lisent d'abord ton titre, et s'ils pensent pouvoir répondre, vont lire ta demande. Là, il te fallait un super spécialiste...
Je te précise que je n'ai ouvert ton sujet que par hasard, en cherchant autre chose...
Au fait, tu n'as pas vu ma tondeuse?
Bonne fin de journée
0