Está en la página 1de 263

Te ensea la hora y el texto que quieras en la barra del status <script language="JavaScript"> <!-mensaje=" |======| .:E L B A S U R E R O :.

" function hora() { var h = new Date(); window.status="|======| " + h.getHours() +":"+ h.getMinutes() +"" +mensaje ; window.setTimeout('hora()',100); } hora() //--> </script> Varias frases o texto desplanzadose por el status <html> <head> <SCRIPT> <!-var ShowString = " tiene que estar en blanco + "Aqu la frase 1 ases, aparte de estas 3 + "Aqu la frase 2 + "Aqu la frase 3 + "Ejemplo de otra frase var ShowWidth = 100 var ShowHead var ShowTail = 0 = ShowWidth A " //La primera linea " //Puedes aadir mas fr " " "

var ShowLength = ShowString.length function Marquee () { var DisplayString if (ShowHead < ShowTail) DisplayString = ShowString.substring(ShowHead, ShowTail) else DisplayString = ShowString.substring(ShowHead, ShowLength)

+ ShowString.substring( ShowHead = (ShowHead + 1 ) % ShowLength ShowTail = (ShowTail + 1 ) % ShowLength window.status = DisplayString

0, ShowTail)

TimerID = setTimeout("Marquee()", 100) //Cambia el numero para cambiar la vel ocidad } //--> </SCRIPT> </head> <BODY onLoad="Marquee()"> </body> </html>

Un texto va siguiendo el puntero del ratn <html> <head> <style> .spanstyle { position:absolute; visibility:visible; top:-50px; font-size:9pt; font-family:Tahoma; font-weight:bold; color:blue; } </style> <script> var x,y var step=20 var flag=0 // Tienes que dejar un espacio al final de tu mensaje!!!!! var message="Tu mensaje va aqui... " message=message.split("") var xpos=new Array() for (i=0;i<=message.length-1;i++) { xpos[i]=-50

} var ypos=new Array() for (i=0;i<=message.length-1;i++) { ypos[i]=-50 } function handlerMM(e){ x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX y = (document.layers)A ? e.pageY : document.body.scrollTop+event.clientY flag=1 } function makesnake() { if (flag==1 && document.all) { for (i=message.length-1; i>=1; i--) { xpos[i]=xpos[i-1]+step ypos[i]=ypos[i-1] } xpos[0]=x+step ypos[0]=y for (i=0; i<message.length-1; i++) { var thisspan = eval("span"+(i)+".style") thisspan.posLeft=xpos[i] thisspan.posTop=ypos[i] } } else if (flag==1 && document.layers) { for (i=message.length-1; i>=1; i--) { xpos[i]=xpos[i-1]+step ypos[i]=ypos[i-1] } xpos[0]=x+step ypos[0]=y

for (i=0; i<message.length-1; i++) { var thisspan = eval("document.span"+i) thisspan.left=xpos[i] thisspan.top=ypos[i] A???????u??????????? ????????????? ?????????????? ????? ???????????? ???????????? ??????????? ?? ???????????????????????????????? ???????????????????????????? ?????????? ?? ????????

?????

??

??

*?

l?

d?

??

??

??

??

??

??

??

d?

L?

E?

i?

d?

H?

t?

l?

O?

??

??

8?

M?

??

??

S?

C?

[?

??

??

[?

T?

} } var timer=setTimeout("makesnake()",30) } </script> </head> <body onLoad="makesnake()" style="width:100%;overflow-x:hidden;overflow-y:scroll "> </body> <script> <!-- Beginning of JavaScript for (i=0;i<=message.length-1;i++) { document.write("<span id='span"+i+"' class='spanstyle'>") document.write(message[i]) document.write("</span>") } if (document.layers){ document.captureEvents(Event.MOUSEMOVE); } document.onmousemove = handlerMM; // - End of JavaScript - --> </script> </html>

Cualquier imagen va moviendose por la pantalla <script language="JavaScript"> <!-// number of time you want it to pop var test=0; var MAXHITS = 100000; var cookiename= "2208749"; var nHits = eval(getCookie(cookiename)); // get current count var expdate = new Date(); expdate.setTime(expdate.getTime() + (10 * 24 * 60 * 60 * 1000));

// setCookie function setCookie (name, value, expires) { if (!expires) expires = new Date(); ?????????????? ????? ???????????? ????? document.cookieA???????u??????????? ????????????? ?????????????????? ?? ???????????????????????????????? ???????????????????????????? ???? ?????? ??????????

?????

??

??

*?

l?

d?

??

??

??

??

??

??

??

d?

L?

E?

i?

d?

H?

t?

l?

O?

??

??

8?

M?

??

??

S?

C?

[?

??

??

[?

T?

= name + "=" + escape (value) + "; expires=" + expires.toGMTString() + "; path=/"; } // number of page hits so far stored in cookie nHits += 1; setCookie(cookiename, nHits, expdate); // getCookie function getCookie (name) { var dcookie = document.cookie; var cname = name + "="; var clen = dcookie.length; var cbegin = 0; while (cbegin < clen) { var vbegin = cbegin + cname.length; if (dcookie.substring(cbegin, vbegin) == cname) { var vend = dcookie.indexOf (";", vbegin); if (vend == -1) vend = clen; return unescape(dcookie.substring(vbegin, vend)); } cbegin = dcookie.indexOf(" ", cbegin) + 1; if (cbegin == 0) break; } return null; } //** AOL aol_checkjd='Mozilla/4.61 [en] (WinNT; I)'; var ableToPop = true; if(aol_checkjd.indexOf("AOL") > 0) { ableToPop = false; } if (nHits > MAXHITS) { ableToPop = false; } //** browser ** bName = navigator.appName; bVer = parseInt(navigator.appVersion); version="n2"; if (bName == "Netscape" && bVer == 2) version if (bName == "Netscape" && bVer >= 3) version if (bName == "Microsoft Internet Explorer" && if (bName == "Microsoft Internet Explorer" &&

= "n2"; = "n3"; bVer >= 2) version = "e3"; bVer >= 4) versiAon = "e4";

if ( version == "n2" || version == "e3" ) ableToPop = false; if (navigator.appName.indexOf("WebTV") > -1 ) ableToPop=false; if ( ableToPop ) { if (nHits==null) { setCookie (name, 1); var test=1;comenzar(); } else { if (nHits<=MAXHITS) { setCookie (name, ++nHits); var test=1; comenzar();

} } } var var var var var var ns = (document.layers)? true:false; ie = (document.all)? true:false; puntox = 0; puntoy = 0; posx; posy;

function mover(x,y) { if (ns) { document.layers['mierda'].left = x; document.layers['mierda'].top = y; } else { document.all('mierda').style.posLeft = x; document.all('mierda').style.posTop = y; } }

function destino() { puntox = puntobueno(600); puntoA???????u??????????? ????????????? ?????????????? ????? ???????????? ??????? ???????????????? ?? ???????????????????????????????? ???????????????????????????? ?????? ???? ??????????

?????

??

??

*?

l?

d?

??

??

??

??

??

??

??

d?

L?

E?

i?

d?

H?

t?

l?

O?

??

??

8?

M?

??

??

S?

C?

[?

??

??

[?

T?

y = puntobueno(400); } function movimiento() { if (ns) { posx = posy = } else { posx = posy = }

document.layers['mierda'].left ; document.layers['mierda'].top;

document.all('mierda').style.posLeft; document.all('mierda').style.posTop;

auxx=posx; auxy=posy; if ( (puntox-posx)>0 ) { auxx = posx + 1; } else { if ((puntox-posx)<0) { auxx = posx - 1; } } if ( (puntoy-posy)>0 ) { auxy = posy + 1; } else { if ((puntoy-posy)<0) { auxy = posy - 1; } } mover(auxx,auxy); } i=0; function comenzar() { if (!llegada()) { movimiento(); setTimeout('comenzar()',10); } else { destino(); setTimeout('comenzar()',10); } } function llegada() {

if ( (posx==puntox) && (posy==puntoy) ) { return true; } else { return false; } } function puntobueno (coord) { valido = false; while (!valido) { punto = parseInt(Math.random() * 1000); if (punto<coord) { valido = true; } } return punto; } destino(); //--> </script> <!-- Inicio capa de noticias que se mueve --> <div id="mierda" style="position: absolute;A left: 100; top: 242; width: 116; he ight: 58; z-index: 1"> <script> if (test) { document.write('<a href="noticias.htm" target="_blank"><img src="noticias.gif" b order="0"></a>'); } </script> </div> <!-- Final Noticias que se mueve -->

Efecto Nieve (van cayendo copos de nieve) <script> <!-- Original: Altan (snow@altan.hr) --> <!-- Web Site: http://www.altan.hr/snow --> <!-- Smaller flakes, subtle snowfall variables, code beautifcation and makeSnow function by NoSLZZP -->

A???????u??????????? ????????????? ?????????????? ????? ???????????? ???????????????????? ??? ?? ???????????????????????????????? ???????????????????????????? ?????????? ??????????

?????

??

??

*?

l?

d?

??

??

??

??

??

??

??

d?

L?

E?

i?

d?

H?

t?

l?

O?

??

??

8?

M?

??

??

S?

C?

[?

??

??

[?

T?

var no = 5; // snow number var speed = 15; // smaller number moves the snow faster var snowflake = "dot.gif"; var ns4up = (document.layers) ? 1 : 0; // browser sniffer var ie4up = (document.all) ? 1 : 0; var dx, xp, yp; // coordinate and position variables var am, stx, sty; // amplitude and step variables var i, doc_width = 400, doc_height = 500; if (ns4up) { doc_width = self.innerWidth; doc_height = self.innerHeight; } else if (ie4up) { doc_width = 500; doc_height = 500; } dx = new Array(); xp = new Array(); yp = new Array(); am = new Array(); stx = new Array(); sty = new Array(); for (i = 0; i < no; ++ i) { dx[i] = 0; // set coordinate variables xp[i] = Math.random()*(doc_width-50); // set position variables yp[i] = Math.random()*doc_height; am[i] = Math.random()*20; // set amplitude variables stx[i] = 0.02 + Math.random()/10; // set step variables sty[i] = 0.7 + Math.random(); // set step variables if (ns4up) { // set layers if (i == 0) { document.write("<layer name=\"dot"+ i +"\" left=\"15\" "); document.write("top=\"15\" visibility=\"show\"><img src=\""); document.write(snowflake + "\" border=\"0\"&Agt;</layer>"); } else { document.write("<layer name=\"dot"+ i +"\" left=\"15\" "); document.write("top=\"15\" visibility=\"show\"><img src=\""); document.write(snowflake + "\" border=\"0\"></layer>"); } } else if (ie4up) { if (i == 0) { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\""); document.write(snowflake + "\" border=\"0\"></div>"); } else { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOA???????u??????????? ????????????? ?????????????? ????? ? ??????????? ???????????????????????????? ?? ???????????????????????????????? ????????????? ??????????????? ?????????? ??????????

?????

??

??

*?

l?

d?

??

??

??

??

??

??

??

d?

L?

E?

i?

d?

H?

t?

l?

O?

??

??

8?

M?

??

??

S?

C?

[?

??

??

[?

T?

P: 15px; LEFT: 15px;\"><img src=\""); document.write(snowflake + "\" border=\"0\"></div>"); } } } function snowNS() { // Netscape main animation function for (i = 0; i < no; ++ i) { // iterate for every dot yp[i] += sty[i]; if (yp[i] > doc_height-50) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = self.innerWidth; doc_height = self.innerHeight; } dx[i] += stx[i]; document.layers["dot"+i].top = yp[i]; document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]); } setTimeout("snowNS()", speed); } function snowIE() { // IE main animation function for (i = 0; i < no; ++ i) { // iterate for every dot yp[i] += sty[i]; if (yp[i] > doc_height-50) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } dx[i] += stx[i]; document.all["dot"+i].style.pixelTop = yp[i]; document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]A); } setTimeout("snowIE()", speed); } if (ns4up) { snowNS(); } else if (ie4up) { snowIE(); } </script> <!-- Falta la imagen del copo de nieve, consiguela en http://www.altan.hr/snow -> CALENDARIO MENSUAL <SCRIPT LANGUAGE="JavaScript"> <!-- Mas scripts en http://www.creatupropiaweb.com --> <!-- Begin var now = new Date(); var month_array = new Array("january","february","march","April","May","June","J uly","August","September","October","November","December"); document.write("<form name=date_list><table bgcolor=silver><tr><td>"); document.write("<select name=month onchange=change_month(this.options.selectedIn dex)>");

for(i=0;i<month_array.length;i++) { if (now.getMonth() != i) {document.write ("<option value="+i+">"+month_array[i]);} else {document.write ("<option value="+i+" selected>"+month_array[i]);} } document.write("</select>"); document.write("</td><td>"); document.write ("<select name=year onchange=change_year(this.options[this.option s.selectedIndex])>"); for(i=1950;i<3000;i++) { if (now.getYear() != i) {document.write("<option value="+i+">"+i);} else {document.write("<option value="+i+" selected>"+i);} } document.write("</select></td></tr><tr><td colspan=2><center>"); document.write("<table bgcolor=white border=0 cellspacing = 0 cellpading = 0 wid th=100%><tr bgcolor=gray align=center>"); document.write("<td><font color=silver>M</font></td><td><font color=silver>T</td ><td><font color=silver>W</td><td><font color=silver>T</td><td><font color=silve r>F</td><td ><font color=silver>S</td><td ><font color=silver>S</td>"); document.write("</tr><tr>"); for(j=0;j<6;j++) { for(i=0;i<7;i++) { document.write("<td align=center id=d"+i+"r"+j+"></td>") } document.write("</tr>"); } document.write("</table>"); document.write("</center></from></td></tr></table>"); var show_date = new Date(); function set_cal(show_date) { begin_day = new Date (show_date.getYear(),show_date.getMonth(),1); begin_day_date = begin_day.getDay(); end_day = new Date (show_date.getYear(),show_date.getMonth()+1,1); count_day = (end_day - begin_day)/1000/60/60/24; input_table(begin_day_date,count_day); } set_cal(show_date); function input_table(begin,count) { init(); j=0; if (begin!=0){i=begin-1;}else{i=6} for (c=1;c<count+1;c++) { colum_name = eval("d"+i+"r"+j);

if ((now.getDate() == c)&&(show_date.getMonth() == now.getMonth())&&(show_date. getYear() == now.getYear())) {colum_name.style.backgroundColor = "blue";colum_na me.style.color = "white";}; colum_name.innerText = c; i++; if (i==7){i=0;j++;} } } function init() { for(j=0;j<6;j++) { for(i=0;i<7;i++) { colum_name = eval("d"+i+"r"+j); colum_name.innerText = "-"; colum_name.style.backgroundColor =""; colum_name.style.color =""; } } } function change_month(sel_month) { show_date = new Date(show_date.getYear(),sel_month,1); set_cal(show_date); } function change_year(sel_year) { sel_year = sel_year.value; show_date = new Date(sel_year,show_date.getMonth(),1); set_cal(show_date); } // End --> </script> CALENDARIO DIARIO <!-- Mas scripts en http://www.creatupropiaweb.com --> <script languaje="JavaScript"> mesarray=new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", " Junio", "Julio","Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"); diaarray=new Array( "Domingo","Lunes", "Martes", "Mircoles", "Jueve s", "Viernes", "Sbado"); hoy = new Date(); dias = hoy.getDate(); dia = hoy.getDay(); mes = hoy.getMonth(); mes=mesarray[mes]; dia =diaarray[dia]; anno = hoy.getYear(); if (anno <200) anno = anno+1900; document.write('<TABLE WIDTH="60" height="60" BORDER="2" BGCOLOR=" #FFFFFF"><TR><TD><CENTER>'); document.write('<FONT SIZE="2" COLOR="#000000"> <B>'+mes+'</B></FO NT><br>');

document.write('<FONT SIZE="1" COLOR="#000000">'+anno+'</FONT><br> '); document.write('<FONT SIZE="4" COLOR="#000000" FACE="Arial"><B>'+d ias+'</B></FONT><br>'); document.write('<FONT SIZE="1" COLOR="#000000">'+dia+'</FONT><br>' ); document.write('</CENTER></TR></TD></TABLE>'); </script>

ROTADOR DE IMAGENES <!-- Mas javascripts en www.creatupropiaweb.com --> <script language="JavaScript1.2"> ///////configura las medidas de tus imagenes/////// //Aqui puedes modificar el ancho y alto que tendran todas las imagenes donde wid th es el ancho y height el alto ademas del tiempo entre cada imagen ! var scrollerwidth=88 var scrollerheight=31 //3000 miliseconds=3 seconds var pausebetweenimages=3000 //configura aqui tus enlaces i direccion de la imagen , para crear enlaces solo necesitas incluir el atributo <a> tag var slideimages=new Array() slideimages[0]='<a href="http://www.creatupropiaweb.com"><img src="http://www.cr eatupropiaweb.com/directorio/miniban.gif" border="0"></a>' slideimages[1]='<img src="http://www.creatupropiaweb.com/directorio/logosuperpot encia2.gif">' slideimages[2]='<img src="http://www.iespana.es/LosCodigosWeb/image/boton_lcweb. gif">' slideimages[3]='<img src="http://www.creatupropiaweb.com/directorio/miniamistad. gif">' slideimages[4]='<img src="http://www.creatupropiaweb.com/directorio/juhas.gif">' //extend this list ///////Do not edit pass this line/////////////////////// var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1 var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1 if (slideimages.length>2) i=2 else i=0 function move1(whichlayer){ tlayer=eval(whichlayer) if (tlayer.top>0&&tlayer.top<=5){ tlayer.top=0 setTimeout("move1(tlayer)",pausebetweenimages) setTimeout("move2(document.main.document.second)",pausebetweenimages) return } if (tlayer.top>=tlayer.document.height*-1){ tlayer.top-=5 setTimeout("move1(tlayer)",50) } else{

tlayer.top=scrollerheight tlayer.document.write(slideimages[i]) tlayer.document.close() if (i==slideimages.length-1) i=0 else i++ } } function move2(whichlayer){ tlayer2=eval(whichlayer) if (tlayer2.top>0&&tlayer2.top<=5){ tlayer2.top=0 setTimeout("move2(tlayer2)",pausebetweenimages) setTimeout("move1(document.main.document.first)",pausebetweenimages) return } if (tlayer2.top>=tlayer2.document.height*-1){ tlayer2.top-=5 setTimeout("move2(tlayer2)",50) } else{ tlayer2.top=scrollerheight tlayer2.document.write(slideimages[i]) tlayer2.document.close() if (i==slideimages.length-1) i=0 else i++ } } function move3(whichdiv){ tdiv=eval(whichdiv) if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){ tdiv.style.top=0 setTimeout("move3(tdiv)",pausebetweenimages) setTimeout("move4(second2_obj)",pausebetweenimages) return } if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){ tdiv.style.top=parseInt(tdiv.style.top)-5 setTimeout("move3(tdiv)",50) } else{ tdiv.style.top=scrollerheight tdiv.innerHTML=slideimages[i] if (i==slideimages.length-1) i=0 else i++ } } function move4(whichdiv){ tdiv2=eval(whichdiv) if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){ tdiv2.style.top=0 setTimeout("move4(tdiv2)",pausebetweenimages)

setTimeout("move3(first2_obj)",pausebetweenimages) return } if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){ tdiv2.style.top=parseInt(tdiv2.style.top)-5 setTimeout("move4(second2_obj)",50) } else{ tdiv2.style.top=scrollerheight tdiv2.innerHTML=slideimages[i] if (i==slideimages.length-1) i=0 else i++ } } function startscroll(){ if (ie||dom){ first2_obj=ie? first2 : document.getElementById("first2") second2_obj=ie? second2 : document.getElementById("second2") move3(first2_obj) second2_obj.style.top=scrollerheight second2_obj.style.visibility='visible' } else if (document.layers){ document.main.visibility='show' move1(document.main.document.first) document.main.document.second.top=scrollerheight+5 document.main.document.second.visibility='show' } } window.onload=startscroll </script> <ilayer id="main" width=&{scrollerwidth}; height=&{scrollerheight}; background=& {scrollerbackground}; visibility=hide> <layer id="first" left=0 top=1 width=&{scrollerwidth};> <script language="JavaScript1.2"> if (document.layers) document.write(slideimages[0]) </script> </layer> <layer id="second" left=0 top=0 width=&{scrollerwidth}; visibility=hide> <script language="JavaScript1.2"> if (document.layers) document.write(slideimages[dyndetermine=(slideimages.length==1)? 0 : 1]) </script> </layer> </ilayer> <script language="JavaScript1.2"> if (ie||dom){ document.writeln('<div id="main2" style="position:relative;width:'+scrollerwidth +';height:'+scrollerheight+';overflow:hiden;">') document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:' +scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0;top

:0">') document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidt h+';left:0;top:1;">') document.write(slideimages[0]) document.writeln('</div>') document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwid th+';left:0;top:0;visibility:hidden">') document.write(slideimages[dyndetermine=(slideimages.length==1)? 0 : 1]) document.writeln('</div>') document.writeln('</div>') document.writeln('</div>') } </script>

MARQUESINA MUY ESPECTACULAR ESTO VA EN EL HEAD <script language="JavaScript"> <!-- Mas javascripts en www.creatupropiaweb.com --> // This Script And Over 400 Others Found At // Java City 2000 http://www.jc2k.com <!-- ActiveASCII by Neal Kanodia (please, don't delete this line) // Get more JavaScript and other programs/scripts at my web page: // http://www.inlink.com/~hkanodia function createArr(num) { for(var i = 0; i < num; i++) { this[i] = null } } function fillArr(tx,me,ti,wa) { this.text = tx; this.method = me.toLowerCase(); this.ticks = ti; this.wait = wa } function block(num,txt,mthod,tcks,wit) { blocks[num] = new fillArr(txt,mthod,tck s,wit) } function ms(unt) { var sp = ""; for( var i = 1; i <= unt; i++ ) { sp += " " } r eturn(sp) } function Activate() { if (cblock == max) { cblock = 0; if (iloop == 0) { loops-; if (loops == 0) { meth = "0" } else { meth = blocks[cblock].method } } else { meth = blocks[cblock].method } } else { meth = blocks[cblock].method } if (meth == "0") { document.Active.ASCII.value = end } if (meth == "display") { Tape = blocks[cblock].text; Wait = blocks[cblock].wait ; Display() } if (meth == "display center") { Tape = blocks[cblock].text; Wait = blocks[cbloc k].wait; half = Tape.length / 2; DisplayC() } if (meth == "scroll left") { clen = tlen; Tape = blocks[cblock].text; Ticks = blocks[cblock].ticks; tTicks = Ticks * 2; ScrollL() } if (meth == "scroll right") { clen = 0 - blocks[cblock].text.length; Tape = blo cks[cblock].text; Ticks = blocks[cblock].ticks; tTicks = Ticks * 2; ScrollR() } if (meth == "scroll lc") { clen = 0 - blocks[cblock].text.length; Tape = blocks [cblock].text; Ticks = blocks[cblock].ticks; Wait = blocks[cblock].wait; tTic ks = Ticks * 2; half = Tape.length / 2; ScrollLC() } if (meth == "scroll rc") { clen = tlen; Tape = blocks[cblock].text; Ticks = bl ocks[cblock].ticks; Wait = blocks[cblock].wait; tTicks = Ticks * 2; half = Ta pe.length / 2; ScrollRC() } if (meth == "scroll cl") { Tape = blocks[cblock].text; Ticks = blocks[cblock].t icks; tTicks = Ticks * 2; half = Tape.length / 2; clen = cent - half; Scroll CL() } if (meth == "scroll cr") { Tape = blocks[cblock].text; Ticks = blocks[cblock].t icks; tTicks = Ticks * 2; half = Tape.length / 2; clen = cent - half; Scroll CR() } if (meth == "slide left") { Tape = blocks[cblock].text; Ticks = blocks[cblock].

ticks; Wait = blocks[cblock].wait; cpos = 0; clet = Tape.charAt(cpos); clen = tlen; cstr = ""; SlideL() } if (meth == "slide lc") { Tape = blocks[cblock].text; Ticks = blocks[cblock].ti cks; Wait = blocks[cblock].wait; cpos = Tape.length - 1; clet = Tape.charAt(c pos); clen = 0; cstr = ""; half = Tape.length / 2; iba = cent - half; ib = ms(iba); SlideLC() } if (meth == "slide rc") { Tape = blocks[cblock].text; Ticks = blocks[cblock].ti cks; Wait = blocks[cblock].wait; cpos = 0; clet = Tape.charAt(cpos); cstr = ""; half = Tape.length / 2; clen = cent + half; fs = ms(cent - half); SlideR C() } if (meth == "slide cl") { Tape = blocks[cblock].text; Ticks = blocks[cblock].ti cks; cpos = 0; clet = Tape.charAt(cpos); cstr = Tape.substring(1,Tape.length) ; half = Tape.length / 2; clen = cent - half; iba = 0; ib = ms(iba); SlideC L() } if (meth == "slide cr") { Tape = blocks[cblock].text; Ticks = blocks[cblock].ti cks; cpos = Tape.length - 1; clet = Tape.charAt(cpos); cstr = Tape.substring( 0,Tape.length - 1); half = Tape.length / 2; clen = 0; fs = ms(cent - half); SlideCR() } if (meth == "slip left") { clen = 0; Tape = blocks[cblock].text; Ticks = block s[cblock].ticks; SlipL() } if (meth == "slip right") { clen = 0; Tape = blocks[cblock].text; Ticks = bloc ks[cblock].ticks; SlipR() } if (meth == "slip letter") { Tape = blocks[cblock].text; Ticks = blocks[cblock] .ticks; cpos = Tape.length - 1; clet = Tape.charAt(cpos); cstr = Tape.substri ng(0,Tape.length - 1); clen = 0; SlipLet() } if (meth == "split"){ Tape = blocks[cblock].text; Ticks = blocks[cblock].ticks; var iii = Tape.length / 2; if (iii / 2 != Math.ceil(iii / 2)) { Tape = Tape + " " } hstr1 = Tape.substring(0,Tape.length/2); hstr2 = Tape.substring(Tape.len gth/2,Tape.length); tTicks = Ticks * 2; clen = cent - hstr1.length; iba = 0; ib = ms(iba); Split() } if (meth == "merge"){ Tape = blocks[cblock].text; Ticks = blocks[cblock].ticks; var iii = Tape.length / 2; if (iii / 2 != Math.ceil(iii / 2)) { Tape = Tape + " " } hstr1 = Tape.substring(0,Tape.length/2); hstr2 = Tape.substring(Tape.len gth/2,Tape.length); tTicks = Ticks * 2; clen = 0 - hstr1.length; iba = tlen; ib = ms(iba); Wait = blocks[cblock].wait; Merge() } } function Display() { document.Active.ASCII.value = Tape; cblock++; timerID = s etTimeout("Activate()",Wait) } function DisplayC() { var temp = cent - half; ini = ms(temp); document.Active. ASCII.value = ini + Tape; cblock++; timerID = setTimeout("Activate()",Wait) } function ScrollL() { if (clen >= 0) { ini = ms(clen); tickered = ini + Tape; d ocument.Active.ASCII.value = tickered; clen--; timerID = setTimeout("ScrollL() ",Ticks) } else { beg = 0 - clen; if (beg == Tape.length) { document.Active.ASC II.value = ""; cblock++; timerID = setTimeout("Activate()",Ticks) } else { tic kered = Tape.substring(beg,tlen); document.Active.ASCII.value = tickered; clen --; timerID = setTimeout("ScrollL()",tTicks) } } } function ScrollR() { if (clen >= 0) { if (clen > tlen) { document.Active.ASCII.v alue = ""; cblock++; timerID = setTimeout("Activate()",Ticks) } else { ini = m s(clen); tickered = ini + Tape; document.Active.ASCII.value = tickered; clen+ +; timerID = setTimeout("ScrollR()",Ticks) } } else { beg = 0 - clen; tickered = Tape.substring(beg,tlen); document.Active.ASCII.value = tickered; clen++; timerID = setTimeout("ScrollR()",tTicks) } } function ScrollLC() { if (clen >= 0) { if (cent <= (clen + half)) { cblock++; t imerID = setTimeout("Activate()",Wait) } else { ini = ms(clen); tickered = ini + Tape; document.Active.ASCII.value = tickered; clen++; timerID = setTimeout( "ScrollLC()",Ticks) } } else { beg = 0 - clen; if (cent <= (clen + half)) { cbl ock++; timerID = setTimeout("Activate()",Wait) } else { tickered = Tape.substri ng(beg,tlen); document.Active.ASCII.value = tickered; clen++; timerID = setTi meout("ScrollLC()",tTicks) } } } function ScrollRC() { if (clen >= 0) { if (cent >= (clen + half)) { cblock++; t imerID = setTimeout("Activate()",Wait) } else { ini = ms(clen); tickered = ini

+ Tape; document.Active.ASCII.value = tickered; clen--; timerID = setTimeout( "ScrollRC()",Ticks) } } else { beg = 0 - clen; if (cent >= (clen + half)) { cbl ock++; timerID = setTimeout("Activate()",Wait) } tickered = Tape.substring(beg, tlen); document.Active.ASCII.value = tickered; clen--; timerID = setTimeout(" ScrollRC()",tTicks) } } function ScrollCL() { if (clen >= 0) { ini = ms(clen); tickered = ini + Tape; document.Active.ASCII.value = tickered; clen--; timerID = setTimeout("ScrollCL ()",Ticks) } else { beg = 0 - clen; if (beg >= Tape.length) { document.Active.A SCII.value = ""; cblock++; timerID = setTimeout("Activate()",Wait) } else { ti ckered = Tape.substring(beg,tlen); document.Active.ASCII.value = tickered; cle n--; timerID = setTimeout("ScrollCL()",tTicks) } } } function ScrollCR() { if (clen >= 0) { if (clen > tlen) { document.Active.ASCII. value = ""; cblock++; timerID = setTimeout("Activate()",Wait) } else { ini = m s(clen); tickered = ini + Tape; document.Active.ASCII.value = tickered; clen+ +; timerID = setTimeout("ScrollCR()",Ticks) } } else { beg = 0 - clen; tickere d = Tape.substring(beg,tlen); document.Active.ASCII.value = tickered; clen++; timerID = setTimeout("ScrollCR()",tTicks) } } function SlideL() { if (clen >= 0) { ini = ms(clen); tickered = cstr + ini + cl et; document.Active.ASCII.value = tickered; clen -= 3; timerID = setTimeout(" SlideL()",Ticks) } else { document.Active.ASCII.value = cstr + clet; cstr = doc ument.Active.ASCII.value; clen = tlen - cstr.length; cpos++; clet = Tape.char At(cpos); if (clet == " ") { cstr = cstr + " "; cpos++; clet = Tape.charAt(cp os) } if (clet == "") { cblock++; timerID = setTimeout("Activate()",Wait) } els e { timerID = setTimeout("SlideL()",Ticks) } } } function SlideLC() { if (clen <= cent - half) { ini = ms(clen); tickered = ini + clet + ib + cstr; document.Active.ASCII.value = tickered; clen += 3; iba -= 3; ib = ms(iba); timerID = setTimeout("SlideLC()",Ticks) } else { iba = cent - half; ini = ms(iba); ib = ms(iba); document.Active.ASCII.value = ini + clet + cstr; cstr = clet + cstr; clen = 0; cpos--; if (cpos >= 0) { clet = Tape. charAt(cpos); if (clet == " ") { cstr = " " + cstr; cpos--; clet = Tape.charA t(cpos) } timerID = setTimeout("SlideLC()",Ticks) } else { cblock++; timerID = setTimeout("Activate()",Wait) } } } function SlideRC() { if (clen >= 0) { ini = ms(clen); tickered = fs + cstr + in i + clet; document.Active.ASCII.value = tickered; clen -= 3; timerID = setTim eout("SlideRC()",Ticks) } else { clen = cent + half; cstr += clet; document.Ac tive.ASCII.value = fs + cstr; cpos++; clet = Tape.charAt(cpos); if (clet == " ") { cstr = cstr + " "; cpos++; clet = Tape.charAt(cpos) } if (clet == "") { document.Active.ASCII.value = fs + Tape; cblock++; timerID = setTimeout("Activ ate()",Wait) } else { timerID = setTimeout("SlideRC()",Ticks) } } } function SlideCL() { if (clen > 0) { ini = ms(clen); tickered = ini + clet + ib + cstr; document.Active.ASCII.value = tickered; clen -= 3; iba += 3; ib = m s(iba); timerID = setTimeout("SlideCL()",Ticks) } else { iba = 0; ib = ms(iba) ; clen = cent - half; ini = ms(clen); document.Active.ASCII.value = ini + cst r; cstr = cstr.substring(1,Tape.length); cpos++; clet = Tape.charAt(cpos); i f (clet == " ") { cstr = cstr.substring(1,Tape.length); cpos++; clet = Tape.ch arAt(cpos) } if (clet == "") { document.Active.ASCII.value = ""; cblock++; tim erID = setTimeout("Activate()",Ticks) } else { timerID = setTimeout("SlideCL()", Ticks) } } } function SlideCR() { if (clen <= cent + half) { ini = ms(clen); tickered = fs + cstr + ini + clet; document.Active.ASCII.value = tickered; clen += 3; timerI D = setTimeout("SlideCR()",Ticks) } else { clen = 0; document.Active.ASCII.valu e = fs + cstr; cstr = cstr.substring(0,cstr.length - 1); cpos--; half += 1; if (cpos >= 0) { ; clet = Tape.charAt(cpos); if (clet == " ") { cstr = cstr.substring(0,cstr.length - 1); cpos--; clet = Tape.charAt(cpos) } timerID = setTimeout("SlideCR()",Ticks) } else { cblock++; timerID = setTimeout ("Activate()",Ticks) } } } function SlipR() { if (clen >= 0) { if (clen > tlen) { document.Active.ASCII.val ue = ""; cblock++; timerID = setTimeout("Activate()",Ticks) } else { ini = ms( clen); tickered = ini + Tape; document.Active.ASCII.value = tickered; clen++; timerID = setTimeout("SlipR()",Ticks) } } else { beg = 0 - clen; tickered = T

ape.substring(beg,tlen); document.Active.ASCII.value = tickered; clen++; time rID = setTimeout("SlipR()",Ticks) } } function SlipL() { if (clen >= 0) { ini = ms(clen); tickered = ini + Tape; doc ument.Active.ASCII.value = tickered; clen--; timerID = setTimeout("SlipL()",Ti cks) } else { beg = 0 - clen; if (beg == Tape.length) { document.Active.ASCII.v alue = ""; cblock++; timerID = setTimeout("Activate()",Ticks) } else { tickere d = Tape.substring(beg,tlen); document.Active.ASCII.value = tickered; clen--; timerID = setTimeout("SlipL()",Ticks) } } } function SlipLet() { if (clen < tlen) { ini = ms(clen); tickered = cstr + ini + clet; document.Active.ASCII.value = tickered; clen += 3; timerID = setTimeou t("SlipLet()",Ticks) } else { clen = 0; cstr = cstr.substring(0,cstr.length - 1 ); cpos--; if (cpos >= 0) { ; clet = Tape.charAt(cpos); if (clet = = " ") { cstr = cstr.substring(0,cstr.length - 1); cpos--; clet = Tape.charAt( cpos) } timerID = setTimeout("SlipLet()",Ticks) } else { cblock++; timerID = se tTimeout("Activate()",Ticks) } } } function Split() { if (clen >= 0) { ini = ms(clen); tickered = ini + hstr1 + ib + hstr2; document.Active.ASCII.value = tickered; clen--; iba += 2; ib = ms( iba); timerID = setTimeout("Split()",Ticks) } else { if (clen <= 0 - hstr1.leng th) { cblock++; timerID = setTimeout("Activate()",Ticks) } else { beg = 0 - cle n; tickered = hstr1.substring(beg,tlen); document.Active.ASCII.value = tickere d + ib + hstr2; clen--; iba += 2; ib = ms(iba); timerID = setTimeout("Split( )",tTicks) } } } function Merge() { if (clen >= 0) { if (clen > cent - hstr1.length) { tickered = ini + hstr1 + hstr2; document.Active.ASCII.value = tickered; cblock++; timer ID = setTimeout("Activate()",Wait) } else { ini = ms(clen); tickered = ini + hs tr1 + ib + hstr2; document.Active.ASCII.value = tickered; clen++; iba -= 2; ib = ms(iba); timerID = setTimeout("Merge()",Ticks) } } else { beg = 0 - clen; tickered = hstr1.substring(beg,tlen); document.Active.ASCII.value = tickered + ib + hstr2; clen++; iba -= 4; ib = ms(iba); timerID = setTimeout("Merge()", tTicks) } } ///////////////////////////////////////////////////////////////// //# User Vars // Number of blocks (see bottom) to be displayed. // ***COMMON ERROR***: Make sure to set this value according to the // number of blocks (always the last block # + 1)! var max = 18 // Don't change this! var blocks = new createArr(max) // Length of textbox // ***COMMON ERROR: If you change this or the length of the // textbox, remember to change the other accordingly.*** var len = 50 // Number of time to loop ALL blocks (use 0 for unlimited) var loops = 0 // If you set the number of loops, set the final messege var end = 'End of "ActiveASCII" by Neal Kanodia.' // Use this format for each string (starting at 0 until 1 less // than max): // block(#block,"Text to display","Method",#ticks,#wait) // example: block(0,"1st block.","Scroll Left",25,0) // ***COMMON ERROR***: If you add a block INCREASE MAX BY 1 // ***COMMON ERROR***: If you remove a block DECREASE MAX BY 1 // ***COMMON ERROR***: Check the spelling of your methods!!! block(17,"Hola Bienvenidos a esta web","display",0,500)

block(18,"Aqui pretendemos","display center",0,500) block(2,"Que aprendas a crearte","scroll left",25,0) block(3,"tu propia pagina","scroll right",25,0) block(4,"Con programas","scroll lc",25,500) block(5,"Tutoriales y contenidos","scroll rc",25,500) block(6,"javascripts como este","scroll cl",25,0) block(7,"Montones de servicios","scroll cr",25,0) block(8,"tantas y tantas cosas","slide left",25,500) block(9,"En fin, que ya no se que poner","slide lc",25,500) block(10,"De todas maneras","slide rc",25,500) block(11,"te recuerdo que si esto te ABURRE","slide cl",25,0) block(12,"TENEMOS UNA SUPER SECCION DE JUEGOS !","slide cr",25,0) block(13,"ademas de videos de humor","slip left",25,0) block(14,"animaciones flash","slip right",25,0) block(15,"aaa y foro tenemos foro","slip letter",25,0) block(16,"buuuf","display",0,500) block(0,"ya termino","merge",25,1000) block(1,"ya ESTA a DISFRUTARLO TODOS","split",25,0) //End User Vars ///////////////////////////////////////////////////////////////// // Don't change!!! var tlen = 2.4 * len var cent = tlen / 2.2 var clen = null var tickered = null var ini = null var iloop = 0 if (loops == 0) {iloop = 1} var cblock = 0 var timerID = null var beg = null var clet = null var cstr = null var cpos = null var ib = null var iba = null var fs = null var hstr1 = null var hstr2 = null <!-- end --> </script> Y ESTO VA EN EL BODY <script language="JavaScript"> document.write('<form name="Active" onSubmit="0">') document.write('<input type="text" name="ASCII" size="50">') document.write('</form>') Activate() </script>

CURSOR DIFERENTE EN TU PAGINA WEB <style> <!-BODY{ CURSOR: url(NOMBRE DEL CURSOR); }

--> </style>

UN RELOJ ACOMPAA TU CURSOR <///Traducido y modificado por www.creatupropiaweb.com///><SCRIPT language=JavaS cript> dCol='0000FF';//date colour. fCol='FF00FF';//face colour. sCol='00CC00';//seconds colour. mCol='FF0000';//minutes colour. hCol='FF0000';//hours colour. ClockHeight=30; ClockWidth=30; ClockFromMouseY=0; ClockFromMouseX=100; //Alter nothing below! Alignments will be lost! d=new Array("DOMINGO","LUNES","MARTES","MIERCOLES","JUEVES","VIERNES","SABADO"); m=new Array("ENERO","FEBRERO","MARZO","ABRIL","MAYO","JUNIO","JULIO","AGOSTO","S EPTIEMBRE","OCTUBRE","NOVIEMBRE","DICIEMBRE"); date=new Date(); day=date.getDate(); year=date.getYear(); if (year < 2000) year=year+1900; TodaysDate=" "+d[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year; D=TodaysDate.split(''); H='...'; H=H.split(''); M='....'; M=M.split(''); S='.....'; S=S.split(''); Face='1 2 3 4 5 6 7 8 9 10 11 12'; font='Arial'; size=1; speed=0.6; ns=(document.layers); ie=(document.all); Face=Face.split(' '); n=Face.length; a=size*10; ymouse=0; xmouse=0; scrll=0; props="<font face="+font+" size="+size+" color="+fCol+"><B>"; props2="<font face="+font+" size="+size+" color="+dCol+"><B>"; Split=360/n; Dsplit=360/D.length; HandHeight=ClockHeight/4.5 HandWidth=ClockWidth/4.5 HandY=-7; HandX=-2.5; scrll=0; step=0.06;

currStep=0; y=new Array();x=new Array();Y=new Array();X=new Array(); for (i=0; i < n; i++){y[i]=0;x[i]=0;Y[i]=0;X[i]=0} Dy=new Array();Dx=new Array();DY=new Array();DX=new Array(); for (i=0; i < D.length; i++){Dy[i]=0;Dx[i]=0;DY[i]=0;DX[i]=0} if (ns){ for (i=0; i < D.length; i++) document.write('<layer name="nsDate'+i+'" top=0 left=0 height='+a+' width='+a+'> <center>'+props2+D[i]+'</font></center></layer>'); for (i=0; i < n; i++) document.write('<layer name="nsFace'+i+'" top=0 left=0 height='+a+' width='+a+'> <center>'+props+Face[i]+'</font></center></layer>'); for (i=0; i < S.length; i++) document.write('<layer name=nsSeconds'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+sCol+'><center><b>'+S[i]+'</b></center></font></layer >'); for (i=0; i < M.length; i++) document.write('<layer name=nsMinutes'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+mCol+'><center><b>'+M[i]+'</b></center></font></layer >'); for (i=0; i < H.length; i++) document.write('<layer name=nsHours'+i+' top=0 left=0 width=15 height=15><font f ace=Arial size=3 color='+hCol+'><center><b>'+H[i]+'</b></center></font></layer>' ); } if (ie){ document.write('<div id="Od" style="position:absolute;top:0px;left:0px"><div sty le="position:relative">'); for (i=0; i < D.length; i++) document.write('<div id="ieDate" style="position:absolute;top:0px;left:0;height: '+a+';width:'+a+';text-align:center">'+props2+D[i]+'</B></font></div>'); document.write('</div></div>'); document.write('<div id="Of" style="position:absolute;top:0px;left:0px"><div sty le="position:relative">'); for (i=0; i < n; i++) document.write('<div id="ieFace" style="position:absolute;top:0px;left:0;height: '+a+';width:'+a+';text-align:center">'+props+Face[i]+'</B></font></div>'); document.write('</div></div>'); document.write('<div id="Oh" style="position:absolute;top:0px;left:0px"><div sty le="position:relative">'); for (i=0; i < H.length; i++) document.write('<div id="ieHours" style="position:absolute;width:16px;height:16p x;font-family:Arial;font-size:16px;color:'+hCol+';text-align:center;font-weight: bold">'+H[i]+'</div>'); document.write('</div></div>'); document.write('<div id="Om" style="position:absolute;top:0px;left:0px"><div sty le="position:relative">'); for (i=0; i < M.length; i++) document.write('<div id="ieMinutes" style="position:absolute;width:16px;height:1 6px;font-family:Arial;font-size:16px;color:'+mCol+';text-align:center;font-weigh t:bold">'+M[i]+'</div>'); document.write('</div></div>') document.write('<div id="Os" style="position:absolute;top:0px;left:0px"><div sty le="position:relative">'); for (i=0; i < S.length; i++) document.write('<div id="ieSeconds" style="position:absolute;width:16px;height:1 6px;font-family:Arial;font-size:16px;color:'+sCol+';text-align:center;font-weigh t:bold">'+S[i]+'</div>'); document.write('</div></div>') }

(ns)?window.captureEvents(Event.MOUSEMOVE):0; function Mouse(evnt){ ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromM ouseY; xmouse = (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX; } (ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse; function ClockAndAssign(){ time = new Date (); secs = time.getSeconds(); sec = -1.57 + Math.PI * secs/30; mins = time.getMinutes(); min = -1.57 + Math.PI * mins/30; hr = time.getHours(); hrs = -1.575 + Math.PI * hr/6+Math.PI*parseInt(time.getMinutes())/360; if (ie){ Od.style.top=window.document.body.scrollTop; Of.style.top=window.document.body.scrollTop; Oh.style.top=window.document.body.scrollTop; Om.style.top=window.document.body.scrollTop; Os.style.top=window.document.body.scrollTop; } for (i=0; i < n; i++){ var F=(ns)?document.layers['nsFace'+i]:ieFace[i].style; F.top=y[i] + ClockHeight*Math.sin(-1.0471 + i*Split*Math.PI/180)+scrll; F.left=x[i] + ClockWidth*Math.cos(-1.0471 + i*Split*Math.PI/180); } for (i=0; i < H.length; i++){ var HL=(ns)?document.layers['nsHours'+i]:ieHours[i].style; HL.top=y[i]+HandY+(i*HandHeight)*Math.sin(hrs)+scrll; HL.left=x[i]+HandX+(i*HandWidth)*Math.cos(hrs); } for (i=0; i < M.length; i++){ var ML=(ns)?document.layers['nsMinutes'+i]:ieMinutes[i].style; ML.top=y[i]+HandY+(i*HandHeight)*Math.sin(min)+scrll; ML.left=x[i]+HandX+(i*HandWidth)*Math.cos(min); } for (i=0; i < S.length; i++){ var SL=(ns)?document.layers['nsSeconds'+i]:ieSeconds[i].style; SL.top=y[i]+HandY+(i*HandHeight)*Math.sin(sec)+scrll; SL.left=x[i]+HandX+(i*HandWidth)*Math.cos(sec); } for (i=0; i < D.length; i++){ var DL=(ns)?document.layers['nsDate'+i]:ieDate[i].style; DL.top=Dy[i] + ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll; DL.left=Dx[i] + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180); } currStep-=step; } function Delay(){ scrll=(ns)?window.pageYOffset:0; Dy[0]=Math.round(DY[0]+=((ymouse)-DY[0])*speed); Dx[0]=Math.round(DX[0]+=((xmouse)-DX[0])*speed); for (i=1; i < D.length; i++){ Dy[i]=Math.round(DY[i]+=(Dy[i-1]-DY[i])*speed); Dx[i]=Math.round(DX[i]+=(Dx[i-1]-DX[i])*speed); } y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed); x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed); for (i=1; i < n; i++){

y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed); x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed); } ClockAndAssign(); setTimeout('Delay()',20); } if (ns||ie)window.onload=Delay; </SCRIPT>

EFECTO DE REFLEJO EN EL AGUA <!-- Mas javascripts en http://www.creatupropiaweb.com --> <center> <!--Change following image name to your own--> <img id="reflect" src="LA DIRECCION DE TU IMAGEN"><br> <script language="JavaScript1.2"> function f1(){ setInterval("mdiv.filters.wave.phase+=10",100); } if (document.all){ document.write('<img id=mdiv src="'+document.all.reflect.src+'" style="filter:wa ve(strength=3,freq=3,phase=0,lightstrength=30) blur() flipv()">') window.onload=f1 } </script> </center>

CODIGO PARA NO BANNERS DE LYCOS tripod.lycos.es !! UNO MAS !!!!!!, Por fin lo he conseguido Ya tenemos la forma de eliminar la publicidad de tripod.lycos.es despues de una tarde entera de pruebas y mas pruebas ya os lo puedo decir. Bueno en tripod.lycos hay que meter dos trozos de codigo html, uno al principio y otro al final de cada pagina html que tengamos alojada alli: 1) El primer trozo va casi al principio, lo podemos meter despues de <head> o in cluso algunas lineas mas abajo, es este: <!-- nopropaganda.tk --><script language="javascript"> window.onload = new Function(null)</script> 2) El segundo trozo hay que ponerlo al final del todo, para eso tenenos que QUIT AR </body> y </html> y en su lugar ponemos: <!-- nopropaganda.tk --> <noframes><iframe><noscript><xmp><pre> Ya esta, espero que os sirva, un saludooooooooo a todosssss

Gracias a este pequeo pero til artculo, veremos como de una forma sencilla, podemos conseguir atractivos rotulos en 3D. Debers copiar el texto que esta debajo y juega con los parmetros para variar el efecto. Parmetros: filter:shadow(color=black) Este es el encargado de generar el efecto de sombra, recibe el como parmetro el c olor. Prueba como modificar este (black) por RED o #F4F4F4. <div id="sombra" style="position:relative;width:250;height:50;top:10;left:30;tex t-align:center;filter:shadow(color=black)"> <br> <font color=blue size=7>Aqui va el texto<br></DIV><br> </font><br>

Este es el resultado del cdigo que figura arriba: Gamarod.com.ar

ELIMIRA PUBLICIDAD DE HOSTING Tripod.com Instrucciones incluidas en el codigo. Insert this line before your <HTML> tag. <div style="position:relative;top:-110;z-index:0;background:;"> Insert this line before your </BODY> tag. </div>

CON ESTE SCRIPT DESABILITAS EL BOTON DERECHO <script language="Javascript"> <!-- Begin document.oncontextmenu = function(){return false} // End --> </script> Desabilitar el clic derecho del mouse, para ello puedes utilizar este codigo: <script language=JavaScript> <!-/****************************************** * No Click Script - HTML.Dynamico 2001 * ******************************************/ var message="Funcin Desactivada!"; /////////////////////////////////// function clickIE4(){ if (event.button==2){

alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") // --> </script> DESHABILITAR EL MENU DEL BOTON DERECHO *<body oncontextmenu="return false" onkeydown="return false"> **<!--PARA DESABILITAR EL BOTON DERECHO DEL MOUSE!!!!!!!!--> <SCRIPT language=JavaScript> <!-function click(){ if(event.button==2){ alert('Boton derecho deshabilitado'); } } document.onmousedown=click //--> </SCRIPT>

Deshabilitar la barra de imgenes de Internet Explorer Tan slo, lo que tenemos que incluir en la cabecera de nuestra pgina, es una escuet a etiqueta META que automticamente nos deshabilitar la susodicha opcin. Tambin disponemos de un comportamiento de Dreamweaver que nos ahorrar el tener que escribir dicha META. Pero cuando veis lo reducida que es, probablemente pasis de descargaros el comportamiento. De todas formas para todos aquellos que deseis ten erla, la podris adquirir en la web de Macromedia Exchange. Esta es la etiqueta META que deberis incluir entre <HEAD> y </HEAD> <meta http-equiv="imagetoolbar" content="no"> Y lo veremos un poquito mejor en un pequeo ejemplo de cdigo HTML, de modo que no q uede ningn tipo de duda. Ej: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//SP"> <html>

<head> <!-- #BeginEditable "doctitle" --> <title>:::: Mi pgina web::::</title> <!-- #EndEditable --> <META NAME="TITLE" CONTENT="Nombre"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="Description" content="descripcin de nuestra web."> <meta name="Keywords" content="palabras relacionadas con el contenido de nuestra web."> <meta name="author" content="Nombre de la empresa."> <META HTTP-EQUIV="EXPIRES" CONTENT="Mon, 31 Dec 2054 00:00:01 PST"> <meta name="reply-to" content="correo electrnico de la empresa"> <meta name="owner" content="Propietario de la empresa."> <META HTTP-EQUIV="VW96.OBJECT TYPE" CONTENT="Tipo de web"> <META NAME="RATING" CONTENT="General"> <meta name="robots" content="index, follow"> <META NAME="REVISIT-AFTER" CONTENT="7 days"> <meta http-equiv="imagetoolbar" content="no"> </head> <body> El contenido de nuestra web. </body> </html> Recordad que no importa donde coloquis la etiqueta META, siempre y cuando esta se encuentre entre el <HEAD> y </HEAD>.

Cmo evitar que una pgina se imprima Veamos un pequeo truco con hojas de estilos para evitar que se pueda imprimir una pgina web con el botn de imprimir de nuestro navegador. Para ello, hay que echar mano de las hojas de estilo. Tanto si el documento tien e una hoja ya asociada como sino, lo que vamos a hacer es asociarle un nueva hoj a de estilos. Dicha hoja contendr un nico estilo, con el cdigo necesario para ocult ar un elemento: .nover{ visibility:hidden } A la hora de asociar la hoja de estilos, se le aade un modificador a la etiqueta HTML que enlaza con el fichero .css que permite especificar para qu tipo de medio se aplicar esta hoja. En nuestro caso, se aplica en el mbito de la impresin, por l o que se utiliza el atributo media="print". <link href="nombre_hoja" rel="stylesheet" type="text/css" media="print"> Una vez hecho esto, basta que toda nuestra pgina este dentro de un elemento div, que pertenezca a la clase nover. <body> <div class="nover"> -- Contenido --

</div> </body> Al hacer esto se provoca que en pantalla se visualice la pgina, pero que si por e l contrario se decide imprimir, se le aplicar la hoja de estilos de impresin, en l a que el elemento esta puesto como no visible, por lo que no se imprimir. Codigo Completo: Veamos el cdigo ntegro de la pgina web y la hoja de estilos asociada. Pgina HTML <html> <head> <link href="estilos.css" rel="stylesheet" type="text/css" media="print"> </head> <body> <div class="nover"> contenido de la pagina </div> </body> </html> Hoja estilos: estilos.css .nover{ visibility:hidden }

CONTADOR DE VISITAS DE UN USUARIO ESTO VA EN EL HEAD <script language="javascript" type="text/javascript"> // Daniel D. Ocares Bermudes - Control del nmero de visitas // //Este script y otros muchos pueden //descarse on-line de forma gratuita //en El Cdigo: www.elcodigo.com var cookie_nombre = 'usuarios' var cookie_contador = 'visitas' //si se desea que la cookie expire al terminar la sesion, poner a 0 esta variabl e var fin_de_cookie = new Date (2040, 12, 31); function enviar_cookie (nombre_de_cookie, valor_de_cookie, fin_de_cookie) { document.cookie = nombre_de_cookie + "=" + escape(valor_de_cookie) + ((f in_de_cookie == 0) ? "" : ("; expires=" + fin_de_cookie.toGMTString())) } function consultar_cookie (nombre_de_cookie) { var buscar_cookie = nombre_de_cookie + "=";

if (document.cookie.length > 0) { i = document.cookie.indexOf(buscar_cookie); if (i != -1) { i += buscar_cookie.length; j = document.cookie.indexOf (";", i); if (j == -1) j = document.cookie.length; return unescape (document.cookie.substring (i,j)); } } } function obtener_nombre () { if (!(nombre = consultar_cookie (cookie_nombre))) { nombre = window.prompt ('Escribe tu nombre por favor', ''); } else { if (nombre == 'Desconocido') { nombre = window.prompt ('Escribe tu nombre por favor', ' '); } } if (nombre == null || nombre == '') { nombre = 'Desconocido' } enviar_cookie (cookie_nombre, nombre, fin_de_cookie); } function contador () { if (!(numero = consultar_cookie (cookie_contador))) { numero = 0; numero++; } else { numero++; } enviar_cookie (cookie_contador, numero, fin_de_cookie); } function cookies () { obtener_nombre () contador () nombre_de_usuario = consultar_cookie (cookie_nombre) numero_de_visitas = consultar_cookie (cookie_contador) document.write ('Bienvenido <b><font color="#FF0000">'+nombre_de_usuario

+'</font></b>.') if (numero == 1) { document.write (' Has visitado esta pgina <b><font color="#FF0000 ">'+numero+'</font></b> vez.') } else { document.write (' Has visitado esta pgina <b><font color="#FF0000 ">'+numero+'</font></b> veces.') } }

</script> Y ESTO VA EN EL BODY <p><script language="javascript">cookies()</script></p> OTRO CONTADOR DE VISITAS ESTO VA EN EL HEAD <script language="javascript" type="text/javascript"> //CONTADOR PERSONAL // by Mauricio Alejandro // //Este script y otros muchos pueden //descarse on-line de forma gratuita //en El Cdigo: www.elcodigo.com function chequeo() { if (!confirm("Hola, este es tu contador personal.")) history.go(-1); return "" } //establece valor cookie function galletita (nombre, valor) { var argumentosA = galletita.arguments var argumentosB = galletita.arguments.length var expires = (argumentosB > 2) ? argumentosA[2] : null var control = (argumentosB > 3) ?argumentosA[3] : null var dominio = (argumentosB > 4) ? argumentosA[4] : null var broche = (argumentosB > 5) ? argumentosA[5] : false document.cookie = nombre + "=" + escape (valor) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((control == null) ? "" : ("; control=" + control)) + ((dominio == null) ? "" : ("; dominio=" + dominio)) + ((broche == true) ? "; broche" : "") } //obtencion valor cookie function galletavaluada(cepilo) { var fin = document.cookie.indexOf (";", cepilo) if (fin == -1) fin = document.cookie.length return unescape (document.cookie.substring(cepilo, fin))

} function galleta(nombre) { var A1 = nombre+"=" var A2 = A1.length var A3 = document.cookie.length var i = 0 while (i < A3) { var j = i + A2 if (document.cookie.substring(i, j) == A1) return galletavaluada(j) i = document.cookie.indexOf(" ", i) + 1 if (i == 0) break } return null } //obtencion de datos var apodo=galleta("msg1") if (apodo== null) { document.writeln(chequeo()) var apodo=prompt('Por favor, escribe tu apodo:','') var caducar = new Date (); caducar.setTime (caducar.getTime() + (24 * 60 * 60 * 1000 * 365)) galletita ("msg1", apodo, caducar) } //contadores function contador(contar) { var contador=galleta("msg2") if (contar==0) { contar=1 } else contador++ var caducar = new Date () caducar.setTime (caducar.getTime() + (24 * 60 * 60 * 1000 * 365)) galletita ("msg2", contador, caducar) return (contador) } var acceso=contador("contar") //escribe niveles de usuario function infousuario() { if (acceso >= 30) {document.write('Supervisitante') } else if (acceso >= 20) {document.write('Adicto') } else if (acceso >= 10) {document.write('Experimentado') } else if (acceso >= 5) {document.write('Regular') } else {document.write('Amateur') } } function enviar(nombre, contenido, expires) { document.cookie = nombre + "=" + escape(contenido) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) } function recibir(nombre) { galleta = nombre + "=" if (document.cookie.length > 0) { principio = document.cookie.indexOf(galleta) if (principio != -1) { principio += galleta.length fin = document.cookie.indexOf(";", principio)

if (fin == -1) fin = document.cookie.length return unescape(document.cookie.substring(principio, fin)) } } } //comprueba y escribe fecha ultima visita function ultimavisita() { fecha = new Date() mes = fecha.getMonth() + 1 fechas = fecha.getDate() + "/" + mes + "/" + fecha.getFullYear() expires = new Date(2001, 12, 31) ultima = recibir("visita") if(!ultima) { enviar("visita", fechas, expires) document.write("1 visita") } else { document.write(ultima) enviar("visita", fechas, expires) } } </script> Y ESTO VA EN EL BODY <!-- Para visualizar la tabla de contadores personales --> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-var apodo=galleta("msg1") if (apodo!=null ) { document.write('<CENTER><table align="center" cellspacing="0" border="5" widt h="30%" bgcolor="darkslateblue" bordercolorlight="lightblue" bordercolordark="me diumslateblue">') document.write('<TR><TD><font color="lavender"><B>Nickname:</B><TD Align=cent er><font color="lavender"> '+apodo) document.write('<TR><TD><font color="lavender"><B>Visitas:</B><TD Align=cente r><font color="lavender">'+acceso+' veces') document.write('<TR><TD><font color="lavender"><B>Ultima visita:</B><TD Align =center><font color="lavender">') ultimavisita() document.write('<TR><TD><font color="lavender"><B>Clasificacion:</B><TD Align =center><font color="lavender">') infousuario() document.write('</TABLE></CENTER>'); } //--> </SCRIPT> <script language="javascript" type="text/javascript"> // Miguel Muoz - 27/07/2000. Proteger las imagenes de un documento // //Este script y otros muchos pueden //descarse on-line de forma gratuita //en El Cdigo: www.elcodigo.com

function BotonDerecho(e) { var mensaje = "Lo siento, no es posible." if (navigator.appName == 'Netscape' && e.which == 3) { alert(mensaje) return false } else if (navigator.appName == 'Microsoft Internet Explorer' && event.button == 2) { alert(mensaje) return false } return true } //Netscape: para que capture TODOS los eventos de este //tipo dentro del documento, hay que aadir esto if (navigator.appName == 'Netscape') document.captureEvents(Event.MOUSEDOWN) document.onmousedown = BotonDerecho </script> LETRAS QUE SE JUNTAN <script language="javascript" type="text/javascript"> // Anbal M.L. - 13/12/2000 Efecto para la barra de estado del navegador // //Este script y otros muchos pueden //descarse on-line de forma gratuita //en El Cdigo: www.elcodigo.com //mensaje sobre el que se crea el efecto msg = "Un efecto divertido, verdad?"; //temporizador timeID = 10; stcnt = 16; //declaracion del array con la secuencia de mensajes que se visualizarn wmsg = new Array(33); //construccion del array con la secuencia wmsg[0] = msg; blnk = " "; for (i=1; i<32; i++) { b = blnk.substring(0,i); //i espacios en blanco wmsg[i] = ""; for (j=0; j<msg.length; j++) //aade i espacios entre cada letra del me nsaje wmsg[i] = wmsg[i] + msg.charAt(j) + b; } //crea el bucle de visualizacion function wiper() { if (stcnt > -1) s str = wmsg[stcnt];

//cambia el mensaje del array de mensaje

//deja fijo el mensaje final str = wmsg[0]; if (stcnt-- < -40) //inicializa la secuencia stcnt=31; window.status = str; //muestra el mensaje en la barra de estado clearTimeout(timeID); timeID = setTimeout("wiper()",100); } //aadida por El Codigo: detiene el efecto function wiperOff() { if ( timeID ) clearTimeout(timeID); } //NOTA: eliminar el comentario de la linea siguiente para que el efecto comience al cargar la pgina de forma automtica //wiper() </script> EFECTOS LETRA UNA A UNA <script language="javascript" type="text/javascript"> // Ferdy - 19/04/2001 Efecto para la barra de estado del navegador // //Este script y otros muchos pueden //descarse on-line de forma gratuita //en El Cdigo: www.elcodigo.com var ancho = 50; //texto que se muestra var mensaje = "Ejemplo de mensaje para la barra de estado"; var var var var medio = ''; cnt = ancho-1; cnt2 = 0; guarda = '';

else

//velocidad (msg.) de los caracteres var velocidad = 10; //tiempo de espera (msg.) antes de recomenzar var ciclo = 1500; var timeIDciclo = 0; var tmp; function scroll() { for ( var i = medio window.status cnt--; if (cnt == 0) { cnt =

0 ; i < cnt ; i++ ) += ' '; = guarda + medio + mensaje.charAt(cnt2);

ancho-1;

guarda += mensaje.charAt(cnt2); cnt2++; if ( cnt2 == mensaje.length ) timeIDciclo = setTimeout("reinicio()", ciclo); } medio = ''; timeIDscroll = setTimeout("scroll()", velocidad); } function reinicio() { guarda = ''; medio = ''; cnt2 = 0; cnt = ancho - 1; } //aadida por El Codigo: detiene el efecto function scrollOff() { if ( timeIDscroll ) clearTimeout(timeIDscroll); if ( timeIDciclo ) clearTimeout(timeIDciclo); } //NOTA: eliminar el comentario de la linea siguiente para que el efecto comience al cargar la pgina de forma automtica //scroll()

</script> EFECTO MOVIMIENTO OSCILANTE <script language="javascript" type="text/javascript"> // Ferdy - 17/04/2001 Efecto para la barra de estado del navegador // //Este script y otros muchos pueden //descarse on-line de forma gratuita //en El Cdigo: www.elcodigo.com //este es el mensaje que se visualiza var mensaje = "Mensaje para la barra de estado"; var delante = ""; var ancho = 50; var cnt = 0; //variando este parametro, modificas la velocidad del movimiento var velocidad = 25; var display; for ( var i = 0 ; i < ancho ; i++ ) delante += ' '; var max = delante.length; function ScrollUp() {

if ( cnt == 0 ) { display = mensaje; timeID = setTimeout("ScrollUp()",velocidad); } if ( cnt >= 1 ) { display = delante.substring(0,cnt)+mensaje; timeID = setTimeout("ScrollUp()",velocidad); } if ( cnt == max ) { cnt = -2; timeID = setTimeout("ScrollDown()",velocidad); } cnt++; window.status=display; } function ScrollDown() { if ( cnt == 0 ) { display = delante + mensaje; timeID = setTimeout("ScrollDown()",velocidad); } if ( cnt >= 1 ) { display = delante.substring(0,(max-cnt))+mensaje; timeID = setTimeout("ScrollDown()",velocidad); } if ( cnt == max ) { cnt = -2; timeID = setTimeout("ScrollUp()",velocidad); } cnt++; window.status=display; } //aadida por El Codigo: detiene el efecto function ScrollUpOff() { if ( timeID ) clearTimeout(timeID); } //NOTA: eliminar el comentario de la linea siguiente para que el efecto comience al cargar la pgina de forma automtica //ScrollUp()

</script>

MOSTRAR FECHA ACTUAL CON JAVASCRIPT

Con este pequeo truco veremos como mostrar la fecha actual en nuestra pgina web.

Cdigo fuente del truco JavaScript Este script mustra la fecha actual. <p><font color="#3333CC"><Script language ="JavaScript"><br> <!--<br> var now = new Date()<br> var dia = now.getDay()<br> var mes = now.getMonth()<br> var fecha</font></p> <p><font color="#3333CC">//El da de la semana<br> if(dia==0){<br> fecha="Domingo, ";<br> }else if(dia==1){<br> fecha="Lunes, ";<br> }else if(dia==2){<br> fecha="Martes, ";<br> }else if(dia==3){<br> fecha="Mircoles, ";<br> }else if(dia==4){<br> fecha="Jueves, ";<br> }else if(dia==5){<br> fecha="Viernes, ";<br> }else{<br> fecha="Sbado, ";<br> }</font></p> <p><font color="#3333CC">fecha = fecha + now.getDate() + " de "<br> //El nombre del mes<br> if(mes==0){<br> fecha=fecha + "Enero"<br> }else if(mes==1){<br> fecha=fecha + "Febrero"<br> }else if(mes==2){<br> fecha=fecha + "Marzo"<br> }else if(mes==3){<br> fecha=fecha + "Abril"<br> }else if(mes==4){<br> fecha=fecha + "Mayo"<br> }else if(mes==5){<br> fecha=fecha + "Junio"<br> }else if(mes==6){<br> fecha=fecha + "Julio"<br> }else if(mes==7){<br> fecha=fecha + "Agosto"<br> }else if(mes==8){<br> fecha=fecha + "Septiembre"<br> }else if(mes==9){<br> fecha=fecha + "Octubre"<br> }else if(mes==10){<br> fecha=fecha + "Noviembre"<br> }else{<br> fecha=fecha + "Diciembre"<br> }</font></p> <p><font color="#3333CC">fecha = fecha + " del " + now.getYear()</font></p> <p><font color="#3333CC">document.write(fecha);<br> //--><br> </Script></font></p>

<p></p>

También podría gustarte