{"id":1011,"date":"2009-12-12T15:50:03","date_gmt":"2009-12-12T22:50:03","guid":{"rendered":"http:\/\/macblaze.ca\/?p=1011"},"modified":"2009-12-13T09:41:09","modified_gmt":"2009-12-13T16:41:09","slug":"shadowbox-js","status":"publish","type":"post","link":"https:\/\/macblaze.ca\/?p=1011","title":{"rendered":"Shadowbox JS"},"content":{"rendered":"<p>My investigations into <a href=\"http:\/\/jquery.com\/ \">jquery.com<\/a> have yielded <a href=\"http:\/\/www.shadowbox-js.com\/\">Shadowbox JS<\/a>.<\/p>\n<p>Let&#8217;s give it a try&#8230;<br \/>\n&#8230; &#8230;<br \/>\nWell adding the code to the header file as I did on my static site didn&#8217;t seem to work. The js kicked in but it didn&#8217;t seem to find the target image. A quick google revealed a <a href=\"http:\/\/wordpress.org\/extend\/plugins\/shadowbox-js\/\">wordpress plugin<\/a> So I&#8217;ve installed that and we&#8217;ll see if it works better&#8230;<br \/>\n&#8230; &#8230;<br \/>\n<a href=\"http:\/\/macblaze.ca\/wp-content\/uploads\/2009\/09\/DSC_8279-01\" rel=\"shadowbox\"><img src=\"\/wp-content\/uploads\/2009\/09\/DSC_8279-01-150x150.jpg\"\/><\/a><br \/>\n&#8230; &#8230;<br \/>\nThat seemed to do it. Now if I add rel=&#8221;shadowbox to the href the Shadowbox theme appears. Next is an album. Theoretically if I add rel=&#8221;shadowbox[albumname]&#8221; to a series of images they will appear as a slide show&#8230;<br \/>\n&#8230; &#8230;<br \/>\nAnd rel=&#8221;shadowbox[albumname]options={continuous:true,counterType:&#8217;skip&#8217;,slideshowDelay:3}&#8221; gives it a counter with an automatic slide show<br \/>\n&#8230; &#8230;<\/p>\n<table>\n<tr>\n<td>\n<a href=\"http:\/\/macblaze.ca\/wp-content\/uploads\/2009\/10\/P1050224.jpg\" rel=\"shadowbox[test]options={continuous:true,counterType:'skip',slideshowDelay:3}\" ><img src=\"http:\/\/macblaze.ca\/wp-content\/uploads\/2009\/10\/P1050224-150x150.jpg\" border=\"0\"\/><\/a>\n<\/td>\n<td>\n<a href=\"http:\/\/macblaze.ca\/wp-content\/uploads\/2009\/11\/P1050257.JPG\" rel=\"shadowbox[test]options={continuous:true,counterType:'skip',slideshowDelay:3}\" ><img src=\"http:\/\/macblaze.ca\/wp-content\/uploads\/2009\/11\/P1050257-150x150.jpg\" border=\"0\"\/><\/a>\n<\/td>\n<\/tr>\n<\/table>\n<p>&#8230; &#8230;<br \/>\nThe whole code looks like this (with broken code):<br \/>\n<code><\/p>\n<table width=\"250\" cellspacing=\"10\">\n<tr>\n<td>\na href=\"http:\/\/macblaze.ca\/wp-content\/uploads\/2009\/10\/P1050224.jpg\" rel=\"shadowbox[test]options={continuous:true,counterType:'skip',slideshowDelay:3}\" >img src=\"http:\/\/macblaze.ca\/wp-content\/uploads\/2009\/10\/P1050224-150x150.jpg\" border=\"0\"\/>\n<\/td>\n<td>\na href=\"http:\/\/macblaze.ca\/wp-content\/uploads\/2009\/11\/P1050257.JPG\" rel=\"shadowbox[test]options={continuous:true,counterType:'skip',slideshowDelay:3}\" >img src=\"http:\/\/macblaze.ca\/wp-content\/uploads\/2009\/11\/P1050257-150x150.jpg\" border=\"0\"\/>\n<\/td>\n<\/tr>\n<\/table>\n<p><\/code><\/p>\n<p>&#8230; &#8230; <\/p>\n<p>Apparently you can also <a href=\"http:\/\/www.unearththepossibilities.com\/\" rel=\"shadowbox\">link <\/a>to websites, which is pretty cool. <\/p>\n<p><a href=\"http:\/\/www.unearththepossibilities.com\/\" rel=\"shadowbox\"><img src=\"http:\/\/www.unearththepossibilities.com\/graphics\/projectby.jpg\" alt=\"\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>My investigations into jquery.com have yielded Shadowbox JS. Let&#8217;s give it a try&#8230; &#8230; &#8230; Well adding the code to the header file as I did on my static site didn&#8217;t seem to work. The js kicked in but it didn&#8217;t seem to find the target image. A quick google revealed a wordpress plugin So [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/1011"}],"collection":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1011"}],"version-history":[{"count":0,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/1011\/revisions"}],"wp:attachment":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}