Vasiliy Selivanov

  • RSS

Adobe AIR for Linux Alpha

Posted on Wednesday, April 2nd, 2008

Great news! so now we have flex and air for linux. Very good! Don’t stop Adobe! image from www.readwriteweb.com Bookmark on Delicious Digg this post Recommend on Facebook share via Reddit Share with Stumblers Tweet about it Subscribe to the comments on this post

continue reading

Zend Framework 1.6 Release Candidate 1 now available!

Posted on Wednesday, July 23rd, 2008

An overview of new features: Dojo Integration JSON-RPC Dojo Data packing Dojo View Helper Dijit integration with Zend_Form & Zend_View Dojo Library Distribution SOAP SOAP Server SOAP Client Autodiscovery WSDL access WSDL Generation Preview of Tooling Project in Laboratory (see /laboratory folder) Command Line Interface Project Asset Management Unit Testing Harness for Controllers Lucene 2.3 [...]

continue reading

Microsoft’s plans for post-Windows OS revealed

Posted on Wednesday, July 30th, 2008

July 29, 2008 — Microsoft is incubating a componentized non-Windows operating system known as Midori, which is being architected from the ground up to tackle challenges that Redmond has determined cannot be met by simply evolving its existing technology. SD Times has viewed internal Microsoft documents that outline Midori’s proposed design, which is Internet-centric and predicated on [...]

continue reading

Simple JQuery slide show

Posted on Friday, March 27th, 2009

For example you have couple of photos with this html

1
2
3
4
5
6
7
8
9
10
<div id="photos">
  <ul>
         <li><img src="/img/1.jpg" /></li>
         <li><img src="/img/2.jpg" /></li>
         <li><img src="/img/3.jpg" /></li>
         <li><img src="/img/4.jpg" /></li>
         <li><img src="/img/5.jpg" /></li>
         <!-- any count you want -->
  </ul>
</div>

first you need it add style

1
2
3
#photos ul li {
    display:none;
}

load jquery library and add my simple code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$(function(){

    $('#photos ul li:first').show(); // display first photo

    changePhoto = function() {
        index = 0;
        return function() {
            active = $("#photos ul li:eq("+index+")");
            index++;
            el = $("#photos ul li:eq("+index+")");
            if(!el.length) {
                index = 0;
            }
            $(active).fadeOut("slow",function() {
                $("#photos ul li:eq("+index+")").fadeIn("slow");
            });
        }
    }
    intId = setInterval(changePhoto() , 6000); // set interval for changing photo to 6 sec

});

See preview below

  • slide show
  • slide show
  • slide show
  • slide show
  • slide show

Posted in: jQuery.