Link to home
Start Free TrialLog in
Avatar of phpretard
phpretard

asked on

How can I get rid of the "Click to activate" and have the page load?

I know of many ways to get rid of the click to activate control but it seems that each one will cause the page to continuously load or never stop loading.  Why Why WHy?

What is the best methpd for getting rid of the Click to activate?

Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Hi phpretard,

You need to use a javascript function to generate the embed tags dynamically.  One of the best ones is SWFObject:

http://code.google.com/p/swfobject/
Avatar of phpretard
phpretard

ASKER

I have no idea where to put my content e=within these params.

MY CONTENT:
<object classid='clsid:D27CDB6E-AE6D-11CF-96B8-444553540000' id='obj1' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0' border='0' width='262' height='130'>
      <param name='movie' value='flash/texas_flag.swf'>
      <param name='quality' value='High'>
      <param name='wmode' value='transparent'>
      <embed src='flash/texas_flag.swf' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' name='obj1' width='262' height='130' quality='High' wmode='transparent'>
</object>
<!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 - 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.registerObject("myId", "9.0.0", "expressInstall.swf");    </script>  </head>  <body>    <div>      <object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="420">        <param name="movie" value="myContent.swf" />        <!--[if !IE]>-->        <object type="application/x-shockwave-flash" data="myContent.swf" width="780" height="420">        <!--<![endif]-->          <p>Alternative content</p>        <!--[if !IE]>-->        </object>        <!--<![endif]-->      </object>    </div>  </body></html>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of SheharyaarSaahil
SheharyaarSaahil
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Did I close the question and assign points?
yeps....did it solve your issue?
You da one!