Frank 的个人资料HeRRaMiEnTaS PaRa MsN Sp...日志 工具 帮助

日志


7月22日

Codigos para WebMasters Avanzados

Codigos para web master avanzados!
 

ATENCIÓN¡¡¡

 

LOS SIGUIENTES CODIGOS SÓLO SE PUEDEN USAR EN PAGINAS MÁS AVANZADAS EN TU SPACE NO TE SERVIRÁ DE NADA SÓLO SE PUEDEN USAR EN PAGINAS QUE ACEPTEN JAVISCRIPTS Y HTMLS AVAMZADOS...

 

LOS CODIGOS SUBRAYADOS CON AZUL LOS PUEDES CAMBIAR A TUS GUSTOS...

 Poner fondo a una ventana.

<body bgcolor="#CODIGO DEL COLOR QUE VA IR DE FONDO" background="SI QUIERES PARA QUE NO SALGA COLORES SIMPLES TAN SÓLO COLOCA AQUÍ LA URL DE TU IMAGEN">

 

 

No permite utilizar el botón derecho del ratón

 <script language="Javascript">
<!-- Begin
document.oncontextmenu = function(){return false}
// End -->
</script>
                                                                                                                                                                                                                      
 
                                                                                                                                                                                                      

 

Envia un mensaje al utilizar el boton derecho del ratón

<script language="JavaScript">
<!-- Begin
function right(e) {
var msg = "
[ www.TrucosJuan.tk ] ";
if (navigator.appName == 'Netscape' && e.which == 3) {
alert(msg); // Delete this line to disable but not alert user
return false;
}
else
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msg); // Delete this line to disable but not alert user
return false;
}
return true;
}
document.onmousedown = right;
// End -->
</script>
 
                                                                                                                                                                                                                      

                                                                                                                                                                                                     

 

Penaliza con 10 ticks al utilizar el botón derecho

<script language="Javascript">
zaehler=0;
function right(e) {
if (navigator.appName == 'Netscape'){
if (e.which == 3 || e.which == 2){
alert("
Aqui no puedes utilizar el botón derecho del mouse");
for(i=0;i!=zaehler;i++)alert("
Ya te avisé, te penalizaré con
\n "+(zaehler-i)+"\n clicks.");
zaehler+=10;
alert("
¡La proxima vez que lo hagas será peor! www.TrucosJuan.tk
");
return false;}}
if (navigator.appName == 'Microsoft Internet Explorer'){
if (event.button == 2 || event.button == 3){
alert("
Aqui no puedes utilizar el botón derecho del mouse
");
for(i=0;i!=zaehler;i++)alert("
Ya te avisé, te penalizaré con
\n "+(zaehler-i)+"\n clicks.");
zaehler+=10;
alert("
¡La proxima vez que lo hagas será peor¡ www.TrucosJuan.tk
");
return false;}}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
// --></script>
                    
                                                                                                                                                                                                                      

                                                                                                                                                                          

 

Escribir texto en la barra de estatus y que se vaya moviendo.

<SCRIPT languague="JavaScript">
<!--
var cuenta=0
var texto="
 TrucosJuan
"
function scrolltexto () {
window.status=texto.substring (cuenta,texto.length)+ texto.substring(0,cuenta)
if (cuenta <texto.length){ cuenta ++
}else{
cuenta=0
}
setTimeout("scrolltexto()",150)
}
scrolltexto ()
//-->
</SCRIPT>
                                                                                                                                                                                                  

 

Te enseña la hora en la barra de estatus

<script language="JavaScript">
<!--
mensaje="
  .: TrucosJuan . (c):."
function hora() {
var h = new Date();
window.status="
hora:
"
+ h.getHours() +":"+ h.getMinutes() +"" +mensaje ;
window.setTimeout('hora()',100);
}
hora()
//-->
</script>
  
                                                                                                                                                                                                                      

                                                                                                                                                                                                                                         

                                                                                                                                                                                 

Que cada X segundos se mueva el Title

<SCRIPT LANGUAGE="JavaScript">
var txt="
 TrucosJuan (c)- Zero-";
var espera=
200
;
var refresco=null;
function rotulo_title() {
document.title=txt;
txt=txt.substring(1,txt.length)+txt.charAt(0);
refresco=setTimeout("rotulo_title()",espera);}
rotulo_title();
</SCRIPT>
  
                                                                                                                                                                                                                       
 

                                                                                                                                                                                                

 

Para que se abre otra ventana al entrar

<SCRIPT language=Javascript> open('legal.htm','AVISOLEGAL',"toolbar=0,

location=0,status=0,menubar=0,scrollbars

=yes,resizable=yes,width=490,height=232");</SCRIPT>
(Todo junto , que no me cambia entonces...TrucosJuan)               
                                                                                                                                                                                                                      

                                                                                                            

 

Botón Atrás, Adelante y Actualizar

<input type="button" value="Atrás" onclick="history.back()" style="font-family: Verdana; font-size: 8 pt">
<input type="button" value="Actualizar" onclick="window.location.reload()" style="font-family: Verdana; font-size: 8 pt">
<input type="button" value="Adelante" onclick="history.forward()" style="font-family: Verdana; font-size: 8 pt">
                                                                                                                                                                                                                          

       

 

Horas restantes para finalizar el dia

<body>
<p>El reloj...</p>
<form name="Reloj">
<input type="text" size="7" name="tiempo" value="mm:hh:ss" title="Tiempo restante para finalizar el día">
<script language="JavaScript">
<!--
var tiempoAtras;

updateReloj();
function updateReloj() {
var tiempo = new Date();
var hora = 23-tiempo.getHours();
var minutos = 59-tiempo.getMinutes();
var segundos = 59-tiempo.getSeconds();

tiempoAtras= (hora < 10) ? hora :hora;
tiempoAtras+= ((minutos < 10) ? ":0" : ":") + minutos;
tiempoAtras+= ((segundos < 10) ? ":0" : ":") + segundos;

document.Reloj.tiempo.value = tiempoAtras;

setTimeout("updateReloj()",1000);
}
//-->
</script>
</form>
</body>
                                                                                                                                                                                                                                                  

                                                                                                                                                                    

 

Crear formulario o libro de visitas

<H2>Libro de visitas de TrucosJuan</H2>
<FORM ACTION="mailto:
tunombre@tuservidor.com
" METHOD="post">

<TABLE>

<TD ALIGN=RIGHT>Nombre:</TD>
<TD><INPUT type="text" size=36 name="nombre"></TD>
<TR><TD ALIGN=RIGHT>
Direccion E-mail:
</TD>
<TD><INPUT type="text" size=36 name="direccion"></TD>
<TR><TD ALIGN=RIGHT>
como llegaste hasta esta pagina?
</TD>
<TD><INPUT type="text" size=36 name="procedencia"></TD>
<TR><TD ALIGN=RIGHT>
Tus comentatios:
</TD>
<TD><TEXTAREA rows=5 cols=30 name="comentarios"></TEXTAREA></TD>

</TABLE>

<INPUT type="reset" value="
Borrar todo
"> <INPUT type="submit" value="Enviar">

</FORM>
                                                                                                                                                                                              

 

                                                                                                                                                                                                                      

Barra Scroll de colores

<style>
<!--
body { scrollbar-face-color: darkgreen
;
scrollbar-shadow-color: yellow
;
scrollbar-highlight-color: violet
;
scrollbar-3dlight-color: navy
;
scrollbar-darkshadow-color: magenta
;
scrollbar-track-color: blue
;
scrollbar-arrow-color: black
}
-->
</style> 
                                     
                                                                                                                                                                                                                      

                                                                                                                                                          

 

Texto que sigue el puntero del ratón

<style>
.animado {position:absolute;visibility:visible;top:-
50px;font-size:10pt;font-family:Arial;font-weight:bold;color:FFFFFF
;}
</style>
<script language=JavaScript>
var x,y
var tempo=10
var espera=0

var texto="TrucosJuan"
texto=texto.split("")

var xpos=new Array()
for (i=0;i<=texto.length-1;i++) {
xpos[i]=-50
}

var ypos=new Array()
for (i=0;i<=texto.length-1;i++) {
ypos[i]=-50
}

function seguir(e){
x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX
y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY
espera=1
}

function animar_cursor() {
if (espera==1 && document.all) {
for (i=texto.length-1; i>=1; i--) {
xpos[i]=xpos[i-1]+tempo
ypos[i]=ypos[i-1]
}
xpos[0]=x+tempo
ypos[0]=y

for (i=0; i<texto.length-1; i++) {
var camada = eval("span"+(i)+".style")
camada.posLeft=xpos[i]
camada.posTop=ypos[i]
}
}

else if (espera==1 && document.layers) {
for (i=texto.length-1; i>=1; i--) {
xpos[i]=xpos[i-1]+tempo
ypos[i]=ypos[i-1]
}
xpos[0]=x+tempo
ypos[0]=y

for (i=0; i<texto.length-1; i++) {
var camada = eval("document.span"+i)
camada.left=xpos[i]
camada.top=ypos[i]
}
}
var timer=setTimeout("animar_cursor()",30)
}

</script>
<script Language=JavaScript>
for (i=0;i<=texto.length-1;i++) {
document.write("<span id='span"+i+"' class='animado'>")
document.write(texto[i])
document.write("</span>")
}

if (document.layers){
document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = seguir;
animar_cursor()
</script> 
                                                                                                                                                                                                                      

                                                                                                                                                                                             

 

Insertar un archivo Flash

(En este truco tambien puedes poner videos entonces te saldrá dentro de un reproductor)

<p><embed width="528" height="395" src="http://personales.ya.com/zerokorn/01.swf"></p>         

 (GRACIAS A ZEROKORN DESCUBRIDOR DE ESTE TRUCO DEL REPRODUCTOR)                                                                                                                                                                                                                                                                                                            

Texto de bienvenida y de Despedida

<body onLoad="alert('TEXTO DE BIENVENIDA');" onUnLoad="confirm('TEXTO DE DESPEDIDA');"></body> 

 

VOTA POR LA WEB:


                                                                 Vota por este sitio en Los Mejores de RedFind

评论 (7)

请稍候...
很抱歉,您输入的评论太长。请缩短您的评论。
您没有输入任何内容,请重试。
很抱歉,我们当前无法添加您的评论。请稍后重试。
若要添加评论,需要您的家长授予您相应权限。请求权限
您的家长禁用了评论功能。
很抱歉,我们当前无法删除您的评论。请稍后重试。
您已超过了一天之内允许提供的评论数上限。请在 24 小时后重试。
因为我们的系统表明您可能在向其他用户提供垃圾评论,您的帐户已禁用了评论功能。如果您认为我们错误地禁用了您的帐户,请联系 Windows Live 支持部门
完成下面的安全检查,您提供评论的过程才能完成。
您在安全检查中键入的字符必须与图片或音频中的字符一致。

若要添加评论,请使用您的 Windows Live ID 登录(如果您使用过 Hotmail、Messenger 或 Xbox LIVE,您就拥有 Windows Live ID)。登录


还没有 Windows Live ID 吗?请注册

11 月 9 日
11 月 2 日
10 月 28 日
没有名字发表:
Wan Moshou game, to (wow power leveling) site to buy the cheapest gold coins! To (wow gold) for the best Dailian upgrade!
9 月 12 日
没有名字发表:
Welcome to enter (wow gold) and (wow power leveling) trading site, (wow gold) are cheap, (wow power leveling) credibility Very good! Quickly into the next single! Key words directly to the website click on transactions!
8 月 12 日
 
Gracias por todo lo que compartes para ayudarnos.Mucho te agradecería que visitases mi Spacio y me dejes un comentario....Yo querría el código para insertar el cuadro flotante dentro de una imagen. Gracias por antivipado. Saludos!!
11 月 7 日
Buenas noches!!! Buscando espacios en los que meterme encontré el tuyo, muy interesante la verdad, y dejándote mi huella me gustaría que te pasaras por el mío y me dejaras a mí otra, que me haría muchísima ilusión ya mi espacio es nuevo. Te deseo muchísima suerte en tu vida mortal y que puedas disfrutar de ella, como cualquier otra persona.
Muchos besos de un alma divagante
PD: Si quieres me agregas :D
7 月 22 日

引用通告

此日志的引用通告 URL 是:
http://linknet-112-2.spaces.live.com/blog/cns!20A27E37F4ED3123!158.trak
引用此项的网络日志