jquery - PrettyPhoto Not Working According to Documentation -


i followed of documentation on site, can't work.

i copied script load head, activated script before body close, , put prettyphoto hook on link.

but when click on link, nothing animates, opens full size image link pointed on it's own page.

<html>  <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <script src="js/jquery.js" type="text/javascript" charset="utf-8"></script> <link rel="stylesheet" href="css/prettyphoto.css" type="text/css" media="screen" charset="utf-8" /> <script src="js/jquery.prettyphoto.js" type="text/javascript" charset="utf-8"></script> </head>     <body>    <a href="superlow.jpg" rel="prettyphoto"> sldjflkdjsf </a>   <script type="text/javascript" charset="utf-8">   $(document).ready(function(){     $("a[rel^='prettyphoto']").prettyphoto();   }); </script>   </body> </html> 

it seems me, either scripts not found or it's perhaps encoding issue.

are sure both scripts loaded? because code works me here on safari. note: please refer browser type , version such issues.

and have document encoding mismatch between document (set charset=iso-8859-1) , scripts , css (set utf-8) cause problems. make them both utf-8.

as long both of these things sound, example should work.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -