Inserer animaton swf a partir de fichier js
Résolu
marcelin3012
Messages postés
87
Date d'inscription
Statut
Membre
Dernière intervention
-
pijaku Messages postés 12263 Date d'inscription Statut Modérateur Dernière intervention -
pijaku Messages postés 12263 Date d'inscription Statut Modérateur Dernière intervention -
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]-->');
}
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:
- Inserer animaton swf a partir de fichier js
- Fichier bin - Guide
- Swf - Télécharger - Lecture
- Fichier epub - Guide
- Fichier rar - Guide
- Comment réduire la taille d'un fichier - Guide
3 réponses
merci, ca marche maintenant
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
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