<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for thugsb</title><link>http://disqus.com/by/thugsb/</link><description></description><atom:link href="http://disqus.com/thugsb/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 17 Sep 2009 11:31:56 -0000</lastBuildDate><item><title>Re: Create Beautiful jQuery sliders tutorial</title><link>http://www.dreamcss.com/2009/04/create-beautiful-jquery-sliders.html#comment-16816134</link><description>&lt;p&gt;I have modified the code slightly and added instructions. Hopefully it'll be helpful. :)&lt;br&gt;//&lt;br&gt;//    Instructions by Stuart Basden &lt;a href="http://plaosmos.blogspot.com/" rel="nofollow noopener" target="_blank" title="http://plaosmos.blogspot.com/"&gt;http://plaosmos.blogspot.com/&lt;/a&gt;&lt;br&gt;//&lt;br&gt;//    On each page you can include the following script to set the following variables:&lt;br&gt;//    &amp;lt;script type="text/javascript"&amp;gt;&lt;br&gt;//    &lt;br&gt;//    &amp;lt;/script&amp;gt;&lt;br&gt;//&lt;br&gt;//    Explanation of Variables:&lt;br&gt;//    ----------------------------&lt;br&gt;//    # slider.num is the number of slides, the same a d.length&lt;br&gt;//    # widthofslide can be set to the number of pixels you want the slider to move each slide.&lt;br&gt;//    # Setting randomise = 1 will randomise the initial slide.&lt;br&gt;//    # &lt;a href="http://slider.at" rel="nofollow noopener" target="_blank" title="slider.at"&gt;slider.at&lt;/a&gt; is the delay time between transitions.&lt;br&gt;//    # Setting &lt;a href="http://slider.ar" rel="nofollow noopener" target="_blank" title="slider.ar"&gt;slider.ar&lt;/a&gt; to false will turn off the automatic transitions.&lt;br&gt;//    # If &lt;a href="http://slider.al" rel="nofollow noopener" target="_blank" title="slider.al"&gt;slider.al&lt;/a&gt; is set to null then the transitions will ignore your mouseclicks, but if it is &lt;br&gt;//        set to a number in the 1000s it will delay the next transition by up to that amount.&lt;br&gt;//&lt;br&gt;&lt;br&gt;var $j = jQuery;&lt;br&gt;var widthofslide = 845; // This is the default, but can be set for each page.&lt;br&gt;var randomstart = 1;&lt;br&gt;var randomise = 0;&lt;br&gt;&lt;br&gt;&lt;br&gt;$j(function(){&lt;br&gt; slider.init();&lt;br&gt;});&lt;br&gt;&lt;br&gt;&lt;br&gt;var slider={&lt;br&gt; num:-1,&lt;br&gt; cur:0,&lt;br&gt; cr:[],&lt;br&gt; al:10000,&lt;br&gt; at:10000,&lt;br&gt; ar:false,&lt;br&gt; init:function(){&lt;br&gt;  if(!&lt;a href="http://slider.data" rel="nofollow noopener" target="_blank" title="slider.data"&gt;slider.data&lt;/a&gt; || !slider.data.length)&lt;br&gt;   return false;&lt;br&gt;&lt;br&gt;  var d=&lt;a href="http://slider.data" rel="nofollow noopener" target="_blank" title="slider.data"&gt;slider.data&lt;/a&gt;;&lt;br&gt;  slider.num=d.length;&lt;br&gt;  if(randomise == 1){&lt;br&gt;    randomstart = slider.num;&lt;br&gt;  };&lt;br&gt;  var pos=Math.floor(Math.random()*randomstart);&lt;br&gt;  for(var i=0;i&amp;lt;slider.num;i++){&amp;lt;br&amp;gt;   $j('#'+d[i].id).css({left:((i-pos)*widthofslide)});&lt;br&gt;   $j('#slide-nav').append('&lt;a href="#" rel="nofollow noopener" target="_blank" title="#"&gt;'+(i+1)+'');&lt;br&gt;  }&lt;br&gt;  &lt;br&gt;  $j('img,div#slide-controls',$j('div#slide-holder')).fadeIn();&lt;br&gt;  slider.text(d[pos]);&lt;br&gt;  slider.on(pos);&lt;br&gt;  slider.cur=pos;&lt;br&gt;  window.setTimeout('slider.auto();',slider.at);&lt;br&gt; },&lt;br&gt; auto:function(){&lt;br&gt;  if(!slider.ar)&lt;br&gt;   return false;&lt;br&gt;&lt;br&gt;  var next=slider.cur+1;&lt;br&gt;  if(next&amp;gt;=slider.num) next=0;&lt;br&gt;  slider.slide(next);&lt;br&gt; },&lt;br&gt; slide:function(pos){&lt;br&gt;  if(pos&amp;lt;0 || pos&amp;gt;=slider.num || pos==slider.cur)&lt;br&gt;   return;&lt;br&gt;&lt;br&gt;  window.clearTimeout(slider.al);&lt;br&gt;  slider.al=window.setTimeout('slider.auto();',slider.at);&lt;br&gt;&lt;br&gt;  var d=slider.data;&lt;br&gt;  for(var i=0;i&amp;lt;slider.num;i++)&amp;lt;br&amp;gt;   $j('#'+d[i].id).stop().animate({left:((i-pos)*widthofslide)},widthofslide,'swing');&lt;br&gt;  &lt;br&gt;  slider.on(pos);&lt;br&gt;  slider.text(d[pos]);&lt;br&gt;  slider.cur=pos;&lt;br&gt; },&lt;br&gt; on:function(pos){&lt;br&gt;  $j('#slide-nav a').removeClass('on');&lt;br&gt;  $j('#slide-nav a#slide-link-'+pos).addClass('on');&lt;br&gt; },&lt;br&gt; text:function(di){&lt;br&gt;  slider.cr['a']=di.client;&lt;br&gt;  slider.cr['b']=di.desc;&lt;br&gt;  slider.ticker('#slide-client span',di.client,0,'a');&lt;br&gt;  slider.ticker('#slide-desc',di.desc,0,'b');&lt;br&gt; },&lt;br&gt; ticker:function(el,text,pos,unique){&lt;br&gt;  if(slider.cr[unique]!=text)&lt;br&gt;   return false;&lt;br&gt;&lt;br&gt;  ctext=text.substring(0,pos)+(pos%2?'-':'_');&lt;br&gt;  $j(el).html(ctext);&lt;br&gt;&lt;br&gt;  if(pos==text.length)&lt;br&gt;   $j(el).html(text);&lt;br&gt;  else&lt;br&gt;   window.setTimeout('slider.ticker("'+el+'","'+text+'",'+(pos+1)+',"'+unique+'");',30);&lt;br&gt; }&lt;br&gt;};&lt;br&gt;&lt;br&gt;&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">thugsb</dc:creator><pubDate>Thu, 17 Sep 2009 11:31:56 -0000</pubDate></item><item><title>Re: Create Beautiful jQuery sliders tutorial</title><link>http://www.dreamcss.com/2009/04/create-beautiful-jquery-sliders.html#comment-16714543</link><description>&lt;p&gt;Are you able to remember which variables changed the transistion speed and delay at least? I'm struggling to work it out! Thanks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">thugsb</dc:creator><pubDate>Wed, 16 Sep 2009 10:55:55 -0000</pubDate></item><item><title>Re: Create Beautiful jQuery sliders tutorial</title><link>http://www.dreamcss.com/2009/04/create-beautiful-jquery-sliders.html#comment-16703244</link><description>&lt;p&gt;This is a great script Raj, especially once it is cleared up. Maybe you could switch the download for the cleaned up script that is posted lower down in the comments?&lt;/p&gt;&lt;p&gt;I'm wondering which variables change the speed of transitions, the delay between transitions, and whether you can switch off auto-sliding and make it manual only?&lt;/p&gt;&lt;p&gt;Would it be possible to remake the script so that these variables are set at the top and labled accordingly (along with the width, which can be easily set as a variable)? Maybe they could even be called on the command line so you can customise the same script for multiple parts of the site?&lt;/p&gt;&lt;p&gt;I'd love to see these kinds of improvements, but thanks so much for making the script in the first place. Oh, and I like you avatar pic. :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">thugsb</dc:creator><pubDate>Wed, 16 Sep 2009 05:21:43 -0000</pubDate></item></channel></rss>