Solved

Flash Banner Issues (2 clicks, click to activate)

Posted on 2007-11-19
4
483 Views
Last Modified: 2010-04-21
I'm having some problems with a flash banner on the URL given.  

1.) Reports of click to activate when using IE 6.0

I've seen solutions on this problem and I think I can overcome it (using document.write was given).

2.) I have to click (gives focus?) then click the banner again for it to change location to the target site.  This seems to only happen in IE 6,7 and not firefox

I'm not sure where to start on #2.  It kinda makes sense that if the "object" doesn't have focus it doesn't receive the onClick event...there must be some standard way of using flash banners as I see them all the time.

Thanks,
Dustin
<!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">

<head>

  <title>Hello!</title>

</head>

<body>

Testing flash issue with having to click twice

<script language="JavaScript" type="text/javascript">

document.write('<div id="522_1" style="display:"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"\ncodebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"\nwidth="728" height="90" id="flashbanner" align="middle"> <param name="allowScriptAccess" value="sameDomain"> <param name="movie" value="http://www.automation.com/images/commerce/bison/BisonFlash01.swf?clickTag=http://www.automation.com/BisonBanner728x90"> <param name="quality" value="high"> <embed src="http://www.automation.com/images/commerce/bison/BisonFlash01.swf?clickTag=http://www.automation.com/BisonBanner728x90" quality="high" width="728" height="90"\nname="FESTO" align="middle" allowScriptAccess="sameDomain"\ntype="application/x-shockwave-flash"\npluginspage="http://www.macromedia.com/go/getflashplayer"></object></div>');

</script>

</body>

</html>

Open in new window

0
Comment
Question by:c0l0rad0
  • 2
4 Comments
 
LVL 18

Expert Comment

by:Graphixer
Comment Utility
0
 
LVL 4

Accepted Solution

by:
DavidTMoore earned 500 total points
Comment Utility
Try swfobject for embedding your flash movies.  I use this for everything I do.  It has a lot of nice features such as custom messages for users if they need to install flash, requiring certain versions etc...

http://blog.deconcept.com/swfobject/
0
 
LVL 18

Expert Comment

by:Graphixer
Comment Utility
Good call.  Try SWFObject first.
0
 
LVL 3

Author Closing Comment

by:c0l0rad0
Comment Utility
Thanks for the help
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now