我在此处安装 jQuery fancybox 时收到“is null”错误
这是jQuery:
<script type="text/javascript">
$(document).ready(function() {
$("a.video").fancybox({
'zoomOpacity' : true,
'overlayShow' : false,
'zoomSpeedIn' : 500,
'zoomSpeedOut' : 500
});
});
</script>
这是html部分:
<a class="video" href="#testube"><img src="images/video.jpg" alt="Idea People Video" /></a>
<div style="display:none" id="testube">
<object width="560" height="340">
<param name="movie" value="http://www.youtube.com/v/9VUhmErOxwk&hl=en_US&fs=1&rel=0"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/9VUhmErOxwk&hl=en_US&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed>
</object>
</div>
希望能帮助我弄清楚为什么我收到错误并且没有弹出视频。
谢谢。