Hi all,

Has anyone used PrettyPhoto/LightBox JavaScript libraries inside the witty?

I've tried putting this code into main  template :

<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>


<script type="text/javascript" charset="utf-8">
  (document).ready(function()
   {
     ("a[rel^='prettyPhoto']").prettyPhoto();
    });
</script>



And , afterwards, (in some button onClick) to execute the following code via
   WApplication::instance()->doJavaScript(..); :

$.prettyPhoto.open('images/fullscreen/image.jpg','Title','Description');






-- 
Kind Regards,
Dushan Savich
[email protected]
http://stosha.com/
+381 64 329 33 55
Nehruova 95/51
11070 New Belgrade
Belgrade
Serbia
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to