Auteur : : allonzo
Pays : Israel
Date : samedi 8 juin 2013, 14:21
Commentaire :

Is it possible to use this on an iframe that displays viedoa in order to change the click so instead of starting the video it will pop up a modal/lightbox?



I added the plugin code and then:




jQuery(document).ready(function($){
// Other iframes (wrapped with .iframetrack)
$('.iframetrack iframe').iframeTracker({
blurCallback: function(){
alert('test1');
},
overCallback: function(element){
this._overId = $(element).parents('.iframetrack').attr('id'); // Saving the iframe wrapper id
alert('test2');
},
outCallback: function(element){
this._overId = null; // Reset hover iframe wrapper id
},
_overId: null
});
});


But nothing happens. The video still plays and the alert from my test does not display.



I imagine to stop the video from playing that more needs to be done but at least to get the alert to display to know I am on the right track.

Of course I wrapped the iframe with the iframeTracker class.



Thanks!
Facebook Twitter RSS Email
Forum Excel
Venez découvrir le nouveau forum excel question/réponse à la stackoverflow.com !
Forum Excel
hit parade n'en a rien a foutre du W3C Positionnement et Statistiques Gratuites Vincent Paré