login  Naam:   Wachtwoord: 
Registreer je!
 Forum

Flash banner werkt niet

Offline Drieske - 06/02/2008 18:37
Avatar van DrieskeLid Hallo,

Ik voeg onderstaande code toe ana mijn html pagina maar deze werkt niet!

  1. <script type="text/javascript">
  2. AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','120','height','600','title','sky','src','http://www.it-blog.be/banners/skyscraper-dxadsl','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','http://www.it-blog.be/banners/skyscraper-dxadsl' ); //end AC code
  3. </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="120" height="600" title="sky">
  4. <param name="movie" value="http://www.it-blog.be/banners/skyscraper-dxadsl.swf" />
  5. <param name="quality" value="high" />
  6. <embed src="http://www.it-blog.be/banners/skyscraper-dxadsl.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="120" height="600"></embed>
  7. </object></noscript>

1 antwoord

Gesponsorde links
Offline GJ2086 - 06/02/2008 18:57 (laatste wijziging 06/02/2008 19:05)
Avatar van GJ2086 Nieuw lid Het lijkt mij dat de javascript functie AC_FL_RunContent(); niet of niet goed word aangeroepen, want wanneer ik de javascript uit je code haal het bestandje wel speelt.

  1. <script type="text/javascript">
  2.  
  3. //v1.0
  4. //Copyright 2006 Adobe Systems, Inc. All rights reserved.
  5. function AC_AddExtension(src, ext)
  6. {
  7. if (src.indexOf('?') != -1)
  8. return src.replace(/\?/, ext+'?');
  9. else
  10. return src + ext;
  11. }
  12.  
  13. function AC_Generateobj(objAttrs, params, embedAttrs)
  14. {
  15. var str = '<object ';
  16. for (var i in objAttrs)
  17. str += i + '="' + objAttrs[i] + '" ';
  18. str += '>';
  19. for (var i in params)
  20. str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  21. str += '<embed ';
  22. for (var i in embedAttrs)
  23. str += i + '="' + embedAttrs[i] + '" ';
  24. str += ' ></embed></object>';
  25.  
  26. document.write(str);
  27. }
  28.  
  29. function AC_FL_RunContent(){
  30. var ret =
  31. AC_GetArgs
  32. ( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
  33. , "application/x-shockwave-flash"
  34. );
  35. AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
  36. }
  37.  
  38. function AC_SW_RunContent(){
  39. var ret =
  40. AC_GetArgs
  41. ( arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
  42. , null
  43. );
  44. AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
  45. }
  46.  
  47. function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  48. var ret = new Object();
  49. ret.embedAttrs = new Object();
  50. ret.params = new Object();
  51. ret.objAttrs = new Object();
  52. for (var i=0; i < args.length; i=i+2){
  53. var currArg = args[i].toLowerCase();
  54.  
  55. switch (currArg){
  56. case "classid":
  57. break;
  58. case "pluginspage":
  59. ret.embedAttrs[args[i]] = args[i+1];
  60. break;
  61. case "src":
  62. case "movie":
  63. args[i+1] = AC_AddExtension(args[i+1], ext);
  64. ret.embedAttrs["src"] = args[i+1];
  65. ret.params[srcParamName] = args[i+1];
  66. break;
  67. case "onafterupdate":
  68. case "onbeforeupdate":
  69. case "onblur":
  70. case "oncellchange":
  71. case "onclick":
  72. case "ondblClick":
  73. case "ondrag":
  74. case "ondragend":
  75. case "ondragenter":
  76. case "ondragleave":
  77. case "ondragover":
  78. case "ondrop":
  79. case "onfinish":
  80. case "onfocus":
  81. case "onhelp":
  82. case "onmousedown":
  83. case "onmouseup":
  84. case "onmouseover":
  85. case "onmousemove":
  86. case "onmouseout":
  87. case "onkeypress":
  88. case "onkeydown":
  89. case "onkeyup":
  90. case "onload":
  91. case "onlosecapture":
  92. case "onpropertychange":
  93. case "onreadystatechange":
  94. case "onrowsdelete":
  95. case "onrowenter":
  96. case "onrowexit":
  97. case "onrowsinserted":
  98. case "onstart":
  99. case "onscroll":
  100. case "onbeforeeditfocus":
  101. case "onactivate":
  102. case "onbeforedeactivate":
  103. case "ondeactivate":
  104. case "type":
  105. case "codebase":
  106. ret.objAttrs[args[i]] = args[i+1];
  107. break;
  108. case "width":
  109. case "height":
  110. case "align":
  111. case "vspace":
  112. case "hspace":
  113. case "class":
  114. case "title":
  115. case "accesskey":
  116. case "name":
  117. case "id":
  118. case "tabindex":
  119. ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
  120. break;
  121. default:
  122. ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
  123. }
  124. }
  125. ret.objAttrs["classid"] = classid;
  126. if (mimeType) ret.embedAttrs["type"] = mimeType;
  127. return ret;
  128. }
  129.  
  130.  
  131. AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','120','height','600','title','sky','src','http://www.it-blog.be/banners/skyscraper-dxadsl','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','http://www.it-blog.be/banners/skyscraper-dxadsl' ); //end AC code
  132. </script>
  133. <noscript>
  134. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="120" height="600" title="sky">
  135. <param name="movie" value="http://www.it-blog.be/banners/skyscraper-dxadsl.swf" />
  136. <param name="quality" value="high" />
  137. <embed src="http://www.it-blog.be/banners/skyscraper-dxadsl.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="120" height="600">
  138. </embed>
  139. </object>
  140. </noscript>


Edit: code werkt nu wel.  
Gesponsorde links
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.192s