467,907 Members | 1,419 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,907 developers. It's quick & easy.

Flash Problem

I hope I am posting this question right!! I have a website with a flash banner but the banner isnt loading.

These are the scripts and CSS I am putting in the html above the head

Expand|Select|Wrap|Line Numbers
  1.    <script src="js/AC_RunActiveContent.js" type="text/javascript"></script>
  2.     <link rel="stylesheet" type="text/css" href="css/sado.css" media="screen"/>
  3.     <script type="text/javascript">
  4.                     function loadFlash(flashWidth,flashHeight,flashName)
  5.                 {
  6.                 AC_RunActiveContent('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab
  7. #version=7,0,19,0',
  8.                                                                                                                                     'width',flashWidth,
  9.                                                                                                                                     'height',flashHeight,
  10.                                                                                                                                     'align','middle',
  11.                                                                                                                                     'src',flashName,
  12.                                                                                                                                     'quality','high',
  13.                                                                                                                                     'bgcolor','#fffff',
  14.                                                                                                                                     'name','foo',
  15.                                                                                                                                     'allowscriptaccess','always',
  16.                                                                                                                                     'wmode','transparent',
  17.                                                                                                                                     'pluginspage','http://www.macromedia.com/go/getflashplayer',
  18.                                                                                                                                     'movie',flashName);
                }
  •  
  •  
  •     </script>
  •  
  • This is the HTML where I am calling the function:

    Expand|Select|Wrap|Line Numbers
    1. <a href="default.aspx" style="border:0px;"><img style="border:0px;" src="images/logo.gif" alt="SADO CO Ltd."/></a><img src="images/spacer.gif" alt="spacer" width="10" height="140"/><script type="text/javascript" language="javascript">loadFlash(730,140,'/images/flash')</script>


    Can you please help??? Thanks
    Feb 20 '08 #1
    • viewed: 1029
    Share:
    3 Replies
    harshmaul
    Expert 256MB
    have you tried loading it with out the javascript? I mean pure html.

    Also it apears that the reference to your flash file may be wrong, i can't see an extension.

    http://validator.w3.org/docs/help.html#faq-flash
    Feb 20 '08 #2
    have you tried loading it with out the javascript? I mean pure html.

    Also it apears that the reference to your flash file may be wrong, i can't see an extension.

    http://validator.w3.org/docs/help.html#faq-flash

    Yes i tried and it worls fine. How can i solve it please?
    Feb 20 '08 #3
    harshmaul
    Expert 256MB
    Also it apears that the reference to your flash file may be wrong, i can't see an extension.

    The code you have is...

    Expand|Select|Wrap|Line Numbers
    1. LoadFlash(200,200,'images/flash')
    changes that to...

    Expand|Select|Wrap|Line Numbers
    1. LoadFlash(200,200,'path/to/flash.swf')
    NOTE: the extension
    Feb 20 '08 #4

    Post your reply

    Sign in to post your reply or Sign up for a free account.

    Similar topics

    6 posts views Thread by Gustav Medler | last post: by
    2 posts views Thread by JIM.H. | last post: by
    115 posts views Thread by post2google | last post: by
    5 posts views Thread by JJ | last post: by
    By using this site, you agree to our Privacy Policy and Terms of Use.