prettyPhoto script not called no matter what
I was trying to add popup 开发者_C百科helpers on my page using prettyPhoto ( link ) - link to my page ( link2 ). So I've included what needed, copied some code from the demo and unfortunately nothing happens. Script is in no way executed. I've tried removing all other imports but still nothing. What can be other causes to prevent script from running/loading properly?
Check this page which explains how to set it up:
- http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/documentation/
You have several problems. First is that you haven't called the code that you use to start the library:
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto();
});
</script>
Second is that you are putting [inline] in your rel where you dont need to:
rel="prettyPhoto[inline]"
should just be
rel="prettyPhoto"
精彩评论