Red de conocimiento informático - Conocimiento sistemático - Buscar código de efectos de página web

Buscar código de efectos de página web

Efectos especiales de texto para efectos de escritura [Modifique solo el texto mostrado]

[Siga las instrucciones del paso ***1 a continuación]

====2. en HTML

ltscript language = javascript gt

var Layers =document.layers, style=document.all, Both=layers||style, idme=908601;

if(capas){ capa ref = 'documento capas'; styleRef = ""; if(estilo){ capa ref = 'styleRef =

. style';}

Función escribir contexto(obj, str){

if(capas)with(document[obj]){ document open(); ); documento.cerrar(). }

if(style)eval(obj '. InnerHTML = str ');}

vardispstr = new array("Código fuente de JavaScript");

var overMe = 0;

Función txtTyper(str, idx, idObj, spObj, clr1, clr2, delay, plysnd){

var tmp0=tmp1= ' ', skip = 100 ;

if (ambos amp ampidx lt=longitud de cadena){

if(str . charat(idx)= 'lt;'){ while(str.charAt(idx )! = ' gt')idx ; idx ; }

if(str . charat(idx)= ' amp; ' amp ampstr.charAt(idx 1)!=' '){ mientras (str. charAt( idx)! = ';')idx;idx;}

tmp0 = str.slice(0,idx);

tmp 1 = str.charat(idx); p>

if(overMe == 0 amp; ampplysnd==1){

if (navigator.plugins[0]){

if(navigator .plugins [" audio en vivo "][0]. type== "audio/basic" amp ampnavigator . javaenabled()){ document . embeds

[0].stop();

setTimeout ("document.embeds[0]). play(false)", 100);}

} else if (document.all){

Ding. stop();

setTimeout("Ding.

Run()", 100); }

overMe = 1; } else overMe = 0;

writeOnText(idObj, " ltspan class = " spObj " gt; ltfont color =' " clr1 " ' > tmp 0 " lt;/font gt; ltfont color='" clr2

"′ gt; " tmp 1 " lt;/font gt; lt/spangt."); p> p>

setTimeout(" txt typer(" str " ', " idx ", ' " idObj " ', ' " spObj " ', ' clr1 " ', ' " clr2 " ', " retraso ", " plysnd " ), retraso);}}

función init(){ txt typer(dispStr[0], 0, ' ttl0 ', ' ttl1 ', ' #339933 ', ' #99FF33 ', 300 , 0 ); }

lt/script gt;

ltBODY onload = init() gt

ltDIV clase = TTL 1 id = TTL 0 gt; lt/ DIV gt;

lt/BODY gt;