The object doesn't support... on IE
Hello,
I'm creating and adapting a basic script that will display thumbnails of selected videos from YouTube (I'm using this plugin).
- $(document).ready(function() {
- url = $('.videoDiv p:first').text();
- var vd = $.jYoutube(url); /* return the thumbnail URL */
- $('.videoDiv').append('<a href="'+ url +'"><img src="background.png" id="img"/></a>');
- $('#img').css('background', 'url('+ vd +')');
-
});
The problem is that the line 03 return on IE: Object doesn't support this property or method.
Previously, I had one with event.PreventDefault problem, but I solved that with this tip.
In this case, what should I do?