{"id":80,"date":"2016-01-11T19:10:58","date_gmt":"2016-01-11T19:10:58","guid":{"rendered":"http:\/\/mansavageproductions.com\/websitesvideos\/?p=80"},"modified":"2016-01-11T19:31:34","modified_gmt":"2016-01-11T19:31:34","slug":"javascript-code-for-slideshow","status":"publish","type":"post","link":"http:\/\/mansavageproductions.com\/websitesvideos\/2016\/01\/11\/javascript-code-for-slideshow\/","title":{"rendered":"JavaScript Code For Slideshow"},"content":{"rendered":"<div>\n<div>&lt;p class=&#8221;textcenter&#8221;&gt; &lt;script language=&#8221;JavaScript&#8221;&gt;<br \/>\nvar i = 0;<br \/>\nvar path = new Array();\/\/ LIST OF IMAGES<br \/>\npath[0] = &#8220;\/bodywork\/syclonebackside.jpg&#8221;;<br \/>\npath[1] = &#8220;\/bodywork\/syclonefrontside.jpg&#8221;;<br \/>\npath[2] = &#8220;\/bodywork\/sycloneside.jpg&#8221;;<br \/>\npath[3] = &#8220;\/bodywork\/paintautobody.jpg&#8221;;<\/p>\n<\/div>\n<div><\/div>\n<div>function swapImage()<br \/>\n{<br \/>\ndocument.slide.src = path[i];<br \/>\nif(i &lt; path.length &#8211; 1) i++; else i = 0;<br \/>\nsetTimeout(&#8220;swapImage()&#8221;,3000);<br \/>\n}<br \/>\nwindow.onload=swapImage;<br \/>\n&lt;\/script&gt;<br \/>\n&lt;img height=&#8221;271&#8243; name=&#8221;slide&#8221; src=&#8221;\/bodywork\/syclonebackside.jpg&#8221; width=&#8221;320&#8243; \/&gt;&lt;br&gt;&lt;\/p&gt;<\/div>\n<div><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>&lt;p class=&#8221;textcenter&#8221;&gt; &lt;script language=&#8221;JavaScript&#8221;&gt; var i = 0; var path = new Array();\/\/ LIST OF IMAGES path[0] = &#8220;\/bodywork\/syclonebackside.jpg&#8221;; path[1] = &#8220;\/bodywork\/syclonefrontside.jpg&#8221;; path[2] = &#8220;\/bodywork\/sycloneside.jpg&#8221;; path[3] = &#8220;\/bodywork\/paintautobody.jpg&#8221;; function swapImage() { document.slide.src = path[i]; if(i &lt; path.length &#8211; 1) i++; else i = 0; setTimeout(&#8220;swapImage()&#8221;,3000); } window.onload=swapImage; &lt;\/script&gt; &lt;img height=&#8221;271&#8243; name=&#8221;slide&#8221; src=&#8221;\/bodywork\/syclonebackside.jpg&#8221; width=&#8221;320&#8243; \/&gt;&lt;br&gt;&lt;\/p&gt;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-80","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/mansavageproductions.com\/websitesvideos\/wp-json\/wp\/v2\/posts\/80","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/mansavageproductions.com\/websitesvideos\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mansavageproductions.com\/websitesvideos\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mansavageproductions.com\/websitesvideos\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/mansavageproductions.com\/websitesvideos\/wp-json\/wp\/v2\/comments?post=80"}],"version-history":[{"count":4,"href":"http:\/\/mansavageproductions.com\/websitesvideos\/wp-json\/wp\/v2\/posts\/80\/revisions"}],"predecessor-version":[{"id":84,"href":"http:\/\/mansavageproductions.com\/websitesvideos\/wp-json\/wp\/v2\/posts\/80\/revisions\/84"}],"wp:attachment":[{"href":"http:\/\/mansavageproductions.com\/websitesvideos\/wp-json\/wp\/v2\/media?parent=80"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mansavageproductions.com\/websitesvideos\/wp-json\/wp\/v2\/categories?post=80"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mansavageproductions.com\/websitesvideos\/wp-json\/wp\/v2\/tags?post=80"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}