<?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[far partire in automatico uno script]]></title><description><![CDATA[<p dir="auto">Buondì, ho una domanda da porre.<br />
Ho inserito sull'homepage di un sito che sto facendo (<a href="http://pasubio2.com/prova/" rel="nofollow ugc">pasubio2.com/prova/</a>)un script di showcase che parte cliccando sulla freccina presente. Il cliente mi chiede se è possibile far partire la rotazione delle immagini quando si accede al sito.<br />
Premetto che la mia conoscenza purtroppo si limita all'html, quindi chiedo a qualcuno esperto di javascript se c'è modo per modificare in qualche punto il codice del presente script e farlo partire in automatico.</p>
<p dir="auto">Grazie,<br />
Livia</p>
]]></description><link>https://dev.connect.gt/topic/152824/far-partire-in-automatico-uno-script</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 19:40:27 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/152824.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 Jun 2011 09:18:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to far partire in automatico uno script on Thu, 07 Jul 2011 14:09:39 GMT]]></title><description><![CDATA[<p dir="auto">problema risolto <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /></p>
<p dir="auto">ciao...</p>
]]></description><link>https://dev.connect.gt/post/1008485</link><guid isPermaLink="true">https://dev.connect.gt/post/1008485</guid><dc:creator><![CDATA[bjt1098]]></dc:creator><pubDate>Thu, 07 Jul 2011 14:09:39 GMT</pubDate></item><item><title><![CDATA[Reply to far partire in automatico uno script on Sun, 03 Jul 2011 18:43:43 GMT]]></title><description><![CDATA[<p dir="auto">effettivamente diventerebbero superflue, quindi forse sarebbero da eliminare...</p>
]]></description><link>https://dev.connect.gt/post/1008482</link><guid isPermaLink="true">https://dev.connect.gt/post/1008482</guid><dc:creator><![CDATA[livia]]></dc:creator><pubDate>Sun, 03 Jul 2011 18:43:43 GMT</pubDate></item><item><title><![CDATA[Reply to far partire in automatico uno script on Sun, 03 Jul 2011 18:36:13 GMT]]></title><description><![CDATA[<p dir="auto">ma le freccette devono continuare ad esserci e/o funzionare?!</p>
]]></description><link>https://dev.connect.gt/post/1008486</link><guid isPermaLink="true">https://dev.connect.gt/post/1008486</guid><dc:creator><![CDATA[bjt1098]]></dc:creator><pubDate>Sun, 03 Jul 2011 18:36:13 GMT</pubDate></item><item><title><![CDATA[Reply to far partire in automatico uno script on Sun, 03 Jul 2011 17:15:27 GMT]]></title><description><![CDATA[<p dir="auto">il sito si chiama <a href="http://pasubio2.com" rel="nofollow ugc">pasubio2.com</a> e lo script "incriminato" lo trovi proprio in home appena accedi. Il cliente vorrebbe che la rotazione delle immagini partisse da subito. Grazie per l'aiuto, veramente!!<br />
Livia</p>
]]></description><link>https://dev.connect.gt/post/1008481</link><guid isPermaLink="true">https://dev.connect.gt/post/1008481</guid><dc:creator><![CDATA[livia]]></dc:creator><pubDate>Sun, 03 Jul 2011 17:15:27 GMT</pubDate></item><item><title><![CDATA[Reply to far partire in automatico uno script on Thu, 30 Jun 2011 08:55:35 GMT]]></title><description><![CDATA[<p dir="auto">per me non ci sono problemi, mi dovresti dire almeno il sito in questione però...</p>
]]></description><link>https://dev.connect.gt/post/1008483</link><guid isPermaLink="true">https://dev.connect.gt/post/1008483</guid><dc:creator><![CDATA[bjt1098]]></dc:creator><pubDate>Thu, 30 Jun 2011 08:55:35 GMT</pubDate></item><item><title><![CDATA[Reply to far partire in automatico uno script on Thu, 30 Jun 2011 07:32:41 GMT]]></title><description><![CDATA[<p dir="auto">Ciao! grazie dell'interessamento. Ho solo un problema... come ho detto ad inizio post non conosco il mondo javascript e ho difficoltà a tradurre quel che mi dici <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/274c.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--x" style="height:1.4em;width:auto;vertical-align:middle" title=":x:" alt="❌" />x:x</p>
<p dir="auto">Lo so di chiedere troppo, ma ci provo...<br />
Non è che mi potresti inviare il codice modificato per come mi suggerisci?<br />
Thanks <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f48b.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--kiss" style="height:1.4em;width:auto;vertical-align:middle" title=":kiss:" alt="💋" /><img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f48b.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--kiss" style="height:1.4em;width:auto;vertical-align:middle" title=":kiss:" alt="💋" /><img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f48b.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--kiss" style="height:1.4em;width:auto;vertical-align:middle" title=":kiss:" alt="💋" /></p>
]]></description><link>https://dev.connect.gt/post/1008480</link><guid isPermaLink="true">https://dev.connect.gt/post/1008480</guid><dc:creator><![CDATA[livia]]></dc:creator><pubDate>Thu, 30 Jun 2011 07:32:41 GMT</pubDate></item><item><title><![CDATA[Reply to far partire in automatico uno script on Wed, 29 Jun 2011 09:39:21 GMT]]></title><description><![CDATA[<p dir="auto">secondo me si risolve con  setTimeout(), accetta tue paramentri, stringa contentente "l'azione" da fare (di solito una funzione, anche con relativi parametri) e i millisendo dopo i quali esegue l'azione.<br />
la funzione esegue una sola volta l'azione, la ritarda.<br />
quindo potresti fare una funzione ricorsiva, anche sfruttando initi()</p>
<p dir="auto">function init(){</p>
<p dir="auto">/*<br />
tutto quelle che la funzione gia fa....</p>
<p dir="auto">*/</p>
<p dir="auto">ogniQuantiSecondi=5;<br />
setTimeout("init();", ogniQuantiSecondi*1000);<br />
} // EEND init()</p>
<p dir="auto">initi la continui a mettere nel onload di body e ogni "ogniQuantiSecondi" la funzione vienee richiamata.</p>
]]></description><link>https://dev.connect.gt/post/1008484</link><guid isPermaLink="true">https://dev.connect.gt/post/1008484</guid><dc:creator><![CDATA[bjt1098]]></dc:creator><pubDate>Wed, 29 Jun 2011 09:39:21 GMT</pubDate></item><item><title><![CDATA[Reply to far partire in automatico uno script on Fri, 10 Jun 2011 07:24:33 GMT]]></title><description><![CDATA[<p dir="auto">Questo è il codice principale. Poi c'è anche un effect.js e un prototype.js.<br />
Se serve posto anche quelli. Grazie</p>
<pre><code>Showcase = Class.create(Abstract, {
    initialize: function (sections, controls, options) {
    
        this.allSections     = this.sections = sections;
        this.controls         = controls;    
        
        this.options = Object.extend({
            ratio:                     0.5,
            initialDelay:             1,
            duration:                 0.5,            
            size:                    this.sections.size()
            }, options || {});
            
        this.running         = false;
        this.queue            = new Array;
        
        this.computeMetrics();    
        
        this.sections = this.allSections.slice(this.currentIndex - this.half, this.currentIndex + this.half + 1);
        
        this.allSections.each((function (section, index) {
            section.setStyle({position: 'absolute', zIndex: Math.abs(index - this.sections.size()), left: '50%', top: '50%', marginLeft: -Math.round(section.getWidth() / 2) + 'px', marginTop: -Math.round(section.getHeight() / 2) + 'px'}).initialIndex = index;            
            
            section.observe('click', this.jump.bind(this)).observe('mouseover', function (event) {
                section.setOpacity(1);
                }).observe('mouseout', function () {
                    section.setOpacity(section.opacity);
                    }).opacity = 1;
                    
            if (!this.sections.member(section)) {
                this.queue.push(section.hide());
                }
            }).bind(this));
        
        for (i = 0; i &lt;= this.half; i++) {
            this.sections.push(this.sections.shift());
            }
            
        this.controls.invoke('observe', 'click', this.click.bind(this));            
        (this.animate.bind(this)).delay(this.options.initialDelay);
        },

    computeMetrics: function () {
        this.half             = this.currentIndex = (this.options.size - 1) / 2;        
        this.ratioStep         = Math.round(((1 - this.options.ratio) / this.currentIndex) * 100) / 100;
        this.positionStep     = Math.round(50 / this.half * 100) / 100;        
        this.maxDimensions     = this.sections.first().getDimensions();
        },
        
    click: function (event) {
        event.stop();
        var element = event.findElement('a');
        if (!this.running) {
            eval("this." + element.rel + "()");
            }        
        this.animate(element.rel);
        },
        
    previous: function () {
        if (this.options.size &lt; this.allSections.size()) {
            var sectionIn     = this.queue.shift();
            var sectionOut     = this.sections.pop();        
        
            this.sections.unshift(sectionIn);
            this.queue.push(sectionOut.fade({duration: this.options.duration}));
            } else {
                this.sections.unshift(this.sections.pop());
                }
        },
    
    next: function () {        
        if (this.options.size &lt; this.allSections.size()) {            
            var sectionIn     = this.queue.shift();
            var sectionOut     = this.sections.shift();
        
            this.sections.push(sectionIn);
            this.queue.push(sectionOut.fade({duration: this.options.duration}));
            } else {
                this.sections.push(this.sections.shift());
                }
        },
    
    jump: function (event) {
        event.stop();
        
        if (!this.running) {
            var section = this.sections[this.sections.indexOf(event.findElement('li'))];
            
            var direction = '';
            
            if (section.index &lt; this.half) {
                (this.half - section.index).times((function () {                
                    this.previous();
                    }).bind(this));
                direction = 'previous';
                } else if (section.index == this.half) {
                    } else {
                        (section.index - this.half).times((function () {
                            this.next();
                            }).bind(this));
                        direction = 'next';
                        }
            }
        
        this.animate(direction);
        },
    
    runEffects: function () {
        
        this.stackSections.bind(this).delay(this.options.duration / 2);
    
        this.running = new Effect.Parallel(
            this.effects.map(function (effect) {
                return new Effect.Parallel([
                    new Effect.Morph(effect.section, {
                        style: effect.style,
                        sync: true,
                        delay: 1,
                        transition: Effect.Transitions.linear
                        }),
                    new Effect.Appear(effect.section, {
                        to: Math.min(effect.section.ratio, 1),
                        sync: true
                        })
                    ], {
                        sync: true,
                        beforeStart: function () {                            
                            }
                        });
                }), {
                    duration: this.options.duration,
                    afterFinish: (function () {
                        this.running = false;                    
                        }).bind(this)
                    });
        },
        
    stackSections: function () {
        this.sections.each(function (section) {
            section.setStyle({zIndex: section.stackIndex});
            });
        },
        
    indexSections: function () {    
        this.sections.each((function (section, index) {
            section.index             = index;
            section.modifier         = Math.abs(Math.abs((section.index - (this.sections.size() - 1) / 2)) - this.half);
            
            section.ratio             = Math.round(((section.modifier * this.ratioStep) + this.options.ratio) * 100) / 100;            
                        
            section.width             = Math.min(Math.round(this.maxDimensions.width * section.ratio), this.maxDimensions.width);
            section.height             = Math.min(Math.round(this.maxDimensions.height * section.ratio), this.maxDimensions.height);        
            
            section.positionIndex     = (section.index - (this.sections.size() - 1) / 2);
            section.stackIndex         = Math.abs(Math.abs((section.index - (this.sections.size() - 1) / 2)) - this.half) + 1;                    
            
            section.left             = section.top = Math.round((this.half + section.positionIndex) * this.positionStep);
            section.opacity            = Math.min(section.ratio, 1);            
            }).bind(this));
        }    
});
    
Showcase.Horizontal = Class.create(Showcase, {
    
    animate: function (direction) {
        this.indexSections();
        
        this.effects = new Array();        
        this.sections.each((function (section) {
            var style = {
                left:         section.left + '%', 
                top:        '50%',
                marginTop:    -Math.abs(section.height / 2) + 'px',
                width:         section.width + 'px', 
                height:     section.height + 'px'
                };
            
            if (section.left == 0) {
                style.marginLeft = '0px';
                } else if (section.left == 50) {
                    style.marginLeft         = -Math.round(section.width / 2) + 'px';                    
                    } else if (section.left == 100) {
                        style.marginLeft     = -section.width + 'px';
                        } else {
                            style.marginLeft = -Math.round(section.width / 2) + 'px';
                            }
            
            this.effects.push({section: section, style: style});        
            }).bind(this));

        this.currentIndex = this.sections[this.half].initialIndex;            
        
        this.runEffects();
        }
    
    });
</code></pre>
]]></description><link>https://dev.connect.gt/post/1008479</link><guid isPermaLink="true">https://dev.connect.gt/post/1008479</guid><dc:creator><![CDATA[livia]]></dc:creator><pubDate>Fri, 10 Jun 2011 07:24:33 GMT</pubDate></item><item><title><![CDATA[Reply to far partire in automatico uno script on Thu, 09 Jun 2011 22:26:17 GMT]]></title><description><![CDATA[<p dir="auto">Intendevo lo script che hai fatto,in altre parole posta il codice.<br />
<img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/8dfea2c6-baa4-48ad-9022-ab237b734846-fumato5.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--fumato" style="height:1.4em;width:auto;vertical-align:middle" title=":fumato:" alt="" /></p>
]]></description><link>https://dev.connect.gt/post/1008477</link><guid isPermaLink="true">https://dev.connect.gt/post/1008477</guid><dc:creator><![CDATA[vnt54]]></dc:creator><pubDate>Thu, 09 Jun 2011 22:26:17 GMT</pubDate></item><item><title><![CDATA[Reply to far partire in automatico uno script on Thu, 09 Jun 2011 08:12:23 GMT]]></title><description><![CDATA[<p dir="auto">Grazie per l'interessamento al mio problema.</p>
<p dir="auto">al momento ho:<br />
&lt;body onload="init()"&gt;</p>
<p dir="auto">e questo mi fa partire in qualche modo lo script perché le immagini si dispongono per come devono apparire ma poi la rotazione di queste avviene solo cliccando le frecce mentre il cliente chiede se sia possibile far partire subito anche suddetta rotazione.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vnt54" aria-label="Profile: vnt54">@<bdi>vnt54</bdi></a>: forse non vedi il codice perché non sei andato nella sottocartella: pasubio2/prova/</p>
<p dir="auto">sapete darmi qualche suggerimento?<br />
Grazie, Livia</p>
]]></description><link>https://dev.connect.gt/post/1008478</link><guid isPermaLink="true">https://dev.connect.gt/post/1008478</guid><dc:creator><![CDATA[livia]]></dc:creator><pubDate>Thu, 09 Jun 2011 08:12:23 GMT</pubDate></item><item><title><![CDATA[Reply to far partire in automatico uno script on Wed, 08 Jun 2011 22:15:43 GMT]]></title><description><![CDATA[<p dir="auto">Non vedo nessuno script....<br />
<img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/8dfea2c6-baa4-48ad-9022-ab237b734846-fumato5.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--fumato" style="height:1.4em;width:auto;vertical-align:middle" title=":fumato:" alt="" /></p>
]]></description><link>https://dev.connect.gt/post/1008476</link><guid isPermaLink="true">https://dev.connect.gt/post/1008476</guid><dc:creator><![CDATA[vnt54]]></dc:creator><pubDate>Wed, 08 Jun 2011 22:15:43 GMT</pubDate></item><item><title><![CDATA[Reply to far partire in automatico uno script on Wed, 08 Jun 2011 18:44:09 GMT]]></title><description><![CDATA[<p dir="auto">Hai provato con l'evento onload ??</p>
<p dir="auto">&lt;body onload="evento da aprire"&gt;<br />
&lt;/body&gt;</p>
]]></description><link>https://dev.connect.gt/post/1008475</link><guid isPermaLink="true">https://dev.connect.gt/post/1008475</guid><dc:creator><![CDATA[miclen]]></dc:creator><pubDate>Wed, 08 Jun 2011 18:44:09 GMT</pubDate></item></channel></rss>