{"id":4341,"date":"2015-06-10T06:03:43","date_gmt":"2015-06-10T06:03:43","guid":{"rendered":"http:\/\/a1webdesignteam.com\/blog\/?p=4341"},"modified":"2015-06-10T06:03:43","modified_gmt":"2015-06-10T06:03:43","slug":"simple-image-scroller-in-jquery","status":"publish","type":"post","link":"https:\/\/a1webdesignteam.com\/blog\/simple-image-scroller-in-jquery\/","title":{"rendered":"Simple Image Scroller in JQuery"},"content":{"rendered":"<p><b>Steps to develop the program<\/b><\/p>\n<p><b>Step 1:<\/b><\/p>\n<p>Create a new file (simple_carousel.html) and add the following code into<\/p>\n<table border=\"1\" width=\"540\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#FFFFCC\">\n<tbody>\n<tr>\n<td width=\"560\" height=\"500\">\n<pre>&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\"\r\n  \"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\"&gt;\r\n&lt;html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" xml:lang=\"en-us\"&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;jCarousel Examples&lt;\/title&gt;\r\n&lt;link href=\"..\/style.css\" rel=\"stylesheet\" type=\"text\/css\" \/&gt;\r\n&lt;script type=\"text\/javascript\" src=\"script\/jquery-1.2.3.pack.js\"&gt;\r\n&lt;\/script&gt;\r\n&lt;script type=\"text\/javascript\" \r\nsrc=\"script\/jquery.jcarousel.pack.js\"&gt;\r\n&lt;\/script&gt;\r\n&lt;link rel=\"stylesheet\" type=\"text\/css\" \r\nhref=\"style\/jquery.jcarousel.css\"\/&gt;\r\n&lt;link rel=\"stylesheet\" type=\"text\/css\" \r\nhref=\"style\/skin.css\" \/&gt;\r\n\r\n&lt;script type=\"text\/javascript\"&gt;\r\n\r\njQuery(document).ready(function() {\r\n    jQuery('#mycarousel').jcarousel({\r\n        \r\n    });\r\n});\r\n\r\n&lt;\/script&gt;\r\n\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;div id=\"wrap\"&gt;\r\n&lt;ul id=\"mycarousel\" class=\"jcarousel-skin-tango\"&gt;\r\n&lt;li&gt;&lt;img src=\"images\/w1.gif\" width=\"75\" height=\"75\" alt=\"i1\" \/&gt;\r\n&lt;\/li&gt;\r\n&lt;li&gt;&lt;img src=\"images\/w2.gif\" width=\"75\" height=\"75\" alt=\"i2\" \/&gt;\r\n&lt;\/li&gt;\r\n&lt;li&gt;&lt;img src=\"images\/w3.gif\" width=\"75\" height=\"75\" alt=\"i3\" \/&gt;\r\n&lt;\/li&gt;\r\n&lt;li&gt;&lt;img src=\"images\/w4.gif\" width=\"75\" height=\"75\" alt=\"i4\" \/&gt;\r\n&lt;\/li&gt;\r\n&lt;\/ul&gt;\r\n&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><b>Program explanation:<\/b><\/p>\n<p>The following code includes the jQuery JavaScript library file:<\/p>\n<table border=\"1\" width=\"478\" cellspacing=\"1\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td width=\"470\">&lt;script type=&#8221;text\/javascript&#8221; src=&#8221;script\/jquery-1.2.3.pack.js&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;script type=&#8221;text\/javascript&#8221; src=&#8221;script\/jquery.jcarousel.pack.js&#8221;&gt;&lt;\/script&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>Function is called<\/p>\n<table border=\"1\" width=\"208\" cellspacing=\"1\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td width=\"200\">jQuery(&#8216;#mycarousel&#8217;).jcarousel(<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>When you run the program in browser it will look like following screen shot:<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/www.roseindia.net\/ajax\/jquery\/images\/simpleImageScroll.gif\" alt=\"\" width=\"333\" height=\"116\" border=\"1\" \/><\/p>\n<p><a href=\"http:\/\/www.roseindia.net\/ajax\/jquery\/simple_carousel.html\" target=\"_blank\"><b>Check online demo of the application<\/b><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Steps to develop the program Step 1: Create a new file (simple_carousel.html) and add the following code into &lt;!DOCTYPE html PUBLIC &#8220;-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN&#8221; &#8220;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd&#8221;&gt; &lt;html xmlns=&#8221;http:\/\/www.w3.org\/1999\/xhtml&#8221; xml:lang=&#8221;en-us&#8221;&gt; &lt;head&gt; &lt;title&gt;jCarousel Examples&lt;\/title&gt; &lt;link href=&#8221;..\/style.css&#8221; rel=&#8221;stylesheet&#8221; type=&#8221;text\/css&#8221; \/&gt; &lt;script type=&#8221;text\/javascript&#8221; src=&#8221;script\/jquery-1.2.3.pack.js&#8221;&gt; &lt;\/script&gt; &lt;script type=&#8221;text\/javascript&#8221; src=&#8221;script\/jquery.jcarousel.pack.js&#8221;&gt; &lt;\/script&gt; &lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text\/css&#8221; href=&#8221;style\/jquery.jcarousel.css&#8221;\/&gt; &lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text\/css&#8221; href=&#8221;style\/skin.css&#8221; \/&gt; &lt;script [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4342,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0},"categories":[6],"tags":[51],"_links":{"self":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts\/4341"}],"collection":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/comments?post=4341"}],"version-history":[{"count":0,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts\/4341\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/media\/4342"}],"wp:attachment":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/media?parent=4341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/categories?post=4341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/tags?post=4341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}