<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Scorrimento Immagini]]></title><description><![CDATA[<p dir="auto">Ciao Ragazzi,<br />
spero che la sezione sia quella giusta per questo topic.<br />
Nel sito ho una sezione galleria immagini dove gli utenti possono inserire le immagini.<br />
Ciò che voglio fare è:<br />
inserire in homepage un tag div che in automatico visualizza le immagini caricate nella galleria in modalità scorrevole e continuo, il tutto dovrà avvenire senza di volta in volta andare a modificare lo script.<br />
Esiste qualcosa di pronto o qualche guida?</p>
]]></description><link>https://dev.connect.gt/topic/116452/scorrimento-immagini</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 13:28:40 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/116452.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 01 Dec 2009 15:14:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Scorrimento Immagini on Thu, 10 Dec 2009 16:40:25 GMT]]></title><description><![CDATA[<p dir="auto">Avresti la possibilità di postare il tutto su una pagina di prova online?</p>
]]></description><link>https://dev.connect.gt/post/876448</link><guid isPermaLink="true">https://dev.connect.gt/post/876448</guid><dc:creator><![CDATA[marcocarrieri]]></dc:creator><pubDate>Thu, 10 Dec 2009 16:40:25 GMT</pubDate></item><item><title><![CDATA[Reply to Scorrimento Immagini on Thu, 10 Dec 2009 16:36:53 GMT]]></title><description><![CDATA[<p dir="auto">Bene allora cerco da un altra parte l'errore. <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=bb61372b9dc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://dev.connect.gt/post/876447</link><guid isPermaLink="true">https://dev.connect.gt/post/876447</guid><dc:creator><![CDATA[marcocarrieri]]></dc:creator><pubDate>Thu, 10 Dec 2009 16:36:53 GMT</pubDate></item><item><title><![CDATA[Reply to Scorrimento Immagini on Thu, 10 Dec 2009 16:29:40 GMT]]></title><description><![CDATA[<p dir="auto">E' diversa perchè ho dovuto togliere http per inviare il post, io non sono autorizzato ad inviare link e questo lo prende come un link.</p>
]]></description><link>https://dev.connect.gt/post/876461</link><guid isPermaLink="true">https://dev.connect.gt/post/876461</guid><dc:creator><![CDATA[sulweb]]></dc:creator><pubDate>Thu, 10 Dec 2009 16:29:40 GMT</pubDate></item><item><title><![CDATA[Reply to Scorrimento Immagini on Thu, 10 Dec 2009 16:23:39 GMT]]></title><description><![CDATA[<p dir="auto">Se non sbaglio mi sembra che questa riga sia diversa.</p>
<pre><code> &lt;script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/post/876445</link><guid isPermaLink="true">https://dev.connect.gt/post/876445</guid><dc:creator><![CDATA[marcocarrieri]]></dc:creator><pubDate>Thu, 10 Dec 2009 16:23:39 GMT</pubDate></item><item><title><![CDATA[Reply to Scorrimento Immagini on Thu, 10 Dec 2009 13:24:27 GMT]]></title><description><![CDATA[<p dir="auto">Il sito lo sto provando il locale e come errore mi da<br />
Dettagli errore pagina Web<br />
Agente utente: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)<br />
Timestamp: Thu, 10 Dec 2009 13:50:05 UTC</p>
<p dir="auto">Messaggio: Proprietà o metodo non supportati dall'oggetto<br />
Linea: 32<br />
Carattere: 25<br />
Codice: 0</p>
<p dir="auto">il codice che utilizzo è questo<br />
errore che mi da si trova nella parentesi gaffa</p>
<p dir="auto">function()<br />
{<br />
$("<a href="/hashtags/viewer">#viewer</a>").removeClass("js-disabled");</p>
<pre><code class="language-html">&lt;?php
        $lentezza=4000;
        $da_destra_a_sinistra="rtl";
        $da_sinistra_a_destra="ltr";
        $direzione_iniziale=$da_destra_a_sinistra;
        $directory_delle_immagini="logos";
        function getFileFromCartella($path)
        {
            $stringa_immagini="";
            $dir_handle=@opendir($path);
            $indicetemp=1;
            while($file=readdir($dir_handle))
            {
                if($file!="." &amp;&amp; $file!="..")
                {
                    $stringa_immagini=$stringa_immagini."&lt;a class=\"wrapper\" href=\"#\" title=\"Immagine$indicetemp\"&gt;&lt;img class=\"logo\" id=\"immagine$indicetemp\" src=\"".$path."/".$file. "\" alt=\"immagine$indicetemp\"&gt;&lt;/a&gt;".chr(10);
                    $indicetemp=$indicetemp+1;
                }
            }
            closedir($dir_handle);
            return $stringa_immagini;
        }
    ?&gt;
&lt;head&gt;
&lt;link rel="stylesheet" type="text/css" href="imageScroller.css"&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
    &lt;title&gt;imageScroller Image Carousel&lt;/title&gt;
    &lt;script type="text/javascript" src="jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
    $(
        function() 
        {
            $("#viewer").removeClass("js-disabled");
            $("&lt;div&gt;").attr("id", "container").css({ position:"absolute"}).width($(".wrapper").length * 170).height(170).appendTo("div#viewer");
            $(".wrapper").each
            (
                function()
                {
                    $(this).appendTo("div#container");
                }
            );
            var duration = $(".wrapper").length * &lt;?php  echo $lentezza?&gt;;
            var speed = (parseInt($("div#container").width()) + parseInt($("div#viewer").width())) / duration;
            var direction = "&lt;?php echo $direzione_iniziale?&gt;";
            (direction == "rtl") ? $("div#container").css("left", $("div#viewer").width()).addClass("rtl") : $("div#container").css("left", 0 - $("div#container").width()).addClass("ltr") ;
            var animator = function(el,  time, dir)
            {
                if(dir == "rtl")
                {
                    el.removeClass("ltr").addClass("rtl");
                    el.animate
                    (
                        { left:"-" + el.width() + "px" }, time, "linear", function()
                        {
                        $(this).css({ left:$("div#imageScroller").width(), right:"" });
                        animator($(this), duration, "rtl");
                        ($("div#controls").length &gt; 0) ? $("div#controls").slideUp("slow").remove() : null ;            
                        }
                    );
                }
                else
                {
                    el.removeClass("rtl").addClass("ltr");
                    el.animate
                    (
                        { left:$("div#viewer").width() + "px" }, time, "linear", function()
                        {
                            $(this).css({ left:0 - $("div#container").width() });
                            animator($(this), duration, "ltr");
                            ($("div#controls").length &gt; 0) ? $("div#controls").slideUp("slow").remove() : null ;            
                        }
                    );
                }
            }
            animator($("div#container"), duration, direction);
            $("a.wrapper").live
            (
                "mouseover", function()
                {
                    $("div#container").stop(true);
                    ($("div#controls").length == 0) ? $("&lt;div&gt;").attr("id", "controls").appendTo("div#outerContainer").css({ opacity:0.7 }).slideDown("slow") : null ;
                    ($("a#rtl").length == 0) ? $("&lt;a&gt;").attr({ id:"rtl", href:"#", title:"rtl" }).appendTo("#controls") : null ;
                    ($("a#ltr").length == 0) ? $("&lt;a&gt;").attr({ id:"ltr", href:"#", title:"ltr" }).appendTo("#controls") : null ;
                    var title = $(this).attr("title");
                    ($("p#title").length == 0) ? $("&lt;p&gt;").attr("id", "title").text(title).appendTo("div#controls") : $("p#title").text(title) ;
                }
            );
            $("a.wrapper").live
            (
                "mouseout", function(e)
                {
                    (e.relatedTarget == null) ? null : (e.relatedTarget.id != "controls") ? $("div#controls").slideUp("slow").remove() : null ;
                    var totalDistance = parseInt($("div#container").width()) + parseInt($("div#viewer").width());
                    var distanceLeft = ($("div#container").hasClass("ltr")) ? totalDistance - (parseInt($("div#container").css("left")) + parseInt($("div#container").width())) : totalDistance - (parseInt($("div#viewer").width()) - (parseInt($("div#container").css("left")))) ;
                    var newDuration = distanceLeft / speed;
                    animator($("div#container"), newDuration, $("div#container").attr("class"));
                }
            );
            $("#ltr").live
            (
                "click", function()
                {
                    $("div#container").stop(true);
                    $("div#container").removeClass("rtl").addClass("ltr");
                    var totalDistance = parseInt($("div#container").width()) + parseInt($("div#viewer").width());
                    var distanceLeft = totalDistance - (parseInt($("div#container").css("left")) + parseInt($("div#container").width()));
                    var newDuration = distanceLeft / speed;
                    animator($("div#container"), newDuration, "ltr");
                }
            );
            $("#rtl").live
            (
                "click", function()
                {
                $("div#container").stop(true);
                $("div#container").removeClass("ltr").addClass("rtl");
                var totalDistance = parseInt($("div#container").width()) + parseInt($("div#viewer").width());
                var distanceLeft = totalDistance - (parseInt($("div#viewer").width()) - (parseInt($("div#container").css("left"))));
                var newDuration = distanceLeft / speed;
                animator($("div#container"), newDuration, "rtl");
                }
            );
        }
    );
    &lt;/script&gt;
 &lt;script language="JavaScript" type="text/javascript"&gt; 
&lt;!-- Begin
var message = new Array();
// Set your messages you want typed into the title bar below.
// To add more messages, just add more elements to the array.
message[0] = "Benvenuti";
message[1] = "real_unione";
message[2] = "Sito Ufficiale della squadra di calcio *Real Unione*";
message[3] = "tutto sul campionato F.I.G.C - L.N.D Prima Categoria ...";
message[4] = "risultati, cronache degli incontri...";
message[5] = "curiosità, news e tanto altro...";
 
// Set the number of repetitions (how many times a given message is typed out
// before moving onto the next message).
var reps = 1;
var speed = 200;// Set the overall typing speed (larger number = slower action).
var hold = 8 // set the length of time to display the whole phrase before retyping (larger number = longer)
 
// DO NOT EDIT BELOW THIS LINE.
var p = message.length;
var q = 0;
var r = 0;
var C = 0;
var mC = 0;
var s = 0;
var sT = null;
 
if (reps &lt; 1) {
reps = 1;
}
function setMessage() {
typing = message[mC];
q = typing.length;
r = q + hold;
typeMessage();
}
function typeMessage() {
if (s &gt; r) {
s = 0;
}
if (s &gt; q) {
document.title = '|- '+ typing +' - - -';
}
else {
document.title = '|- '+ typing.substr(0,s)+' - - -';
}
if (C &lt; (r * reps)) {
sT = setTimeout("typeMessage()", speed);
C++;
s++;
}
else {
C = 0;
s = 0;
mC++;
if(mC &gt; p - 1) {mC = 0;}
sT = null;
setMessage();
   }
}
setMessage();
//  End --&gt;
&lt;/script&gt;
&lt;style type="text/css"&gt;
&lt;!--
body {
 background-color: #425194;
}
.Stile1 {
 color: #29166F;
 font-size: 14px;
 font-weight: bold; ;
}
.Stile2 {
 color: #FFFFFF;
 font-size: 15px;
 font-weight: bold;
}
}
.Stile4 {
 color: #29166F;
 font-size: 18px;
 font-weight: bold;
}
.Stile7 {font-size: 24px;color: #29166F;}
#Layer1 {
 position:absolute;
 left:172px;
 top:392px;
 width:79px;
 height:100px;
 z-index:1;
}
div#news_box{width: 250px; height: 150px; border-color: #CC0202;border-width: 1px; border-style: solid; }
div#news_top{text-align: center; border-style: solid; border-color: #CC0202;border-width: 0px 0px 1px 0px;}
img{border:0;margin:0px;}
        &lt;/style&gt;
 
&lt;/head&gt;
&lt;body&gt;
&lt;table width="897" border="8" align="center" cellpadding="5" bordercolor="#29166F" bgcolor="#FFFFFF"&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;img src="image/logo_usdreal2.png" alt="logo asd real unuone" /&gt;
      &lt;?php require("menu.php"); ?&gt;
 &lt;img src="image/k34.gif" alt="barra" width="100%" height="13" /&gt;
 &lt;table width="100%" border="0"&gt;
      &lt;tr bgcolor="#D9DAEC"&gt;
        &lt;th scope="col"&gt;
 
          &lt;marquee&gt;
            &lt;div align="right"&gt;  
                 &lt;span class="Stile4"&gt;*A.S.D. REAL UNIONE* Campionato Regionale di Calcio 2009/2010 - Sicilia - I^ Categoria girone H&lt;/span&gt;          
    &lt;/marquee&gt;  &lt;/th&gt;
  &lt;/tr&gt;
    &lt;/table&gt;
 &lt;img src="image/k34.gif" alt="barra" width="100%" height="13" /&gt;
 
 &lt;table width="660" border="1" align="center" cellpadding="0" bordercolor="#29166F"&gt;
      &lt;tr&gt;
        &lt;td width="731"&gt;&lt;div align="center"&gt;&lt;img src="image/regionesiciliana.png" alt="regione" width="135" height="95" hspace="23" /&gt; &lt;img src="image/unione_comuni.png" alt="Unione Comuni Alto Verdura e Gebbia" width="150" height="150" hspace="55" /&gt;&lt;img src="image/pr_reg_ag.png" alt="provincia agrigento" width="194" height="100" hspace="0" /&gt;&lt;/div&gt;&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
 &lt;table width="531" border="0" align="center" cellpadding="0"&gt;
      &lt;tr&gt;
        &lt;td width="81" align="left" valign="top"&gt;&lt;img src="image/FIGC.jpg" width="81" height="91" align="top" /&gt;&lt;/td&gt;
        &lt;td width="360" align="center" valign="top"&gt;&lt;span class="Stile4"&gt;Federazione Italiana Giuoco Calcio &lt;br /&gt;
Lega Nazionale Dilettanti &lt;br /&gt;
COMITATO REGIONALE SICILIA &lt;br /&gt;
Campionato di Prima Categoria Girone H&lt;/span&gt;&lt;/td&gt;
        &lt;td width="82" align="left" valign="top"&gt;&lt;span class="Stile4"&gt;&lt;img src="image/stadio.png" alt="lnd" width="82" height="91" /&gt;&lt;/span&gt;&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
 &lt;table width="85%" border="0" align="center" cellpadding="0"&gt;
      &lt;tr&gt;
        &lt;td align="center" valign="top"&gt;&lt;div align="center"&gt;
          &lt;br /&gt;&lt;img src="image/asd_real_unione_news.png" width="134" height="16" alt="asd real unione news" /&gt;&lt;br /&gt;&lt;iframe src="news/include.php" style="border:0px;" width="250" height="130" scrolling="auto"&gt; &lt;/iframe&gt;&lt;/div&gt;&lt;/td&gt;
        &lt;td align="center" valign="top"&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;a href="newcalcio.org/" title="pronostici calcio"&gt;&lt;img src="newcalcio.org/pronostici/news.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;iframe src="newcalcio.org/iframe.php?news=10" style="border:0px;" width="250" height="130" scrolling="auto"&gt;
&lt;/iframe&gt;&lt;/div&gt;&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
 &lt;img src="image/k34.gif" alt="barra" width="100%" height="13" /&gt;&lt;br /&gt;
 &lt;table width="100%" border="0" cellpadding="0"&gt;
      &lt;tr&gt;
        &lt;td width="51%" align="left" valign="top"&gt;&lt;table height="178" border="0" cellpadding="0"&gt;
          &lt;tr&gt;
            &lt;td width="444" align="left" valign="top"&gt;&lt;div align="center"&gt;&lt;a href="img/squadra.jpg"&gt;&lt;img src="admin/uploads/squadra.jpg" alt="squadra" width="444" height="173" border="0" align="top"&gt;&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;
          &lt;/tr&gt;
        &lt;/table&gt;
          &lt;table width="99%" border="0" cellpadding="0"&gt;
            &lt;tr&gt;
              &lt;td width="48%" align="left" valign="top"&gt;&lt;p align="center" class="Stile7"&gt;&lt;img src="admin/uploads/stadio.gif" alt="stadio" width="211" height="324" /&gt;&lt;/p&gt;                &lt;/td&gt;
              &lt;td width="52%" align="left" valign="top"&gt;
&lt;table width="100%" border="1" cellpadding="0" cellspacing="2" bordercolor="#000066"&gt;
 &lt;tr style="background-color: #000066;"&gt;
  &lt;th align="center" valign="middle"&gt;&lt;span class="Stile2"&gt;Classifica&lt;/span&gt;&lt;/th&gt;
  &lt;td&gt;&lt;div align="center"&gt;&lt;img src="image/pallone.gif" alt="pallone" /&gt;&lt;/div&gt;&lt;/td&gt;
 &lt;/tr&gt;
&lt;?php
include('config.inc.php');
  $sql = "SELECT * FROM squadre ORDER BY pt DESC;";
  $result = mysql_query ($sql,$link);
$num=mysql_num_rows($result);
$i=0;
while($i&lt;$num)
{
     $nomesquadra=mysql_result($result, $i, "nomesquadra");
     $pt=mysql_result($result, $i, "pt");
     if(($i%2)==0) $colore="#E1E1E1";
          else $colore="#F1F1F1";
     echo " &lt;tr style=\"background-color: $colore;\"&gt;\n"
         ."  &lt;td&gt;&lt;span class=\"Stile1\"&gt;$nomesquadra&lt;/span&gt;&lt;/td&gt;\n"
         ."  &lt;td&gt;&lt;div align=\"center\"&gt;&lt;span class=\"Stile1\"&gt;$pt&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;\n"
         ." &lt;/tr&gt;\n";
     $i++;
}
?&gt;
&lt;!? chiudiamo la tabella aperta all?inizio dello script ?&gt; 
&lt;/table&gt; &lt;/td&gt;
            &lt;/tr&gt;
          &lt;/table&gt;          &lt;/td&gt;
        &lt;td width="49%" align="left" valign="top"&gt;&lt;div align="center"&gt;
          &lt;img src="image/risultati.png" alt="risultati" width="276" height="58" /&gt;
          &lt;?php require("risultato.php"); ?&gt;
          &lt;br /&gt;
        &lt;/div&gt;
          &lt;div align="center"&gt;&lt;img src="image/prossimoturno.png" alt="prossimo turno" width="320" height="60" /&gt;          &lt;/div&gt;
          &lt;?php require("prossimo_turno.php"); ?&gt;&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
 
 
          &lt;div id="outerContainer"&gt;
            &lt;div id="imageScroller"&gt;
              &lt;div id="viewer" class="js-disabled"&gt;
                    &lt;?php echo getFileFromCartella($directory_delle_immagini) ?&gt;                &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt; &lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/post/876460</link><guid isPermaLink="true">https://dev.connect.gt/post/876460</guid><dc:creator><![CDATA[sulweb]]></dc:creator><pubDate>Thu, 10 Dec 2009 13:24:27 GMT</pubDate></item><item><title><![CDATA[Reply to Scorrimento Immagini on Thu, 10 Dec 2009 12:25:41 GMT]]></title><description><![CDATA[<p dir="auto">Allora ci siamo quasi..<br />
Purtroppo bisognerebbe vedere quali sono gli altri script.<br />
C'è un addons per Firefox, Web developer che ti fa vedere gli eventuali errori Javascript e/o Css.<br />
Prova a darci un occhiata.</p>
]]></description><link>https://dev.connect.gt/post/876444</link><guid isPermaLink="true">https://dev.connect.gt/post/876444</guid><dc:creator><![CDATA[marcocarrieri]]></dc:creator><pubDate>Thu, 10 Dec 2009 12:25:41 GMT</pubDate></item><item><title><![CDATA[Reply to Scorrimento Immagini on Thu, 10 Dec 2009 12:23:42 GMT]]></title><description><![CDATA[<p dir="auto">Ciao Marco, sei un grande!<br />
Funziona benissimo, ho solo il problema nell'inserirlo nella home.<br />
secondo me il problema è dovuto alla presenta altri script.</p>
]]></description><link>https://dev.connect.gt/post/876459</link><guid isPermaLink="true">https://dev.connect.gt/post/876459</guid><dc:creator><![CDATA[sulweb]]></dc:creator><pubDate>Thu, 10 Dec 2009 12:23:42 GMT</pubDate></item><item><title><![CDATA[Reply to Scorrimento Immagini on Wed, 09 Dec 2009 10:11:59 GMT]]></title><description><![CDATA[<p dir="auto">Prova questo codice che ho elaborato, le variabili le setti attaverso php in cima al codice.</p>
<pre><code>&lt;html&gt;
    &lt;?php
        $lentezza=4000;
        $da_destra_a_sinistra="rtl";
        $da_sinistra_a_destra="ltr";
        $direzione_iniziale=$da_destra_a_sinistra;
        $directory_delle_immagini="logos";
        function getFileFromCartella($path)
        {
            $stringa_immagini="";
            $dir_handle=@opendir($path);
            $indicetemp=1;
            while($file=readdir($dir_handle))
            {
                if($file!="." &amp;&amp; $file!="..")
                {
                    $stringa_immagini=$stringa_immagini."&lt;a class=\"wrapper\" href=\"#\" title=\"Immagine$indicetemp\"&gt;&lt;img class=\"logo\" id=\"immagine$indicetemp\" src=\"".$path."/".$file. "\" alt=\"immagine$indicetemp\"&gt;&lt;/a&gt;".chr(10);
                    $indicetemp=$indicetemp+1;
                }
            }
            closedir($dir_handle);
            return $stringa_immagini;
        }
    ?&gt;
    &lt;head&gt;
    &lt;link rel="stylesheet" type="text/css" href="imageScroller.css"&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
    &lt;title&gt;imageScroller Image Carousel&lt;/title&gt;
    &lt;script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
    $(
        function() 
        {
            $("#viewer").removeClass("js-disabled");
            $("&lt;div&gt;").attr("id", "container").css({ position:"absolute"}).width($(".wrapper").length * 170).height(170).appendTo("div#viewer");
            $(".wrapper").each
            (
                function()
                {
                    $(this).appendTo("div#container");
                }
            );
            var duration = $(".wrapper").length * &lt;?php echo $lentezza?&gt;;
            var speed = (parseInt($("div#container").width()) + parseInt($("div#viewer").width())) / duration;
            var direction = "&lt;?php echo $direzione_iniziale?&gt;";
            (direction == "rtl") ? $("div#container").css("left", $("div#viewer").width()).addClass("rtl") : $("div#container").css("left", 0 - $("div#container").width()).addClass("ltr") ;
            var animator = function(el, time, dir)
            {
                if(dir == "rtl")
                {
                    el.removeClass("ltr").addClass("rtl");
                    el.animate
                    (
                        { left:"-" + el.width() + "px" }, time, "linear", function()
                        {
                        $(this).css({ left:$("div#imageScroller").width(), right:"" });
                        animator($(this), duration, "rtl");
                        ($("div#controls").length &gt; 0) ? $("div#controls").slideUp("slow").remove() : null ;            
                        }
                    );
                }
                else
                {
                    el.removeClass("rtl").addClass("ltr");
                    el.animate
                    (
                        { left:$("div#viewer").width() + "px" }, time, "linear", function()
                        {
                            $(this).css({ left:0 - $("div#container").width() });
                            animator($(this), duration, "ltr");
                            ($("div#controls").length &gt; 0) ? $("div#controls").slideUp("slow").remove() : null ;            
                        }
                    );
                }
            }
            animator($("div#container"), duration, direction);
            $("a.wrapper").live
            (
                "mouseover", function()
                {
                    $("div#container").stop(true);
                    ($("div#controls").length == 0) ? $("&lt;div&gt;").attr("id", "controls").appendTo("div#outerContainer").css({ opacity:0.7 }).slideDown("slow") : null ;
                    ($("a#rtl").length == 0) ? $("&lt;a&gt;").attr({ id:"rtl", href:"#", title:"rtl" }).appendTo("#controls") : null ;
                    ($("a#ltr").length == 0) ? $("&lt;a&gt;").attr({ id:"ltr", href:"#", title:"ltr" }).appendTo("#controls") : null ;
                    var title = $(this).attr("title");
                    ($("p#title").length == 0) ? $("&lt;p&gt;").attr("id", "title").text(title).appendTo("div#controls") : $("p#title").text(title) ;
                }
            );
            $("a.wrapper").live
            (
                "mouseout", function(e)
                {
                    (e.relatedTarget == null) ? null : (e.relatedTarget.id != "controls") ? $("div#controls").slideUp("slow").remove() : null ;
                    var totalDistance = parseInt($("div#container").width()) + parseInt($("div#viewer").width());
                    var distanceLeft = ($("div#container").hasClass("ltr")) ? totalDistance - (parseInt($("div#container").css("left")) + parseInt($("div#container").width())) : totalDistance - (parseInt($("div#viewer").width()) - (parseInt($("div#container").css("left")))) ;
                    var newDuration = distanceLeft / speed;
                    animator($("div#container"), newDuration, $("div#container").attr("class"));
                }
            );
            $("#ltr").live
            (
                "click", function()
                {
                    $("div#container").stop(true);
                    $("div#container").removeClass("rtl").addClass("ltr");
                    var totalDistance = parseInt($("div#container").width()) + parseInt($("div#viewer").width());
                    var distanceLeft = totalDistance - (parseInt($("div#container").css("left")) + parseInt($("div#container").width()));
                    var newDuration = distanceLeft / speed;
                    animator($("div#container"), newDuration, "ltr");
                }
            );
            $("#rtl").live
            (
                "click", function()
                {
                $("div#container").stop(true);
                $("div#container").removeClass("ltr").addClass("rtl");
                var totalDistance = parseInt($("div#container").width()) + parseInt($("div#viewer").width());
                var distanceLeft = totalDistance - (parseInt($("div#viewer").width()) - (parseInt($("div#container").css("left"))));
                var newDuration = distanceLeft / speed;
                animator($("div#container"), newDuration, "rtl");
                }
            );
        }
    );
    &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;div id="outerContainer"&gt;
            &lt;div id="imageScroller"&gt;
                &lt;div id="viewer" class="js-disabled"&gt;
                    &lt;?php echo getFileFromCartella($directory_delle_immagini) ?&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;        
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/post/876443</link><guid isPermaLink="true">https://dev.connect.gt/post/876443</guid><dc:creator><![CDATA[marcocarrieri]]></dc:creator><pubDate>Wed, 09 Dec 2009 10:11:59 GMT</pubDate></item><item><title><![CDATA[Reply to Scorrimento Immagini on Tue, 08 Dec 2009 21:35:10 GMT]]></title><description><![CDATA[<p dir="auto">Ho fatto in questo modo ma ricevo un errore 'stack overflow at line: 12' proprio dove c'è &lt;?php sinceramente non so come venirne a capo.</p>
<p dir="auto">Questo il codice:</p>
<pre><code class="language-html">&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "w3.org/TR/html4/strict.dtd"&gt;
&lt;html&gt;
  &lt;head&gt;
   &lt;link rel="stylesheet" type="text/css" href="imageScroller.css"&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
    &lt;title&gt;imageScroller Image Carousel&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="outerContainer"&gt;
   &lt;div id="imageScroller"&gt;
    &lt;div id="viewer" class="js-disabled"&gt;
     &lt;?php
function dir_list($directory = FALSE)
{
$dirs= array();
$files = array();
if ($handle = opendir("./" . $directory))
{
while ($file = readdir($handle))
{
if (is_dir("./{$directory}/{$file}"))
{
if ($file != "." &amp; $file != "..") $dirs[] = $file;
}
else
{
if ($file != "." &amp; $file != "..") $files[] = $file;
}
}
}
closedir($handle);
reset($dirs);
sort($dirs);
reset($dirs);
reset($files);
sort($files);
reset($files);
 
while(list($key, $value) = each($dirs))
{
$d++;
echo "&lt;td&gt;&lt;img src=\"{$value}\"&gt;&lt;/td&gt;";
}
echo "&lt;/ul&gt;\n";
while(list($key, $value) = each($files))
{
echo "&lt;td&gt;&lt;img src=\"{$directory}{$value}\"&gt;&lt;/td&gt;";
}
echo "&lt;/ul&gt;";
 
}
dir_list("../img/");
?&gt;
    &lt;/div&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  &lt;script type="text/javascript" src="jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
   $(function() {
 
     //remove js-disabled class
    $("#viewer").removeClass("js-disabled");
 
     //create new container for images
    $("&lt;div&gt;").attr("id", "container").css({ position:"absolute"}).width($(".wrapper").length * 170).height(170).appendTo("div#viewer");
 
    //add images to container
    $(".wrapper").each(function() {
     $(this).appendTo("div#container");
    });
 
    //work out duration of anim based on number of images (1 second for each image)
    var duration = $(".wrapper").length * 1000;
 
    //store speed for later (distance / time)
    var speed = (parseInt($("div#container").width()) + parseInt($("div#viewer").width())) / duration;
 
    //set direction
    var direction = "rtl";
 
    //set initial position and class based on direction
    (direction == "rtl") ? $("div#container").css("left", $("div#viewer").width()).addClass("rtl") : $("div#container").css("left", 0 - $("div#container").width()).addClass("ltr") ;
 
    //animator function
    var animator = function(el, time, dir) {
 
     //which direction to scroll
     if(dir == "rtl") {
 
       //add direction class
      el.removeClass("ltr").addClass("rtl");
 
      //animate the el
      el.animate({ left:"-" + el.width() + "px" }, time, "linear", function() {
 
       //reset container position
       $(this).css({ left:$("div#imageScroller").width(), right:"" });
 
       //restart animation
       animator($(this), duration, "rtl");
 
       //hide controls if visible
       ($("div#controls").length &gt; 0) ? $("div#controls").slideUp("slow").remove() : null ;   
 
      });
     } else {
 
       //add direction class
      el.removeClass("rtl").addClass("ltr");
 
      //animate the el
      el.animate({ left:$("div#viewer").width() + "px" }, time, "linear", function() {
 
       //reset container position
       $(this).css({ left:0 - $("div#container").width() });
 
       //restart animation
       animator($(this), duration, "ltr");
 
       //hide controls if visible
       ($("div#controls").length &gt; 0) ? $("div#controls").slideUp("slow").remove() : null ;   
      });
     }
    }
 
    //start anim
    animator($("div#container"), duration, direction);
 
    //pause on mouseover
    $("a.wrapper").live("mouseover", function() {
 
     //stop anim
     $("div#container").stop(true);
 
     //show controls
     ($("div#controls").length == 0) ? $("&lt;div&gt;").attr("id", "controls").appendTo("div#outerContainer").css({ opacity:0.7 }).slideDown("slow") : null ;
     ($("a#rtl").length == 0) ? $("&lt;a&gt;").attr({ id:"rtl", href:"#", title:"rtl" }).appendTo("#controls") : null ;
     ($("a#ltr").length == 0) ? $("&lt;a&gt;").attr({ id:"ltr", href:"#", title:"ltr" }).appendTo("#controls") : null ;
 
     //variable to hold trigger element
     var title = $(this).attr("title");
 
     //add p if doesn't exist, update it if it does
     ($("p#title").length == 0) ? $("&lt;p&gt;").attr("id", "title").text(title).appendTo("div#controls") : $("p#title").text(title) ;
    });
 
    //restart on mouseout
    $("a.wrapper").live("mouseout", function(e) {
 
     //hide controls if not hovering on them
     (e.relatedTarget == null) ? null : (e.relatedTarget.id != "controls") ? $("div#controls").slideUp("slow").remove() : null ;
 
     //work out total travel distance
     var totalDistance = parseInt($("div#container").width()) + parseInt($("div#viewer").width());
 
     //work out distance left to travel
     var distanceLeft = ($("div#container").hasClass("ltr")) ? totalDistance - (parseInt($("div#container").css("left")) + parseInt($("div#container").width())) : totalDistance - (parseInt($("div#viewer").width()) - (parseInt($("div#container").css("left")))) ;
 
     //new duration is distance left / speed)
     var newDuration = distanceLeft / speed;
 
     //restart anim
     animator($("div#container"), newDuration, $("div#container").attr("class"));
    });
 
    //handler for ltr button
    $("#ltr").live("click", function() {
 
     //stop anim
     $("div#container").stop(true);
 
     //swap class names
     $("div#container").removeClass("rtl").addClass("ltr");
 
     //work out total travel distance
     var totalDistance = parseInt($("div#container").width()) + parseInt($("div#viewer").width());
 
     //work out remaining distance
     var distanceLeft = totalDistance - (parseInt($("div#container").css("left")) + parseInt($("div#container").width()));
 
     //new duration is distance left / speed)
     var newDuration = distanceLeft / speed;
 
     //restart anim
     animator($("div#container"), newDuration, "ltr");
    });
 
    //handler for rtl button
    $("#rtl").live("click", function() {
 
     //stop anim
     $("div#container").stop(true);
 
     //swap class names
     $("div#container").removeClass("ltr").addClass("rtl");
 
     //work out total travel distance
     var totalDistance = parseInt($("div#container").width()) + parseInt($("div#viewer").width());
     //work out remaining distance
     var distanceLeft = totalDistance - (parseInt($("div#viewer").width()) - (parseInt($("div#container").css("left"))));
 
     //new duration is distance left / speed)
     var newDuration = distanceLeft / speed;
 
     //restart anim
     animator($("div#container"), newDuration, "rtl");
    });
   });
  &lt;/script&gt;
  &lt;/body&gt;
&lt;/html&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/post/876458</link><guid isPermaLink="true">https://dev.connect.gt/post/876458</guid><dc:creator><![CDATA[sulweb]]></dc:creator><pubDate>Tue, 08 Dec 2009 21:35:10 GMT</pubDate></item><item><title><![CDATA[Reply to Scorrimento Immagini on Tue, 08 Dec 2009 09:54:52 GMT]]></title><description><![CDATA[<p dir="auto">Credo che tu debba andare ad interagire su questa zona.</p>
<blockquote>
<p dir="auto">&lt;div id="viewer" class="js-disabled"&gt;<br />
&lt;a class="wrapper" href="#" title="Apple"&gt;&lt;img class="logo" id="apple" src="logos/apple.jpg" alt="Apple"&gt;&lt;/a&gt;<br />
&lt;a class="wrapper" href="#" title="Firefox"&gt;&lt;img class="logo" id="firefox" src="logos/firefox.jpg" alt="Firefox"&gt;&lt;/a&gt;<br />
&lt;a class="wrapper" href="#" title="jQuery"&gt;&lt;img class="logo" id="jquery" src="logos/jquery.jpg" alt="jQuery"&gt;&lt;/a&gt;<br />
&lt;a class="wrapper" href="#" title="Twitter"&gt;&lt;img class="logo" id="twitter" src="logos/twitter.jpg" alt="Twitter"&gt;&lt;/a&gt;<br />
&lt;a class="wrapper" href="#" title="jQuery UI"&gt;&lt;img class="logo" id="jqueryui" src="logos/jqueryui.jpg" alt="jQuery UI"&gt;&lt;/a&gt;<br />
&lt;/div&gt;</p>
</blockquote>
<p dir="auto">Invece di usare le immagine e link di default, tu potresti leggere i file di tipo immagine contenuti in una cartella da te scelta.</p>
]]></description><link>https://dev.connect.gt/post/876450</link><guid isPermaLink="true">https://dev.connect.gt/post/876450</guid><dc:creator><![CDATA[marcocarrieri]]></dc:creator><pubDate>Tue, 08 Dec 2009 09:54:52 GMT</pubDate></item><item><title><![CDATA[Reply to Scorrimento Immagini on Mon, 07 Dec 2009 21:29:25 GMT]]></title><description><![CDATA[<p dir="auto">Sapete se esiste una guida in italiano?<br />
non riesco ad integrarlo.</p>
]]></description><link>https://dev.connect.gt/post/876457</link><guid isPermaLink="true">https://dev.connect.gt/post/876457</guid><dc:creator><![CDATA[sulweb]]></dc:creator><pubDate>Mon, 07 Dec 2009 21:29:25 GMT</pubDate></item><item><title><![CDATA[Reply to Scorrimento Immagini on Mon, 07 Dec 2009 20:58:06 GMT]]></title><description><![CDATA[<p dir="auto">Beh la lista delle foto credo che nello script sia messo come elenco.<br />
Ma che sia modificabile usando Asp o Php andando a leggere il contenuto di una determinata cartella.</p>
]]></description><link>https://dev.connect.gt/post/876449</link><guid isPermaLink="true">https://dev.connect.gt/post/876449</guid><dc:creator><![CDATA[marcocarrieri]]></dc:creator><pubDate>Mon, 07 Dec 2009 20:58:06 GMT</pubDate></item><item><title><![CDATA[Reply to Scorrimento Immagini on Mon, 07 Dec 2009 20:54:53 GMT]]></title><description><![CDATA[<p dir="auto">A primo impatto sembra ottimo, spero solo che il codice non dovrà essere modificato tutte le volte che voglio visualizzare una nuova foto dandogli il percorso.</p>
]]></description><link>https://dev.connect.gt/post/876456</link><guid isPermaLink="true">https://dev.connect.gt/post/876456</guid><dc:creator><![CDATA[sulweb]]></dc:creator><pubDate>Mon, 07 Dec 2009 20:54:53 GMT</pubDate></item><item><title><![CDATA[Reply to Scorrimento Immagini on Mon, 07 Dec 2009 20:34:30 GMT]]></title><description><![CDATA[<p dir="auto">Che ne pensi di questo componente?</p>
<p dir="auto"><a href="http://net.tutsplus.com/tutorials/javascript-ajax/building-a-jquery-image-scroller/" rel="nofollow ugc">net.tutsplus.com/tutorials/javascript-ajax/building-a-jquery-image-scroller/</a></p>
]]></description><link>https://dev.connect.gt/post/876446</link><guid isPermaLink="true">https://dev.connect.gt/post/876446</guid><dc:creator><![CDATA[marcocarrieri]]></dc:creator><pubDate>Mon, 07 Dec 2009 20:34:30 GMT</pubDate></item><item><title><![CDATA[Reply to Scorrimento Immagini on Mon, 07 Dec 2009 20:21:53 GMT]]></title><description><![CDATA[<p dir="auto">Ciao marinski,<br />
Grazie per la tua risposta.</p>
<p dir="auto">La galleria è uno script pronto ma credo che non centra niente con quello che voglio fare.</p>
<p dir="auto">Della galleria a me interessa solo la cartella dove vengono caricate le immagini, questo per implementare nella home un div dove tutto il contenuto venga visualizzato in modo scorrevole.</p>
<p dir="auto">In poche parole, le immagini che vengono caricate dentro la cartella gallery, dovranno scorrere nella home da destra verso sinistra.</p>
]]></description><link>https://dev.connect.gt/post/876455</link><guid isPermaLink="true">https://dev.connect.gt/post/876455</guid><dc:creator><![CDATA[sulweb]]></dc:creator><pubDate>Mon, 07 Dec 2009 20:21:53 GMT</pubDate></item><item><title><![CDATA[Reply to Scorrimento Immagini on Mon, 07 Dec 2009 18:03:45 GMT]]></title><description><![CDATA[<p dir="auto">vedo la cosa più possibile con javascript!<br />
la galleria l'hai creata tu o era uno script già pronto da scaricare?</p>
]]></description><link>https://dev.connect.gt/post/876453</link><guid isPermaLink="true">https://dev.connect.gt/post/876453</guid><dc:creator><![CDATA[marinski]]></dc:creator><pubDate>Mon, 07 Dec 2009 18:03:45 GMT</pubDate></item></channel></rss>