Loading...
flash

Insérer du flash dans une page HTML, nouvelle solution

Installer du Flash sur son site est toujours problématique. Soit un navigateur n’affiche pas le Flash soit comme sur Explorer 6 il faut cliquer deux fois pour activer le Flash.

De plus les diverses méthodes ne sont pas XHTML.

Pour palier à tous ces problèmes, une solution javascript existe c’est SWFOBJECT. Le code est disponible sur le site Google ici

Et voici un exemple de code pour insérer le flash avec SWFOBJECT:

<!DOCTYPE html PUBLIC « -//W3C//DTD XHTML 1.0 Strict//EN » « http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd »>
<html xmlns= »http://www.w3.org/1999/xhtml » lang= »en » xml:lang= »en »>
<head>
<title>SWFObject dynamic embed – step 3</title>
<meta http-equiv= »Content-Type » content= »text/html; charset=iso-8859-1″ />
<script type= »text/javascript » src= »swfobject.js »></script>

<script type= »text/javascript »>
swfobject.embedSWF(« myContent.swf », « myContent », « 300 », « 120 », « 9.0.0 »);
</script>

</head>
<body>
<div id= »myContent »>
<p>Alternative content</p>
</div>
</body>
</html>

Andrea Giammarchi propose sur son site une alternative pour insérer du flash. A partir de la solution Satay il a développé un javascript trés léger seulement 999 bytes. Si l’utilisateur n’a pas javascript il verra un contenu alternatif.
Cette solution fournit donc le script javascript anyIEActiveX et deux flash flash.swf et fail.swf .
Cette solution est valide XHTML. Elle résoud les problèmes d’activation du flash avec Explorer et Opéra.

Un exemple du code :

<script type= »text/javascript » src= »anyIEActiveX.js »><!–// (C) Andrea Giammarchi //–></script>
</head>
<body>
<object type=”application/x-shockwave-flash” data=”flash.swf?v=8&swf=8.swf” width=”500? height=”300?>
<param name=”movie” value=”flash.swf?v=8&swf=8.swf” />
<p>Texte alternatif</p>
</object>
v=8 pour la version de flash minimale
swf=8.swf votre flash

30 comments
  1. golden goose

    My husband and i have been very joyful when Michael could conclude his research through your precious recommendations he came across through the site. It is now and again perplexing just to continually be offering information and facts which usually people today could have been trying to sell. We really take into account we now have the writer to appreciate for that. All the explanations you made, the straightforward blog menu, the relationships you help to instill – it’s got everything overwhelming, and it’s aiding our son and the family know that this content is enjoyable, which is certainly pretty pressing. Thanks for everything!

  2. stone island t shirt

    I want to voice my passion for your kindness giving support to folks that must have help with that study. Your very own dedication to getting the message along has been quite invaluable and has continuously made somebody just like me to attain their endeavors. Your new informative tips and hints indicates a great deal to me and substantially more to my office colleagues. Best wishes; from each one of us.

  3. golden goose sneakers

    I have to point out my appreciation for your kind-heartedness giving support to folks that require help with this important question. Your personal commitment to getting the message all-around became pretty advantageous and have consistently encouraged others much like me to attain their goals. Your entire informative guidelines can mean a great deal to me and still more to my colleagues. Regards; from everyone of us.

  4. curry 6

    I and also my friends happened to be reading through the good techniques located on the blog and then all of the sudden developed a terrible suspicion I never thanked the web blog owner for those strategies. My young men happened to be as a result passionate to study them and already have really been tapping into those things. Thanks for simply being quite accommodating and also for considering this sort of exceptional resources millions of individuals are really eager to be informed on. My personal sincere regret for not expressing appreciation to earlier.

  5. off white clothing

    I precisely had to appreciate you again. I’m not certain the things that I would’ve done without these concepts shown by you directly on such topic. It seemed to be a real challenging concern in my view, nevertheless seeing your skilled mode you managed the issue took me to cry over happiness. I’m grateful for this service and wish you really know what a powerful job you have been carrying out instructing the rest by way of your blog. I’m certain you have never encountered all of us.

  6. adidas yeezy

    I wish to convey my love for your kindness for those who have the need for help on in this area of interest. Your special dedication to getting the message all over had been wonderfully advantageous and has really empowered folks just like me to reach their aims. Your personal useful hints and tips means a whole lot a person like me and further more to my peers. With thanks; from everyone of us.

  7. supreme hoodie

    My spouse and i were now comfortable Louis managed to conclude his studies from your ideas he received in your blog. It is now and again perplexing to just possibly be giving away ideas which usually others may have been trying to sell. We take into account we now have the writer to give thanks to because of that. These explanations you made, the straightforward blog navigation, the relationships your site make it easier to instill – it’s many wonderful, and it’s making our son in addition to our family do think that article is entertaining, and that is rather important. Many thanks for all!

  8. golden goose

    I’m writing to let you be aware of what a exceptional experience my wife’s daughter experienced visiting yuor web blog. She mastered too many issues, with the inclusion of what it’s like to have a marvelous coaching mindset to have other people without difficulty gain knowledge of chosen complicated issues. You actually exceeded her expected results. Thank you for distributing those warm and friendly, trusted, revealing not to mention easy thoughts on the topic to Janet.

  9. supreme

    Needed to draft you that very little remark in order to say thank you over again considering the amazing ideas you’ve shared in this article. It is certainly tremendously open-handed of people like you to convey extensively all that many of us could possibly have made available for an e book to earn some profit on their own, chiefly now that you could possibly have tried it in the event you decided. Those concepts in addition served to be a easy way to be sure that the rest have the same desire the same as mine to grasp whole lot more around this issue. I’m certain there are some more enjoyable periods in the future for folks who look into your site.

  10. supreme clothing

    I needed to put you this very small remark to be able to thank you so much over again for these spectacular techniques you’ve discussed on this site. This has been quite pretty generous of people like you to allow freely all numerous people would have distributed as an e-book to get some money for themselves, chiefly since you might have done it in case you decided. These principles likewise acted like a fantastic way to realize that other people online have the same dream just as my very own to realize many more regarding this matter. I think there are millions of more pleasant periods in the future for individuals that find out your site.

  11. off white

    I needed to post you this tiny remark so as to thank you over again with the lovely knowledge you’ve provided above. This has been quite unbelievably open-handed with people like you to offer without restraint what numerous people could possibly have sold for an ebook in making some profit for themselves, precisely considering that you might have tried it if you considered necessary. These good ideas in addition acted to become a easy way to fully grasp someone else have the same interest like my own to figure out very much more concerning this matter. I know there are some more fun instances up front for those who look over your site.

  12. off white

    I wish to voice my appreciation for your kind-heartedness for visitors who really want assistance with this important question. Your real commitment to passing the message throughout appears to be quite practical and have continually permitted professionals much like me to reach their ambitions. The helpful useful information signifies a great deal to me and especially to my fellow workers. Warm regards; from all of us.

  13. bape

    I have to get across my respect for your kindness for people that really need help on this important content. Your very own commitment to getting the message up and down came to be amazingly advantageous and have in every case allowed employees like me to realize their aims. Your amazing informative publication denotes this much to me and substantially more to my office workers. Warm regards; from all of us.

  14. kd 12

    I precisely wanted to thank you so much once more. I am not sure the things I would have made to happen in the absence of the type of smart ideas contributed by you on this question. It seemed to be a troublesome crisis for me, however , looking at the expert approach you managed it forced me to jump for happiness. Now i am happier for this information and then believe you know what an amazing job you were putting in training some other people by way of your website. Most probably you’ve never encountered all of us.

  15. curry 7

    Needed to draft you a bit of remark in order to thank you very much again for those magnificent views you’ve shown at this time. It was simply unbelievably open-handed of you to give without restraint just what many individuals could possibly have marketed as an e-book to help with making some money for themselves, mostly considering that you could possibly have done it in case you desired. Those tips additionally acted like the easy way to be certain that other individuals have the same interest the same as my very own to see very much more when it comes to this matter. I’m certain there are several more pleasurable times in the future for many who look over your site.

  16. golden goose

    I simply wanted to thank you very much again. I do not know what I would’ve undertaken without the actual suggestions documented by you concerning such a subject. It had become the frustrating matter in my opinion, nevertheless noticing the very specialised tactic you processed the issue made me to cry over joy. I am just happy for this assistance and as well , expect you comprehend what a great job your are putting in teaching the mediocre ones through the use of your websites. Probably you’ve never got to know all of us.

  17. golden goose sneakers

    I as well as my pals were following the nice procedures from the blog then suddenly got an awful suspicion I had not expressed respect to you for them. My boys are actually consequently very interested to read through all of them and now have in actuality been loving them. Thank you for getting indeed helpful and then for obtaining such exceptional ideas millions of individuals are really eager to learn about. My honest apologies for not saying thanks to sooner.

  18. supreme shirt

    I want to voice my gratitude for your generosity supporting men and women that have the need for guidance on your concept. Your special dedication to getting the message across came to be quite good and have without exception encouraged folks just like me to realize their goals. Your invaluable guide denotes a lot a person like me and much more to my office workers. Thanks a lot; from each one of us.

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *