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

               

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.