我正在尝试申请lightbox
我的div
.
我有 jquery 文件并lightbox.js
加载但仍然得到 Object has no methodlightBox
错误消息。我想知道是否有人可以帮助我解决这个问题。非常感谢!
<link rel="stylesheet" href="css/basic/basic.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="css/basic/jquery.lightbox-0.5.css" type="text/css" media="screen"/>
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js'></script>
<scirpt type="text/javascript" src="js/jquery.lightbox-0.5.js"></script>
<script type='text/javascript'>
$(document).ready(function(){
$('#image img').lightBox();
})
</script>
<div id='image'>
/**/these images are generated from ajax call. not sure if it's relevant.**
<img src='a.jpg'/>
<img src='b.jpg'/>
<img src='c.jpg'/>
</div>