2019-03-29, 20:12:57
(2019-03-29, 18:29:13)Lazy-Crocodile Wrote: May anybody help me? I included a gallery, but it seems the javascript of PrettyPhoto is not called/executed.
The pictures are shown, but they link to the real photo, not to a "prettyBox"
Here ist the link to the Gallery
Regards
Markus
Try adding
Code:
$(document).ready(function(){
...
});
In your case
Code:
<script type="text/javascript">
/*! Fades out the whole page when clicking links */
$(document).ready(function(){ // add this
$('a').click(function(e) {
if(this.href !='' && !this.href.startswith('#'))
{
e.preventDefault();
newLocation = this.href;
$('body').fadeOut(1000, newpage);
}
});
function newpage() {
window.location = newLocation;
}
}); // add this
</script>