Jump to content

onactivate Event is not working in Firefox


suresh_nsnguys

Recommended Posts

Hi,

  i am new member to this forum. i am trying to solve this problem from past 2 days.but i can't able to acheive it.

 

  i able to capture single mouse click over flash(<Embed> object) using onactivate event handler.But it is supported by IE. i want some event in Firefox that will capture the mouse click over flash object.

  i attached my code

 

var picObj = document.createElement('EMBED');  // --Create dynamically object tag

   

picObj.setAttribute('id','aShow'); // Give id to it

     

picObj.setAttribute('TYPE' , 'application/x-shockwave-flash');

 

picObj.style.width = 100%; // width

       

picObj.style.height = 100%; // height

       

picObj.src = 01.swf; //--This is the Filename of the Flash ad.

 

// to capture onclick event for IE

 

//kiosk is the javascript function i am calling when an event accours

 

aShow.attachEvent("onactivate",kiosk);  // it is working fine

 

// For Firefox,i tried 'onfocus' also

 

document.getElementById('aShow').addEventListener("focus",kiosk,true);  // not working

 

 

can any one help me to solve my problem

 

 

 

                                                                              A.suresh

               

Hello sir,

          i am very happy to see your reply.i tried these 2 options but not working.

 

          document.getElementById('aShow').addEventListener("click",kiosk,true); // not working

 

          document.getElementById('aShow').addEventListener("mousedown",kiosk,true); // not working

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.