PROZONE powered by Tophost
  Home   Forum   Regolamento Help Login Registrati   *
Statistiche
Utenti
Utenti Totali: 1707
Ultimo utente: xal
Statistiche
Posts Totali: 29470
Topics Totali: 3404
Online Oggi: 51
Presenze Massime Online: 559
(23 Luglio 2008, 14:24:28)
Utenti Online
Utenti: 0
Visitatori: 49
Totale: 49
Siti amici
Design & Multimedia

Dire e Fare il blog che ti aiuta

Wordpress
Pagine: [1]
 
Autore Topic: PHP con effetti di testo ?  (Letto 909 volte)
Control
Appena Entrato
*
Posts: 4


PHP con effetti di testo ?
« il: 3 Aprile 2009, 17:02:43 »

Salve -  Vengo subito al dunque ........dovrei aggiungere un effetto stile macchina da scrivere ( text teletype ) al testo che viene recuperato da un  database Mysql

ho provato in vari modi ma non ho ottenuto alcun risultato
ad esempio con il Tag  TT  :

echo "<a><TT> $testo </a></TT><br>";     

Conoscete una soluzione ?

Di seguito posto alcuni esempi di codice stile telescrivente :


<html>
<head>
<title>Effetto Macchina da scrivere</title>
</head>
<script language=Javascript>
      <!-- begin
      var max=0;
      function textlist()
      {
      max=textlist.arguments.length;
      for (i=0; i<max; i++)
      this=textlist.arguments;
      }
      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
  • .substring(0,pos)+"|";
        if(pos++==l) { pos=0; setTimeout("textticker()",1000); x++;
        if(x==max) x=0; l=tl
  • .length; } else
        setTimeout("textticker()",50);
}
// end -->
</script>
</head>

<body onload="textticker()">

<form name="tickform"><input type=text name="tickfield" size=40></form>
</body>
</html>





OPPURE :


<html>
<head>
</head>
<body>





<script language="JavaScript1.2">
<!--
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<mytext.length-1){
it++
setTimeout("typeit()",100)
}
else
return
}
if (document.all)
document.body.onload=initialize
-->
</script>
<span id="typing" style="visiblity:hidden;height:2" style=&{head};>Bla bla bla bla bla bla </span>
</body>
</html>



Grazie in anticipo per un'eventuale risposta


 Scioccato


Loggato
Control
Appena Entrato
*
Posts: 4


Re: PHP con effetti di testo ?
« Risposta #1 il: 3 Aprile 2009, 23:38:55 »

Problema  risolto !!

per chi fosse interessato ecco la soluzione :


<span id="typing" style="visiblity:hidden;height:2" style=&{head};><?php echo $testo; ?>


 Sorriso)
Loggato
Pagine: [1]
 
 
Salta a:  

Oggetto Iniziato da Risposte Visto Ultimo Post
Link Utili guardaqua 5 11846 Ultimo Post 25 Ottobre 2009, 17:27:51
da Sonia D
Tophost: Infrastruttura Blade Center IBM « 1 2 » Tophost 20 11825 Ultimo Post 8 Agosto 2008, 11:43:34
da daniele4home
Guida A Mod_rewrite (parte 4) doGmaI 10 13638 Ultimo Post 20 Novembre 2008, 13:37:10
da abbeyschool
Il modulo mi fa arrabbiare! puma512 2 2574 Ultimo Post 8 Febbraio 2009, 23:09:42
da puma512
Google Adsense Su Un Sito In Passato Censurato « 1 2 » PSYKKO 16 6698 Ultimo Post 17 Gennaio 2007, 00:23:51
da Diavolo_Rosso
Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC
Traduzione Italiana a cura di SMItalia

TinyPortal v0.9.8 © Bloc
XHTML 1.0 Valido! CSS Valido!


Ultima visita di Google a questa pagina Oggi alle 05:36:15