convert VB code to C# help please??

Posted by ilkdrl on Stack Overflow See other posts from Stack Overflow or by ilkdrl
Published on 2010-05-22T01:55:10Z Indexed on 2010/05/22 2:00 UTC
Read the original article Hit count: 484

Filed under:
|
|
var aktif=0, gosterim_adeti=5;
var dizi = new Array();
$(document).ready(function(){
  var boyut = $("#alan p").length;
  for(var i=0; i<boyut; i++)
  {
    dizi[i] = $("#alan p:eq("+i+")").html();
  }
  $("#alan").html("");
  for(var i=0; i<gosterim_adeti; i++)
  {
    $("#alan").append("<p>"+dizi[i]+"</p>");
  }
  setInterval(degistir, 2000);
  function degistir()
  {
    aktif = (aktif + 1)%boyut;
    $("#alan").html("");
    var ilk = aktif-1;
    if(ilk<0)ilk = ilk+boyut;
    $("#alan").append("<p>"+dizi[ilk]+"</p>");
    for(var i=aktif; i<aktif + gosterim_adeti;i++)
    {
      $("#alan").append("<p>"+dizi[(i%boyut)]+"</p>");
    }
    $("#alan p:first").slideUp(500);
    $("#alan p:last").css("height","0px").animate({height:"40px"},600);

© Stack Overflow or respective owner

Related posts about vb

Related posts about c#