{"id":1758,"date":"2010-11-15T10:24:58","date_gmt":"2010-11-15T10:24:58","guid":{"rendered":"http:\/\/mts-help.nick.php.dev\/after_sale_support\/jquery\/misc\/article5.html"},"modified":"2020-01-29T08:02:15","modified_gmt":"2020-01-29T13:02:15","slug":"prettyphoto-plug-in","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/prettyphoto-plug-in.html","title":{"rendered":"&#8220;prettyPhoto&#8221; plug-in"},"content":{"rendered":"This script allows you to add videoclips to your site using <a href=\"http:\/\/www.no-margin-for-errors.com\/projects\/prettyphoto-jquery-lightbox-clone\/\" class=\"link3\">prettyPhoto<\/a> plug-in. <br \/> <br \/> <span style=\"font-weight: bold;\">JavaScript<\/span> <br \/>In order to make the script work, the <span style=\"font-weight: bold;\">index-#.html<\/span> file with a video should contain these lines of HTML code in order to include the <span style=\"font-weight: bold;\">jquery.prettyPhoto.js<\/span> script and the jQuery framework: <p> <br \/> <\/p> <p>The <span style=\"font-weight: bold;\">&lt;head&gt;<\/span> section of the <span style=\"font-weight: bold;\">index-#.html<\/span> (or the section just before the closing <span style=\"font-weight: bold;\">&lt;\/body&gt;<\/span> tag) file contains these lines of code that initialize the script functionality with basic values: <br \/><\/p> <p> <br \/> <\/p> <p> <span style=\"font-weight: bold;\">HTML<\/span> <br \/>Below you can see the general HTML script representation: <br \/><\/p> <p> <br \/> <\/p> <p>Here we set up the video player file name <span style=\"font-weight: bold;\">video_AS3.swf<\/span> and the video <span style=\"font-weight: bold;\">width<\/span> and <span style=\"font-weight: bold;\">height<\/span> parameters, video file name (<span style=\"font-weight: bold;\">fileVideo<\/span>) and video description (<span style=\"font-weight: bold;\">title<\/span>). Pay attention: parameter <span style=\"font-weight: bold;\">rel=&#8221;prettyPhoto&#8221;<\/span> is mandatory.<\/p> <p> <span style=\"font-weight: bold;\">CSS<\/span> <br \/>In order to make the script work, the <span style=\"font-weight: bold;\">index-#.html<\/span> file with a slider should contain these lines of HTML code in order to include the <span style=\"font-weight: bold;\">prettyPhoto.css<\/span> style sheet file: <br \/><\/p> <p> <br \/> <\/p>","protected":false},"excerpt":{"rendered":"<p>This script allows you to add videoclips to your site using prettyPhoto plug-in. JavaScript In order to make the script work, the index-#.html file with a video should contain these lines of HTML code in order to include the jquery.prettyPhoto.js script and the jQuery framework: The &lt;head&gt; section of the index-#.html (or the section just [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[264],"tags":[813],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1758"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=1758"}],"version-history":[{"count":5,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1758\/revisions"}],"predecessor-version":[{"id":85807,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1758\/revisions\/85807"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=1758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=1758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=1758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}