By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,396 Members | 1,835 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,396 IT Pros & Developers. It's quick & easy.

Flash Problem

P: 18
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
    Share this Question
    Share on Google+
    3 Replies


    harshmaul
    Expert 100+
    P: 490
    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

    P: 18
    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 100+
    P: 490
    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.