Hi dear visitors I will tell how to make professional Marquee Slider like jQuery. In this Widget, I used simple JavaScript as well as Marquee tag to implement this. You have seen this widget in Many blog or website to show their clients at the bottom of page. Now this time you can also develop your own Slider with simple Steps. Here I am showing you three different format of this slider. One for Text just like a Floating News Widget and other for Image with Pause, Start and Stop buttons. Keep looking bloggingtrainings.blogspot.com So Lets starts with this tutorial.
<script type="text/javascript" src="http://probloggingtools.googlecode.com/files/marquee_slider.js"></script>
Code of This Text Slider
Code of this Image Slider
Code of this Slider
How to Make this Slider.
Here I am explaining step by steps to add this widget in your blog. For any type of slider you have to include this JavaScript File in your blog before </head> tag.Type 1 Slider [Text]
Code of This Text Slider
<div class="slider_text" id="marquee0">I this text slider, whenever user hover the text, it pause the slider.
This is a leading website about blogging tools, tips , Widget and template Customization. I hope you are happy with blog posts and tutorials.
</div>
<script type="text/javascript">
marqueeInit({
uniqueid: 'marquee0',
style: { //style object for this marquee container (use quotes on both sides of the : as shown)
'width': '100%',
'height': '1.6em',
'color': '#fff',
'background-color': '#32f',
'font-family': 'sans-serif',
'margin': '0 auto'},
inc:1, //speed - of marquee slider.
});
</script>
Type 2 Image Slider [onMouse Pause]
Code of this Image Slider
<div class="marquee_slider" id="marquee1">Change the Image links with yours. It is same as Text slider.
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnCkBA68QbZcoA9PqZS1LGjDXNkWTaObsAu0hFNL95LNT21bkyR5MivBZTNoRzBaFy5GEVhebrQerT-Luk3D6w1ekpmyxnIuegu86dSAA59kHQS7DG9MbzQkLoqDTurxJ9XrXSsCbY1GnE/s1600/CMCltdlogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtMeeBtjvwHrG0wNs1IZyQLhyphenhyphennNiNAGibGRjPxMvPnUMS0t_Ygwwe7zmICfStSvR53-fhsNh7NU-YyTPIJG8CJy7V2w5XQwub-0Z_Px28_8Xv5qqv4-XLvZxEMgUf0mi9iqAkjJ9m836Tw/s1600/YesBanklogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxBAluV7elh8p6FSgRX7oih6H5xFJAgzmW0s_E-fkwgQ7ZOPqswdK9ETy9HGZI3qiGx-2ieh9Njgk12kg8pU1f539C-8cJ5J8ZdGO1e2VOIrBeEZPPAMrR6UO7KlLkyQ6hMEzom7GzZrGi/s1600/accenturelogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwHyp6ALIa87yC20EYRp2wIKd8ncvSHvG6cOJMbhFO_QSmrGXLx-Jfz5IsYXOjzeh2xtx0wmhUYhp3WnJ1UyoXnJ-6_k5PlgyjG0FAQZlUH8lbgzPevVybN8Ng5zhoKY244K2BaaonP_xT/s1600/aonhewittlogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIGHvKt7AFEdPoSHnEwhKtbRShJV41WpS46FBv6li0TkYX4B0Hr2_AvofxGe7zMd6qlhOPxwd1dOgBknLaoyCNII841z2UO4hUtFECCc2roymrbXamWqBcz4YVvgJrkQa_Zg1AYFSUEvDY/s1600/birlasoftlogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi81E6z8dYeHvl6wbXglXlUN111KQg7tjHAkcOkx6mD1fFJBtKS_pPPPfWJQK34GU91ohP4NFzw6_p0W_uysz_qP-h48SME5koE_ZR-tJC0rahIeoAYWGdEgBXA6KA39DQPsPgPLZOCg60Y/s1600/cognizantlogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj14SbuXIVXA1rUB_Ij8i6QLCZxA8CRG9-URVSyEijwtggPoT6qG-Tmv4HybWNkGkNEVlNiXh0Ec_lrehwCjbaPkPjWci3LWmPaEqFqmVqnZnKL_tPy5W5NJbfG6l6N2iJRiGXUNCbBANjQ/s1600/hcl_partner_logo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-8Fuw4QoBEsqSpSJ_0ZO53DPph60YCsVa5XmmejdEbthPQpi4MdkVMCKVB6xcLvIxC8UVMPSoSdLpxEfAbe4X9i2JSTc-ic6IWdr-3z6xo3axutCTpuiYxmj8ECYphFo__HLEmISlDY6f/s1600/mphasislogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEga3GrMcU6kaT-OxliHrw7SaHshxTKR5aWf59mFGZUD_VQKWcGnaYbd5VCVTV8vv-Hngw-K7KjvAZuIIK6dFHE67w7S1lxsZkfzPmoXQcAvULYHmoiWhA9SugQ2fOpG_yLRqqmXAOP2AFdy/s1600/punjlloydlogo.gif" /> </a>
</div>
<script type="text/javascript">
marqueeInit({
uniqueid: 'marquee1',
style: { //style object for this marquee container (use quotes on both sides of the : as shown)
'width': '400px',
'height': '100px',
'color': '#fff',
'background-color': '#4dd469',
'font-family': 'sans-serif',
'margin': '5px auto'},
inc:1, //speed - of the Marquee Slider
});
</script>
Type 2 Image Slider [Advanced]
Code of this Slider
<div class="marquee_slider" id="marquee2">In this slider, Its change the sliding speed according to the position of the mouse. At left it move in right direction and vice versa.
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnCkBA68QbZcoA9PqZS1LGjDXNkWTaObsAu0hFNL95LNT21bkyR5MivBZTNoRzBaFy5GEVhebrQerT-Luk3D6w1ekpmyxnIuegu86dSAA59kHQS7DG9MbzQkLoqDTurxJ9XrXSsCbY1GnE/s1600/CMCltdlogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtMeeBtjvwHrG0wNs1IZyQLhyphenhyphennNiNAGibGRjPxMvPnUMS0t_Ygwwe7zmICfStSvR53-fhsNh7NU-YyTPIJG8CJy7V2w5XQwub-0Z_Px28_8Xv5qqv4-XLvZxEMgUf0mi9iqAkjJ9m836Tw/s1600/YesBanklogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxBAluV7elh8p6FSgRX7oih6H5xFJAgzmW0s_E-fkwgQ7ZOPqswdK9ETy9HGZI3qiGx-2ieh9Njgk12kg8pU1f539C-8cJ5J8ZdGO1e2VOIrBeEZPPAMrR6UO7KlLkyQ6hMEzom7GzZrGi/s1600/accenturelogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwHyp6ALIa87yC20EYRp2wIKd8ncvSHvG6cOJMbhFO_QSmrGXLx-Jfz5IsYXOjzeh2xtx0wmhUYhp3WnJ1UyoXnJ-6_k5PlgyjG0FAQZlUH8lbgzPevVybN8Ng5zhoKY244K2BaaonP_xT/s1600/aonhewittlogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIGHvKt7AFEdPoSHnEwhKtbRShJV41WpS46FBv6li0TkYX4B0Hr2_AvofxGe7zMd6qlhOPxwd1dOgBknLaoyCNII841z2UO4hUtFECCc2roymrbXamWqBcz4YVvgJrkQa_Zg1AYFSUEvDY/s1600/birlasoftlogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi81E6z8dYeHvl6wbXglXlUN111KQg7tjHAkcOkx6mD1fFJBtKS_pPPPfWJQK34GU91ohP4NFzw6_p0W_uysz_qP-h48SME5koE_ZR-tJC0rahIeoAYWGdEgBXA6KA39DQPsPgPLZOCg60Y/s1600/cognizantlogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj14SbuXIVXA1rUB_Ij8i6QLCZxA8CRG9-URVSyEijwtggPoT6qG-Tmv4HybWNkGkNEVlNiXh0Ec_lrehwCjbaPkPjWci3LWmPaEqFqmVqnZnKL_tPy5W5NJbfG6l6N2iJRiGXUNCbBANjQ/s1600/hcl_partner_logo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-8Fuw4QoBEsqSpSJ_0ZO53DPph60YCsVa5XmmejdEbthPQpi4MdkVMCKVB6xcLvIxC8UVMPSoSdLpxEfAbe4X9i2JSTc-ic6IWdr-3z6xo3axutCTpuiYxmj8ECYphFo__HLEmISlDY6f/s1600/mphasislogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEga3GrMcU6kaT-OxliHrw7SaHshxTKR5aWf59mFGZUD_VQKWcGnaYbd5VCVTV8vv-Hngw-K7KjvAZuIIK6dFHE67w7S1lxsZkfzPmoXQcAvULYHmoiWhA9SugQ2fOpG_yLRqqmXAOP2AFdy/s1600/punjlloydlogo.gif" /> </a>
</div>
<script type="text/javascript">
marqueeInit({
uniqueid: 'marquee2',
style: { //style object for this marquee container (use quotes on both sides of the : as shown)
'width': '400px',
'height': '100px',
'color': '#fff',
'background-color': '#4dd469',
'font-family': 'sans-serif',
'margin': '5px auto'},
inc:10, //speed - of marquee slider
mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
moveatleast: 4,
neutral: 150,
savedirection: true
});
</script>