<?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[Javascript Vertical Image Scroller]]></title><description><![CDATA[<p dir="auto">Ciao a tutti gente...</p>
<p dir="auto">Sono incasinato con javascript...<br />
Io voglio creare un auto scorrimento di immagini (slideshow) dentro una tabella all'interno del mio sito...<br />
Adesso io ho fatto delle ricerche e ho trovato una svarieta' di codice bello epronto da inserire dove mi pare nella mia pagina,,,<br />
ma pultroppo ogni codice che ho analizato per qualche motivo non rientrava nelle mie esigenze...<br />
soltanto uno che e' esattamente cio' che cerco...<br />
ma pultroppo non so per quale motivo non mi funge.... <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
<p dir="auto">Vorrei postare il codice cosi qualcuno magari (gentilmente) mi faccia capire dove vi e' qualche possibile errore...</p>
<p dir="auto">PS: Tutto il codice sta dentro una tabella posizionata in basso a sinistra sotto il mio DHTML menu'...</p>
<pre><code>&lt;style TYPE="text/css"&gt;
	&lt;!--
	.TextScrollStyle &amp;#123;
		visibility&amp;#58;hidden;
		font-family&amp;#58;Verdana;
		font-weight&amp;#58;bold;
		text-align&amp;#58;center;
		padding&amp;#58;0;
		margin&amp;#58;0;
		width&amp;#58;150;
		overflow&amp;#58;hidden;
	&amp;#125;

	--&gt;
	&lt;/style&gt;
&lt;script type="text/javascript" language="JavaScript"&gt;
&lt;!-- 
// Use Freely as long as following disclaimer is intact &amp;#58;&amp;#58;
//---------------------------------------------------------------
// Cross Browser Multi-Directional Scroller v1.1 18th January 2005
// This script written by Rik Comery. [url]www.ricom.co.uk[/url]
// For support, visit the "Resources" section at [url]www.ricom.co.uk[/url]           
// All rights reserved.   
                                     
Article = new Array;
i=0;

/* DEFINE SCROLLER ELEMENTS
  Define new scroller elements here in the following format.
  Article&amp;#91;i&amp;#93; = new Array &amp;#40;"display text", "URL", "frame target to load link in"&amp;#41;;i++  
  Note&amp;#58; If you do not want the item to be a link, change the URL value to "none".
*/
  Article&amp;#91;i&amp;#93; = new Array &amp;#40;"[img]images/aibodm/abit.jpg[/img]", "http&amp;#58;//www.abit-usa.com", "comp"&amp;#41;;i++ 
  Article&amp;#91;i&amp;#93; = new Array &amp;#40;"[img]images/aibodm/aopen.jpg[/img]", "http&amp;#58;//www.aopen.com.tw", "comp"&amp;#41;;i++   
  Article&amp;#91;i&amp;#93; = new Array &amp;#40;"[img]images/aibodm/asrock.jpg[/img]", "http&amp;#58;//www.asrock.com/", "comp"&amp;#41;;i++  
  Article&amp;#91;i&amp;#93; = new Array &amp;#40;"[img]images/aibodm/asus.jpg[/img]", "http&amp;#58;//usa.asus.com/index.htm", "comp"&amp;#41;;i++
  Article&amp;#91;i&amp;#93; = new Array &amp;#40;"[img]images/aibodm/connect3djpg.jpg[/img]", "http&amp;#58;//www.connect3d-us.com/index.html", "comp"&amp;#41;;i++
  Article&amp;#91;i&amp;#93; = new Array &amp;#40;"[img]images/aibodm/dfi.gif[/img]", "http&amp;#58;//www.dfi.com.tw", "comp"&amp;#41;;i++
  Article&amp;#91;i&amp;#93; = new Array &amp;#40;"[img]images/aibodm/diamondlogo.jpg[/img]", "http&amp;#58;//www.diamondmm.com", "comp"&amp;#41;;i++
  Article&amp;#91;i&amp;#93; = new Array &amp;#40;"[img]images/aibodm/ecs_logo.jpg[/img]", "http&amp;#58;//www.ecs.com.tw", "comp"&amp;#41;;i++
  Article&amp;#91;i&amp;#93; = new Array &amp;#40;"[img]images/aibodm/eqs.jpg[/img]", "http&amp;#58;//www.eqscomputers.com", "comp"&amp;#41;;i++
  Article&amp;#91;i&amp;#93; = new Array &amp;#40;"[img]images/aibodm/hislogo.jpg[/img]", "http&amp;#58;//www.hisdigital.com/html/home.php", "comp"&amp;#41;;i++
  Article&amp;#91;i&amp;#93; = new Array &amp;#40;"[img]images/aibodm/jetway.jpg[/img]", "http&amp;#58;//www.jetway.com.tw", "comp"&amp;#41;;i++
  Article&amp;#91;i&amp;#93; = new Array &amp;#40;"[img]images/aibodm/MSI_Logo.jpg[/img]", "http&amp;#58;//www.msicomputer.com/index2.asp", "comp"&amp;#41;;i++
  Article&amp;#91;i&amp;#93; = new Array &amp;#40;"[img]images/aibodm/pcpartner.jpg[/img]", "http&amp;#58;//www.pcpartner.com", "comp"&amp;#41;;i++
  Article&amp;#91;i&amp;#93; = new Array &amp;#40;"[img]images/aibodm/powercolorlogo.jpg[/img]", "http&amp;#58;//www.powercolor.com/index.htm", "comp"&amp;#41;;i++
  Article&amp;#91;i&amp;#93; = new Array &amp;#40;"[img]images/aibodm/sapphire.jpg[/img]", "http&amp;#58;//www.sapphiretech.com", "comp"&amp;#41;;i++
  Article&amp;#91;i&amp;#93; = new Array &amp;#40;"[img]images/aibodm/shuttle.jpg[/img]", "http&amp;#58;//www.shuttle.com", "comp"&amp;#41;;i++
  Article&amp;#91;i&amp;#93; = new Array &amp;#40;"[img]images/aibodm/visiontech.jpg[/img]", "http&amp;#58;//www.visiontek.com", "comp"&amp;#41;;i++


////// SCROLLER CONFIGURATION ///////////////////////////////////////////////////////////////////  
orientation = "vertical"        // Orientation of scroller &amp;#40;Horizontal or vertical&amp;#41;
scrollerWidth = "150"             // Width of entire scroller.
scrollerHeight = "200"             // Height of Scroller.
borderWidth = 0                   // Width of border. &amp;#40;use 0 for no border&amp;#41;.
borderColour = "#006600"          // Colour of scroller border. &amp;#40;Use either hexadecimal or text values. e.g. "#FF0000" or "Red"&amp;#41; 
backColour = "white"              // Colour of scroller background. &amp;#40;Use either hexadecimal or text values. e.g. "#FF0000" or "Red"&amp;#41; 
staticColour = "#000000"          // Colour of scroller items that are NOT a link. &amp;#40;including scrollerDivider characters&amp;#41;
stopScroll = 1                    // Pause the scroller on mouseOver. &amp;#40;use 0 for no.&amp;#41;
textAlignment="center"            // Alignment of each scroller item.  Only really makes a difference on vertical scroller
                                  // &amp;#40;center, left, right, justify&amp;#41;

// Scroller Links
linkFont = "arial"                // Font of scroller links;
linkWeight = "normal"             // Weight of scroller links;
linkColour = "#006600"            // Colour of scroller links
linkSize = "10"                   // Size of links &amp;#40;in points&amp;#41;
linkDecoration = "none"           // Decoration of links. &amp;#40;underline, overline, none&amp;#41;

// Scroller Links On MouseOver
slinkFont = "arial"               // Font of scroller links;
slinkWeight = "normal"            // Weight of scroller links;
slinkColour = "#AFAF9D"           // Colour of scroller links
slinkSize = "10"                  // Size of links &amp;#40;in points&amp;#41;
slinkDecoration = "underline"     // Decoration of links. &amp;#40;underline, overline, none&amp;#41;

scrollerDivider = "" // Character to place between each scroller item. 
                                  // &lt;img&gt; tags can be used if an image is required. 
                                  // Use "0" for nothing.  For Vertical scrollers, it is best to use "
"
/* 
  Because Netscape version 4 does not support this scroller, configure the values below so NS4 users do not see an error. 
  In the scroller's place will be a static title which can be a link if require.  The appearance of the static text &amp;#40;colour, scroller border etc&amp;#41;
  will be exactly the same as for the working version in other browsers.
*/
ns4Text = "Click Here to view details on our partners.";  // Alternative text to display in Netscape 4.
ns4URL = "https&amp;#58;//";            // URL of link in NS4. If no URL is required, enter "none"
ns4Target = "comp";                           // Frame target for link in NS4


////// DO NOT EDIT BELOW THIS LINE  ///////////////////////////////////////////////////////////////////

//Browser Sniffer
var isIE = &amp;#40;document.getElementById &amp;&amp; document.all&amp;#41;?true&amp;#58;false;
var isNS4 = &amp;#40;document.layers&amp;#41;?true&amp;#58;false;
var isNS6 = &amp;#40;document.getElementById &amp;&amp; !document.all&amp;#41;?true&amp;#58;false;
var isLoaded=false;

style='&lt;style type="text/css"&gt;';
style+='p&amp;#123;font-family&amp;#58;'+linkFont+'; color&amp;#58;'+staticColour+'; font-size&amp;#58;'+linkSize+'pt; font-weight&amp;#58;'+linkWeight+'; text-align&amp;#58;'+textAlignment+'&amp;#125;';
style+='a.rcScroller,a.rcScroller&amp;#58;active,a.rcScroller&amp;#58;visited&amp;#123;color&amp;#58;'+linkColour+';text-decoration&amp;#58;'+linkDecoration+'; font-weight&amp;#58;'+linkWeight+'&amp;#125;';
style+='a.rcScroller&amp;#58;hover&amp;#123;color&amp;#58;'+slinkColour+';text-decoration&amp;#58;'+slinkDecoration+'; font-weight&amp;#58;'+slinkWeight+'&amp;#125;';
style+='rcScrollerHoverNS&amp;#123;color&amp;#58;red;text-decoration&amp;#58;'+slinkDecoration+'; font-weight&amp;#58;'+slinkWeight+'&amp;#125;';
style+='&lt;\/style&gt;';
document.writeln&amp;#40;style&amp;#41;;

// Build the scroller and place it on the page
function buildScroller&amp;#40;&amp;#41;
&amp;#123;
  boundry='&lt;div name="boundry" id="boundry" style="position&amp;#58;relative"&gt;&lt;/div&gt;';
  document.writeln&amp;#40;boundry&amp;#41;;
&amp;#125;

function loadScroller&amp;#40;&amp;#41;&amp;#123;
  if&amp;#40;isNS4&amp;#41;&amp;#123;
    scroller='&lt;table border="0" cellpadding="0" cellspacing="0" width="'+scrollerWidth+'" bgcolor="'+borderColour+'"&gt;&lt;tr&gt;&lt;td&gt;'
    scroller+='&lt;table border="0" cellpadding="3" cellspacing="1" width="100%" height="'+scrollerHeight+'" bgcolor="'+backColour+'"&gt;&lt;tr&gt;&lt;td align="center" nowrap&gt;

';
    if&amp;#40;ns4URL.toLowerCase&amp;#40;&amp;#41;!="none"&amp;#41;&amp;#123;scroller+='[url="'+ns4URL+'"]'+ns4Text+'[/url]';&amp;#125;
    else&amp;#123;scroller+=ns4Text;&amp;#125; 
    scroller+='&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;'   
  &amp;#125;else&amp;#123;
    scroller='&lt;table border="0" cellpadding="0" cellspacing="0" style="width&amp;#58;'+scrollerWidth+';height&amp;#58;'+scrollerHeight+';border&amp;#58;'+borderWidth+'px solid '+borderColour+';background-color&amp;#58;'+backColour+'"&gt;';
    scroller+='&lt;tr valign="middle"&gt;&lt;td&gt;&lt;div id="div" style="';
    if&amp;#40;orientation.toLowerCase&amp;#40;&amp;#41;=="vertical"&amp;#41;&amp;#123;scroller+='height&amp;#58;'+scrollerHeight+';';&amp;#125;
    scroller+='width&amp;#58;'+scrollerWidth+'; position&amp;#58;relative; background-color&amp;#58;'+backColour+'; overflow&amp;#58;hidden"&gt;';
    scroller+='&lt;div id="div1" style="position&amp;#58;relative; left&amp;#58;0; z-index&amp;#58;1"&gt;';
    scroller+='&lt;table border="0" name="table" id="table"';
    if&amp;#40;orientation.toLowerCase&amp;#40;&amp;#41;=="vertical"&amp;#41;&amp;#123;scroller+='style="width&amp;#58;'+scrollerWidth+'"';&amp;#125;
    scroller+='&gt;&lt;tr&gt;';
    y=0;
    while &amp;#40;y&lt;4&amp;#41;
    &amp;#123;
      for &amp;#40;x=0; x&lt;&amp;#40;Article.length&amp;#41;; x++&amp;#41;
      &amp;#123;
        if&amp;#40;orientation.toLowerCase&amp;#40;&amp;#41;=="vertical"&amp;#41;&amp;#123;scroller+='&lt;tr&gt;';&amp;#125;
        scroller+='&lt;td ';
        if&amp;#40;orientation.toLowerCase&amp;#40;&amp;#41;=="horizontal"&amp;#41;&amp;#123;scroller+='nowrap';&amp;#125; if&amp;#40;stopScroll==1&amp;#41;&amp;#123;scroller+=' onMouseOver="stopScroller&amp;#40;&amp;#41;;" onMouseOut="setWidth&amp;#40;&amp;#41;"';&amp;#125;
        scroller+='&gt;

';
        if&amp;#40;Article&amp;#91;x&amp;#93;&amp;#91;1&amp;#93;.toLowerCase&amp;#40;&amp;#41;!="none"&amp;#41;&amp;#123;scroller+='&lt;a class="rcScroller" href="'+Article&amp;#91;x&amp;#93;&amp;#91;1&amp;#93;+'" target="'+Article&amp;#91;x&amp;#93;&amp;#91;2&amp;#93;+'" &gt;'+Article&amp;#91;x&amp;#93;&amp;#91;0&amp;#93;+'&lt;\/a&gt;';
        &amp;#125;else&amp;#123;scroller+=Article&amp;#91;x&amp;#93;&amp;#91;0&amp;#93;;&amp;#125;          
        scroller+='&lt;/p&gt;&lt;\/td&gt;';
        
        if&amp;#40;orientation.toLowerCase&amp;#40;&amp;#41;=="vertical"&amp;#41;&amp;#123;scroller+='&lt;\/tr&gt;';&amp;#125;
              
        if&amp;#40;scrollerDivider.toLowerCase&amp;#40;&amp;#41; != "none"&amp;#41;&amp;#123;scroller+='&lt;td nowrap&gt;

'+scrollerDivider+'&lt;\/p&gt;&lt;\/td&gt;';&amp;#125;
      &amp;#125;
      y++
    &amp;#125;
    scroller+='&lt;\/tr&gt;&lt;\/table&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/td&gt;&lt;\/tr&gt;&lt;\/table&gt;';  
  &amp;#125;
  document.getElementById&amp;#40;"boundry"&amp;#41;.innerHTML=scroller;
  setWidth&amp;#40;&amp;#41;;
&amp;#125;


// Ensure the width of the scroller is divisible by 2. This allows smooth flowing of the scrolled content
function setWidth&amp;#40;&amp;#41;
&amp;#123; 
  tableObj=&amp;#40;isIE&amp;#41;?document.all&amp;#40;"table"&amp;#41;&amp;#58;document.getElementById&amp;#40;"table"&amp;#41;; 
  obj=&amp;#40;isIE&amp;#41;?document.all.div1&amp;#58;document.getElementById&amp;#40;"div1"&amp;#41;;   
  objWidth=&amp;#40;orientation.toLowerCase&amp;#40;&amp;#41;=="horizontal"&amp;#41;?getOffset&amp;#40;tableObj,"width"&amp;#41;&amp;#58;getOffset&amp;#40;tableObj,"height"&amp;#41;;
  HalfWidth=Math.floor&amp;#40;objWidth/2&amp;#41;;
  newWidth = &amp;#40;HalfWidth*2&amp;#41;+2;
  obj.style.width=newWidth
  moveLayer&amp;#40;obj, newWidth&amp;#41;;
  
&amp;#125;

// Move the layer by one pixel to the left
function moveLayer&amp;#40;obj, width&amp;#41;
&amp;#123;
  
  maxLeft = &amp;#40;0-&amp;#40;width/2&amp;#41;+2&amp;#41;/2
  if&amp;#40;orientation.toLowerCase&amp;#40;&amp;#41;=="horizontal"&amp;#41;&amp;#123;
    obj.style.left=&amp;#40;parseInt&amp;#40;obj.style.left&amp;#41; &lt;= maxLeft&amp;#41;?0&amp;#58;parseInt&amp;#40;obj.style.left&amp;#41;-1
  &amp;#125;else&amp;#123;
    if&amp;#40;obj.style.top==""&amp;#41;&amp;#123;obj.style.top=0;&amp;#125;
   // alert&amp;#40;obj.style.top&amp;#41;
    if &amp;#40;parseInt&amp;#40;obj.style.top&amp;#41;&lt;&amp;#40;0-&amp;#40;width/2&amp;#41;+6&amp;#41;&amp;#41;&amp;#123;
      obj.style.top = 0
    &amp;#125;else&amp;#123;
      obj.style.top = parseInt&amp;#40;obj.style.top&amp;#41;-1
    &amp;#125;
  &amp;#125;
  timer = setTimeout &amp;#40;"moveLayer&amp;#40;obj, "+width+"&amp;#41;;", 25&amp;#41;; 
&amp;#125;

// Get width and height of layer
function getOffset&amp;#40;obj, dim&amp;#41; 
&amp;#123;
  if&amp;#40;dim=="width"&amp;#41;
  &amp;#123;
    oWidth = obj.offsetWidth
    return oWidth
  &amp;#125;  
  else if&amp;#40;dim=="height"&amp;#41;
  &amp;#123;
    oHeight = obj.offsetHeight
    return oHeight
  &amp;#125;    
&amp;#125;

function stopScroller&amp;#40;&amp;#41;
&amp;#123;
  clearTimeout&amp;#40;timer&amp;#41;  
&amp;#125;

////// END OF SCRIPT  ///////////////////////////////////////////////////////////////////
//--&gt;

&lt;/script&gt;
</code></pre>
<p dir="auto">Cosa molto strana ...<br />
Solitamente nei Javascript vi e' uno script di lancio per ogni funzione di tipo &lt;body onLoad="startscroll()"&gt; ma non vedo nessun tipo di script esecutore qui... "forse mi sbaglio"<br />
Se qualcuno mi puo' aiutare a capire quanto scritto sopra gli sono molto grato...</p>
<p dir="auto">Grazie</p>
]]></description><link>https://dev.connect.gt/topic/7882/javascript-vertical-image-scroller</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 22:58:06 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/7882.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Feb 2006 19:45:55 GMT</pubDate><ttl>60</ttl></channel></rss>