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/AVvXsEgTpbVY5lwm8S-UtvWYMeBuzfopibNrSAXDTI8bSHONC_h_pNSc7yGS6wQsXvjZXAwITzKmnqyWTmqNZ5Td51Jb_XvxU1mHVTwXheUTbC5WRG_9RWdtBc9YpJX9zvTl8cbqCT8zeyNXqbTW/s1600/CMCltdlogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBU8G5XAGS3i4c2cLJ-TE_CCPnbyQXeF_I3OqA-ThR0madNGiCgBcZN6JndCyJdUHxkrDYG2a1HsvgkDlHwYYUxYkWtZhDKwTuG7U4Nm8u0MkcCaJhtS7qWMsM5BeWEekVjfesRIE4NZ2q/s1600/YesBanklogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhejgD6YgIoXYzBAMO0YFB1YpdjZnYsHSb4McOpEivv3P_GtdUij0jj96elHYJucrPZM7padhYzfE1_HTAg6pNlGHjrWY3CBz8QREXneh0f9_nk0RKewJ7kbi6Ku35jDPqvM9OY-wQz6nsn/s1600/accenturelogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ9aUkEjb5yZZq21OuGOIPtlenk9tvv2zixtNE2_I5ZRyaYLO7486RWZOSOQSDSYF0tNPStVEyT0E9PqpQv8mh_OIcF2vCIF-y2vSxVqjrRykACVWmOPRqKswiI9_DQ1LECSh6k7dbFBm_/s1600/aonhewittlogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSt2efYqVsb5SatGlSRe3Gj8r-Waeq72dJGfilFHjbwlNY26IyDaACZqxlcI6sfjPQnU1ZxwewwH-7CQXi-5wBNymml_mtrn0OAhBhndgIUWl4PSeC5sFGlZezCKa0ZoPlJxDFOPKBATYU/s1600/birlasoftlogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhw8ErZaVaBau8oodjsW0BT7coqrq10AJ1MC-YZbk6AEJteXfkQGiprlHpc-SA46Zefuyo_ICpuUI9tlI5kiGHQc26Kxq6IDQn3r33LLuRhJbVthp9CWQq7HIT5IKG92nORUVkMXXFkEUQT/s1600/cognizantlogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy23S0I53avnqzugx3Z1D3j9m3gZ02oXLDXg_-b54gEKbsK4qB4MJ5hnVqr_j8IcuDSyod5k_vAwh0Mwha3Q_bPmarrCUQrqnEgjMthMKPaWFrAVX4eCB4XGgbG6VGMGIEDQiKvrwz_xp3/s1600/hcl_partner_logo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJUtTm9U7WLQ5iUOj2QxnwQ_tz9ia1ogeQaD5oVBB1PJq5slrnQfJIULic3heMZ3AssjSjO3Tf5iXGX3J5glAIUTgAx9LOQl10Chv6A_hQRIiNzDpByERAfE3nnAwVL5AR53eMzckQAXZi/s1600/mphasislogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGq2M9MIgMungGTKabvFc15qqgCQuJJY-vXWYF0yTKzdLFrgAp81ry4IfKTo5gUGq6W31FoNQzY9WWphqXvKBeNeaTnRnvJvMz23muvqZjd-NAOFE7NX1w_PO1Qz5Yg_OjFh0CV4RS9Sxq/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/AVvXsEgTpbVY5lwm8S-UtvWYMeBuzfopibNrSAXDTI8bSHONC_h_pNSc7yGS6wQsXvjZXAwITzKmnqyWTmqNZ5Td51Jb_XvxU1mHVTwXheUTbC5WRG_9RWdtBc9YpJX9zvTl8cbqCT8zeyNXqbTW/s1600/CMCltdlogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBU8G5XAGS3i4c2cLJ-TE_CCPnbyQXeF_I3OqA-ThR0madNGiCgBcZN6JndCyJdUHxkrDYG2a1HsvgkDlHwYYUxYkWtZhDKwTuG7U4Nm8u0MkcCaJhtS7qWMsM5BeWEekVjfesRIE4NZ2q/s1600/YesBanklogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhejgD6YgIoXYzBAMO0YFB1YpdjZnYsHSb4McOpEivv3P_GtdUij0jj96elHYJucrPZM7padhYzfE1_HTAg6pNlGHjrWY3CBz8QREXneh0f9_nk0RKewJ7kbi6Ku35jDPqvM9OY-wQz6nsn/s1600/accenturelogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ9aUkEjb5yZZq21OuGOIPtlenk9tvv2zixtNE2_I5ZRyaYLO7486RWZOSOQSDSYF0tNPStVEyT0E9PqpQv8mh_OIcF2vCIF-y2vSxVqjrRykACVWmOPRqKswiI9_DQ1LECSh6k7dbFBm_/s1600/aonhewittlogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSt2efYqVsb5SatGlSRe3Gj8r-Waeq72dJGfilFHjbwlNY26IyDaACZqxlcI6sfjPQnU1ZxwewwH-7CQXi-5wBNymml_mtrn0OAhBhndgIUWl4PSeC5sFGlZezCKa0ZoPlJxDFOPKBATYU/s1600/birlasoftlogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhw8ErZaVaBau8oodjsW0BT7coqrq10AJ1MC-YZbk6AEJteXfkQGiprlHpc-SA46Zefuyo_ICpuUI9tlI5kiGHQc26Kxq6IDQn3r33LLuRhJbVthp9CWQq7HIT5IKG92nORUVkMXXFkEUQT/s1600/cognizantlogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy23S0I53avnqzugx3Z1D3j9m3gZ02oXLDXg_-b54gEKbsK4qB4MJ5hnVqr_j8IcuDSyod5k_vAwh0Mwha3Q_bPmarrCUQrqnEgjMthMKPaWFrAVX4eCB4XGgbG6VGMGIEDQiKvrwz_xp3/s1600/hcl_partner_logo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJUtTm9U7WLQ5iUOj2QxnwQ_tz9ia1ogeQaD5oVBB1PJq5slrnQfJIULic3heMZ3AssjSjO3Tf5iXGX3J5glAIUTgAx9LOQl10Chv6A_hQRIiNzDpByERAfE3nnAwVL5AR53eMzckQAXZi/s1600/mphasislogo.gif" /> </a>
<a href="" target="_blank"> <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGq2M9MIgMungGTKabvFc15qqgCQuJJY-vXWYF0yTKzdLFrgAp81ry4IfKTo5gUGq6W31FoNQzY9WWphqXvKBeNeaTnRnvJvMz23muvqZjd-NAOFE7NX1w_PO1Qz5Yg_OjFh0CV4RS9Sxq/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>
0 Komentar untuk "Free Image and Text Slider For your blog"