Flash click overlay?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Sindarin
Forum Regular
Posts: 521
Joined: Tue Sep 25, 2007 8:36 am
Location: Greece

Flash click overlay?

Post by Sindarin »

I am trying to create a method to count the clicks from a flash banner. I placed the banner in a <td> and used an onclick="href.location=http://www.mysite.com"
This works on Firefox but IE and Opera ignores it even though the flash is embedded with wmode=transparent. This site is not made with css, it uses tables so I cannot place an overlay image with a hyperlink on the flash. What else can I do?
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Flash click overlay?

Post by Jonah Bron »

Maybe link to a PHP page that counts, and then have the PHP page redirect from there?
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: Flash click overlay?

Post by kaszu »

I don't think there is anything else you could do.
This site is not made with css, it uses tables
But why can't you use css? Probably there is css used anyway to style those tables or not?
Is it technically imposible, ex. flash inserted through wysiwyg editor, where all css is removed or framework/cms limitation!?
User avatar
Sindarin
Forum Regular
Posts: 521
Joined: Tue Sep 25, 2007 8:36 am
Location: Greece

Re: Flash click overlay?

Post by Sindarin »

Maybe link to a PHP page that counts, and then have the PHP page redirect from there?
That's what I do. It works for images because <a href='myurl'><img src='banner.jpg'></a> is valid on all browsers while <a href='myurl'><object etc... ></object></a> is not working in IE and Opera while it works in Firefox. Maybe it has to do with the method IE and Opera embed the Flash ActiveX?
Is it technically imposible, ex. flash inserted through wysiwyg editor, where all css is removed or framework/cms limitation!?
Banners are selected from a list and is inserted in a field in the database.

My current workaround is to have the php script spit out a random click url which would be supplied to the advertisers so to insert it in their flash banner and send it back to us.
User avatar
php_east
Forum Contributor
Posts: 453
Joined: Sun Feb 22, 2009 1:31 pm
Location: Far Far East.

Re: Flash click overlay?

Post by php_east »

have the flash obtain the url from an xml file, and have the table td onlick event use the same xml data for the href. the onlick would be on the table td as well as the flash.
User avatar
Sindarin
Forum Regular
Posts: 521
Joined: Tue Sep 25, 2007 8:36 am
Location: Greece

Re: Flash click overlay?

Post by Sindarin »

The problem is that would defeat the purpose as the advertisers already send us their ads with their link hardcoded.
Post Reply