<?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[Effetti di testo?]]></title><description><![CDATA[<p dir="auto">Salve -  Vengo subito al dunque ........dovrei aggiungere un effetto stile macchina da scrivere ( text teletype ) al testo che viene recuperato da un  database Mysql</p>
<p dir="auto">ho provato in vari modi ma non ho ottenuto alcun risultato<br />
ad esempio con il Tag  TT  :</p>
<pre><code class="language-php">echo "&lt;a&gt;&lt;TT&gt; $testo &lt;/a&gt;&lt;/TT&gt;&lt;br&gt;";
</code></pre>
<p dir="auto">Conoscete una soluzione ?</p>
<p dir="auto">Di seguito posto alcuni esempi di codice stile telescrivente :</p>
<pre><code class="language-html">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Effetto Macchina da scrivere&lt;/title&gt;
&lt;/head&gt;
&lt;script language=Javascript&gt;
      &lt;!-- begin
      var max=0;
      function textlist()
      {
      max=textlist.arguments.length;
      for (i=0; i&lt;max; i++)
      this[i]=textlist.arguments[i];
      }
      tl=new textlist
      ( 
       "testo testo testo testo",    
       "testo testo testo",
       "testo testo testo"
);
      var x=0; pos=0;
      var l=tl[0].length;
      function textticker()
      {
        document.tickform.tickfield.value=tl[x].substring(0,pos)+"|";
        if(pos++==l) { pos=0; setTimeout("textticker()",1000); x++;
        if(x==max) x=0; l=tl[x].length; } else
        setTimeout("textticker()",50);
}
// end --&gt;
&lt;/script&gt;
&lt;/head&gt;

&lt;body onload="textticker()"&gt;

&lt;form name="tickform"&gt;&lt;input type=text name="tickfield" size=40&gt;&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
<p dir="auto">OPPURE :</p>
<pre><code class="language-html">&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;
&lt;script language="JavaScript1.2"&gt;
&lt;!--
var it=0
var head="display:''"
function initialize(){
mytext=typing.innerText
var myheight=typing.offsetHeight
typing.innerText=''
document.all.typing.style.height=myheight
typeit()
}
function typeit(){
typing.insertAdjacentText("beforeEnd",mytext.charAt(it))
if (it&lt;mytext.length-1){
it++
setTimeout("typeit()",100)
}
else
return
}
if (document.all)
document.body.onload=initialize
--&gt;
&lt;/script&gt;
&lt;span id="typing" style="visiblity:hidden;height:2" style=&amp;{head};&gt;Bla bla bla bla bla bla &lt;/span&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
<p dir="auto">Grazie in anticipo per un'eventuale risposta</p>
]]></description><link>https://dev.connect.gt/topic/98776/effetti-di-testo</link><generator>RSS for Node</generator><lastBuildDate>Fri, 27 Nov 2026 00:19:56 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/98776.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 Apr 2009 16:27:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Effetti di testo? on Fri, 03 Apr 2009 22:26:13 GMT]]></title><description><![CDATA[<p dir="auto">Problema  risolto !!</p>
<p dir="auto">per chi fosse interessato ecco la soluzione :</p>
<pre><code class="language-html">&lt;span id="typing" style="visiblity:hidden;height:2" style=&amp;{head};&gt;&lt;?php echo $testo; ?&gt;
</code></pre>
<p dir="auto"><img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--ciauz" style="height:1.4em;width:auto;vertical-align:middle" title=":ciauz:" alt="" /></p>
]]></description><link>https://dev.connect.gt/post/821927</link><guid isPermaLink="true">https://dev.connect.gt/post/821927</guid><dc:creator><![CDATA[exe]]></dc:creator><pubDate>Fri, 03 Apr 2009 22:26:13 GMT</pubDate></item></channel></rss>