Log Out

Do you really want to leave here so soon?


Convertite en Güiikero en sólo unos segundos!

Retroceder   Güii - Guii.com.uy > WebMaster > Scripts - Sources
User Tag List

 
LinkBack Herramientas Desplegado
Post creado por:
Uchiha Itachi'
Avatar de Luix
Luix está desconectado

Mi pensamiento Güiikero

holi

Mi info güiikera

Creé 664 post
Me registré el 26-October-2008
Estoy en Guii.com.uy
Tengo 16 años
Veces que gritó Güii: 117
Le dijeron Güii 96 veces en 67 Post
Mentioned: 3 Post(s)
Tagged: 2 Thread(s)
Puntos: 6.280, Nivel: 8
Puntos: 6.280, Nivel: 8 Puntos: 6.280, Nivel: 8 Puntos: 6.280, Nivel: 8
Nivel máximo: 89%, 170 Puntos
Nivel máximo: 89% Nivel máximo: 89% Nivel máximo: 89%
Actividad: 0,4%
Actividad: 0,4% Actividad: 0,4% Actividad: 0,4%
Premios otorgados
Logros obtenidos
CÓDIGOS HTML Y JAVA
  • No permite utilizar el botón derecho y no aparece nada (ni alert, etc)
Código:
<script language="Javascript"> <!-- Begin document.oncontextmenu = function(){return false} // End --> </script>
  • No permite seleccionar el contenido de una página
Código:
<script language="Javascript"> <!-- Begin function disableselect(e){ return false } function reEnable(){ return true } document.onselectstart=new Function ("return false") if (window.sidebar){ document.onmousedown=disableselect document.onclick=reEnable } // End --> </script>
  • Por si hay algún error en la página
Código:
<SCRIPT language=JavaScript>  function blockError(){return true;} window.onerror = blockError; </SCRIPT>
  • Para esconder la URL en el navegador (Utilizar un frame del 100%). De esta manera siempre se mostrará melasrasco.com y no melasrasco.com/algo.htm
Código:
<HEAD> <TITLE>Página Incial - www.melasrasco.com</TITLE> </HEAD> <FRAMESET rows="100%" BORDER=0 FRAMEBORDER=0 FRAMESPACING=0> <FRAME NAME="top" SRC="http://www.thedaniex.com/" NORESIZE></FRAMESET>
  • Código JavaScript para que aparezca un alert al utilizar el botón derecho
Código:
<script language="JavaScript"> <!-- Begin function right(e) { var msg = "  [ www.melasrasco.com ] "; 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>

  • No permite el botón derecho y además te penaliza con 10 clicks
Código:
<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.thedaniex.com");  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.thedaniex.com");  return false;}}  return true;  }  document.onmousedown=right;  if (document.layers) window.captureEvents(Event.MOUSEDOWN);  window.onmousedown=right;  // --></script>
  • Se abre una ventana al utilizar el botón derecho
Código:
<SCRIPT language=JavaScript> function right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) { a=window.open("http://www.thedaniex.com/","WindowName","width=640,height=600,top=40,left=50,resizable=yes,scrollbars=yes,menubar=no,toolbar=no,status=no,location=no");  return false; } else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) { a=window.open("http://www.thedaniex.com/","WindowName","width=640,height=600,top=40,left=50,resizable=yes,scrollbars=yes,menubar=no,toolbar=no,status=no,location=no");  return false; } return true; } document.onmousedown=right; window.onmousedown=right; </SCRIPT>
  • Para páginas con frames, no permite ver sólo un frame sino los dos frames o más juntos. (Colocar el código en cada frame)
Código:
<script LANGUAGE="JavaScript"> <!-- if (top == self) self.location.href = "http://www.thedaniex.com"; // --> </script>
  • Para webs sin frames, mantiene tu página en primer plano, y no puede estar en frames de otro "listillo"
Código:
<SCRIPT LANGUAGE="JavaScript"> <!--- Se esconde el codigo a navegadores sin JS if (window != window.top) top.location.href = location.href; // --> </SCRIPT>
  • Variación del anterior
Código:
<SCRIPT LANGUAGE="Javascript"> <!--- if (parent.frames.length) top.location.href= document.location;  // ---> </SCRIPT>


Personalización de la Web
  • Para hacer la Página de Inicio
Código:
<a href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.thedaniex.com');return false">Página de inicio</a>
  • Añadir a Favoritos
Código:
<SCRIPT LANGUAGE="JavaScript">  <!--  function addBookmark()  {    if (window.external)      external.AddFavorite("http://www.melasrasco.com", "...::: www.melasrasco.com :::...")    else      alert("Tu navegador no soporta esta caracteristica");  }  // -->  </SCRIPT>
  • Para que al añadir a "Favoritos" te coja un icono (se tiene que colocar en el head) y además tienes que subir un .ico a tu hosting.
Código:
<LINK REL="SHORTCUT ICON" HREF="http://www.tuservidor.com/iconos/nombreicono.ico">
  • Cambiar las barras de scroll (colocar siempre en el style) (puedes hacer infinitas variaciones cambiando color, tamaño, etc)
Código:
<style> <!-- BODY { scrollbar-base-color : #000000;     scrollbar-arrow-color : #FFFFFF; }     .nav {     color : #FFCC00;     font-size : 8pt;} --> </style>
  • Otro ejemplo:
Código:
<STYLE type=text/css>BODY { SCROLLBAR-FACE-COLOR: #333333; SCROLLBAR-HIGHLIGHT-COLOR: #444444; SCROLLBAR-SHADOW-COLOR: #111111; SCROLLBAR-3DLIGHT-COLOR: #333333; SCROLLBAR-ARROW-COLOR: #ffffce; SCROLLBAR-TRACK-COLOR: #000000; SCROLLBAR-DARKSHADOW-COLOR: black } </STYLE>


Escribir en el "Status" del Navegador y hacer mover el "Title"
  • Que se vaya moviendo las palabras del status
Código:
<SCRIPT languague="JavaScript"> <!--  var cuenta=0  var texto=" Lo que te de la gana "  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 y el texto que quieras en la barra del status
Código:
<script language="JavaScript"> <!-- mensaje="  |======|  .: w W w . M e L a s R a s c o . C o M :. "  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
Código:
<head> <SCRIPT>  <!--   var ShowString = " " //La primera linea tiene que estar en blanco + "Aqu&iacute; la frase 1 " //Puedes a&ntilde;adir mas frases, aparte de estas 3 + "Aqu&iacute; la frase 2 " + "Aqu&iacute; la frase 3 " + "Ejemplo de otra frase " var ShowWidth = 100 var ShowHead = 0 var ShowTail = ShowWidth var ShowLength = ShowString.length function Marquee () { var DisplayString if (ShowHead < ShowTail) DisplayString = ShowString.substring(ShowHead, ShowTail) else DisplayString = ShowString.substring(ShowHead, ShowLength) + ShowString.substring( 0, ShowTail) ShowHead = (ShowHead + 1 ) % ShowLength ShowTail = (ShowTail + 1 ) % ShowLength window.status = DisplayString TimerID = setTimeout("Marquee()", 100) //Cambia el numero para cambiar la velocidad } //--> </SCRIPT> </head>
  • Escribir en la barra de estado (status) al pasar el mouse por encima (onmouseover)
Código:
<a href="mailto: melasrasco@hotmail.com?subject=Comentarios/Sugerencias" onMouseOver="window.status='[ contacta con el webmaster ]';return true"> el-brujo</a>
  • Escribir en "Title" y hacer que se maya moviendo cada X segundos.
Código:
<SCRIPT LANGUAGE="JavaScript"> var txt="                              T h e D a n i e X . C o M            -                            wwww.thedaniex.com -"; 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>


Abrir Nuevas Ventanas (Facilidades Navegación)
  • Que se abra una ventana al entrar en la web (se puede definir tamaño, barras, etc, etc, etc)
Código:
<SCRIPT language=Javascript> open('legal.htm','AVISOLEGAL',"toolbar=0,location=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=490,height=232");</SCRIPT>
  • Abrir una ventana al apretar un enlace (también se puede definir tamaño, etc)
Código:
<script language="JavaScript"> <!-- function winopen(pagina,nombreventana) { myWin=open(pagina,nombreventana,'width=530,height=400,top=150,left=300,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,titlebar=no');  } //--> </script>
  • Para llamar a la página (caso anterior)
Código:
javascript:winopen('http://melasrasco.com','MeLasRasco')"
  • Imprimir la página
Código:
<a href="javascript:window.print()">Imprimir</a>
  • Copiar al portapapeles
Código:
<script language="Javascript"> <!-- //specify whether contents should be auto copied to clipboard (memory) //Applies only to IE 4+ //0=no, 1=yes var copytoclip=1  function HighlightAll(theField) { var tempval=eval("document."+theField) tempval.focus() tempval.select() if (document.all&&copytoclip==1){ therange=tempval.createTextRange() therange.execCommand("Copy") window.status="Contents highlighted and copied to clipboard!" setTimeout("window.status=''",1800) } } //--> </script> <a href="javascript:HighlightAll('form.fuente')">Copiar al Portapapeles</a>
  • Función Confirmar (ok, cancel) si ok entras sino vuelve para atrás
Código:
<script language="JavaScript"> <!-- function checkAGE() { if (!confirm ("Bievenido a thedaniex.com. Si quieres entrar apreta ok, sino Cancel. F&aacute;cil eh?")) history.go(-1);return " "} document.writeln(checkAGE()) // --> </script>


Mejoras Diseño
  • Punto de mira que ocupa toda la pantalla (color verde)
Código:
<div id="leftright" style="width:expression(document.body.clientWidth-2)"></div><div id="topdown" style="height:expression(document.body.clientHeight-2)"></div>  <script language="JavaScript1.2"> <!--  if (document.all&&!window.print){ leftright.style.width=document.body.clientWidth-2 topdown.style.height=document.body.clientHeight-2 } else if (document.layers){ document.leftright.clip.width=window.innerWidth document.leftright.clip.height=1 document.topdown.clip.width=1 document.topdown.clip.height=window.innerHeight }   function followmouse1(){ //move cross engine for IE 4+ leftright.style.pixelTop=document.body.scrollTop+event.clientY+1 topdown.style.pixelTop=document.body.scrollTop if (event.clientX<document.body.clientWidth-2) topdown.style.pixelLeft=document.body.scrollLeft+event.clientX+1 else topdown.style.pixelLeft=document.body.clientWidth-2 }  function followmouse2(e){ //move cross engine for NS 4+ document.leftright.top=e.y+1 document.topdown.top=pageYOffset document.topdown.left=e.x+1 }  if (document.all) document.onmousemove=followmouse1 else if (document.layers){ window.captureEvents(Event.MOUSEMOVE) window.onmousemove=followmouse2 }  function regenerate(){ window.location.reload() } function regenerate2(){ setTimeout("window.onresize=regenerate",400) } if ((document.all&&!window.print)||document.layers) //if the user is using IE 4 or NS 4, both NOT IE 5+ window.onload=regenerate2  //--> </script>
  • Para que el cursor sea un punto de mira (en pequeñito)
Código:
<style type="text/css"> <!-- body {  cursor: crosshair} --> </style>
  • Te dice el dia, mes y año del PC
Código:
<script language="JavaScript"><!-- var hoy = new Date(); dia = hoy.getDate(); mes = hoy.getMonth(); ano = hoy.getYear() + 0000; if (mes == "0") nombremes = "<font color=#00FF00 size=2>Enero</font>";  else if (mes == "1") nombremes = "<font color=#00FF00 size=2>Febrero</font>";  else if (mes == "2") nombremes = "<font color=#00FF00 SIZE=2>Marzo</font>";  else if (mes == "3") nombremes = "<font color=#00FF00 SIZE=2>Abril</font>";  else if (mes == "4") nombremes = "<font color=#00FF00 SIZE=2>Mayo</font>";  else if (mes == "5") nombremes = "<font color=#00FF00 SIZE=2>Junio</font>";  else if (mes == "6") nombremes = "<font color=#00FF00 SIZE=2>Julio</font>";  else if (mes == "7") nombremes = "<font color=#00FF00 SIZE=2>Agosto</font>";  else if (mes == "8") nombremes = "<font color=#00FF00 SIZE=2>Septiembre</font>";  else if (mes == "9") nombremes = "<font color=#00FF00 SIZE=2>Octubre</font>";  else if (mes == "10") nombremes = "<font color=#00FF00 SIZE=2>Noviembre</font>";  else nombremes = "<font color=#00FF00 SIZE=2>Diciembre</font>"; document.write (dia); document.write (" de "); document.write (nombremes); document.write (" del "); document.write (ano); // --></script>
  • Cerrar la ventana al cabo de X rato
Código:
<script language="javascript">setTimeout("self.close();",7000)</script>
  • Botón Cerrar Ventana (también windows.self.close())
Código:
<input type="button" onclick="javascript:window.close()" value="Cerrar Ventana" style="font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid">
  • Botón Atrás, Actualizar y Adelante
Código:
<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">
  • Cambiar el puntero por uno personalizado:
Código:
<!-- en el style --> BODY { cursor:url(thedanie.cur); } <!-- Elegir un puntero a nuestro gusto y guardar como cursor.cur -->
  • Cambiar el puntero:
Código:
<!-- en un enlace --> <a href="#" style="cursor:help">enlace</a> <!-- saldr&aacute; el puntero de ayuda con un interrogante :) -->


Meta Tags
  • Actualizar contenido cada X segundos o va hacia otra pagina en x segunddos (en el head)
Código:
<!-- se refressca, se actualiza en tantos segundos --> <meta http-equiv="refresh" content="0"> <!-- va a hacia otra pagina en tantos segundos --> <meta http-equiv="refresh" content="8;URL=http://www.melasrasco.com">
  • El navegador o el proxy no guarde la página web en caché
Código:
<META HTTP-EQUIV="pragma" content="no-cache"> <!--si guarde cache --> <META HTTP-EQUIV="pragma" content="cache">
  • El navegador o el proxy no guarde la página web en caché en lenguaje PHP
Código:
<?  header("Cache-Control: no-cache, must-revalidate");   ?>
  • Otras Meta-Tags básicas
Código:
<META content="text/html; charset=windows-1252" http-equiv=Content-Type> <meta http-equiv="Content-Language" content="es"> <META NAME="title" CONTENT="T h e D a n i e X . C o M"> <META Name="description" CONTENT="descripcion"> <META Name="keywords" CONTENT="palabras clave"> <meta http-equiv="Reply-to" content="the_danioner@yahoo.com"> <META HTTP-EQUIV="pragma" content="no-cache"> <META Name="revisit" CONTENT="15 days"> <META Name="robots" CONTENT="all">
Ya e editado el post, disculpen lo deformado que estaba xD... Salu2
  • Compartir
  • Compartí este post!


Solo sé, que no se nada

Última edición por Luix; 26-Jun-2009 a las 01:53
Responder Citando Quote selected text Reportar Mensaje
  • 689
    Visitas
  • 2
    Comentarios
Post creado: 23-Jun-2009 a las 00:45
DiMa Sabeeeeee!
Avatar de DiMaNacho
DiMaNacho esta en línea ahora

Mi pensamiento Güiikero

buen nick!

Mostrar info güiikera +

Realizado: 23-Jun-2009, 11:48 Comentario #2
critica constructiva, hay un tag para estos post que permite ingresar codigo HTML y PHP

el PHP está bueno porque diferencia en colores los distintos tags según su uso...

Te digo esto porque está re complicado entender bien el post de este tipo, quedó medio deforme
Responder Citando Quote selected text
Uchiha Itachi'
Avatar de Luix
Luix está desconectado

Mi pensamiento Güiikero

holi

Mostrar info güiikera +

Realizado: 26-Jun-2009, 01:54 Comentario #3
Gracias por la critica, lo e arreglado... En realidad si estaba refeo, lo hice medio apurado y no me preocupe, disculpen ^^


Solo sé, que no se nada
Responder Citando Quote selected text
Respuesta

Etiquetas
codigos, html, java, scripts
Temas Similares
Tema Autor Foro Respuestas Último mensaje
Adapta Aplicaciones Java a cualquier Celular DiMaNacho Tutos y Manuales 0 28-Dec-2009 17:45
336 juegos java DiMaNacho Juegos Mobiles 0 28-Dec-2009 17:44
Top Juegos Java II (todas las resoluciones) DiMaNacho Juegos Mobiles 0 21-Dec-2009 10:48
Introducción a HTML y Javascript elmartin Informatica 0 02-Nov-2009 21:51
Tutorial de Eclipse, principiantes, para programar en Java elmartin Tutoriales 0 31-Oct-2009 15:19


Chat Güiikero!
Loading ...
Empty the chat input field
Show the formatting buttons line (BBCODES) Show the smilies selection line Enable/Disable sound in the chatbox Show the help window
MGC Chatbox Evo v3.2.2 by MGC © 2008-2012
General help
The MGC Chatbox Evo is really easy to use

You can :
  1. Send chats : you just have to enter the text in the dedicated input field and then to validate it by pushing the return key ou by clicking on the OK button.
  2. Format the chats :
  3. once you un-collapse the chatbox formatting toolbar by clicking on the BBCode button, you have access to different formatting options for your chats. You can format a chat by selecting a part (or the totality) of it and then select one of the buttons/list. You can also add empty formatting tags by selecting nothing and clicking one of the buttons/menu thus allowing you to add the chat text afterwards between these tags.*
  4. Access to the different channels : you can have access to different channels restricted to only some usergroupds or for specifics use of the chatbox. The different channels are accessible from the buttons on the left of the chatbox.*
  5. Edit your chats (or others chats) : the edition of a chat can be done by a simple double-click on it.*
  6. Use specific commands : some commands can be accessible in the chatbox depending on the will of the administrator(s) of your forum. These commands let you execute specific actions of formatting, management, etc... You will herebelow the information on the command which are accessible to you. You must notice that you are not forced to use the command prefixes (/command_name) when you use them in the channel they are attached to (except in the general channel).*
* : Depending on the settings chosen by the administrator(s) of the forum, you might not have access to all these features.



Herramientas
Desplegado

Normas de Publicación
No puedes crear nuevos temas
No puedes responder mensajes
No puedes subir archivos adjuntos
No puedes editar tus mensajes

Los Códigos BB están Activado
Las Caritas están Activado
[IMG] está Activado
El Código HTML está Desactivado
Trackbacks are Activado
Pingbacks are Activado
Refbacks are Activado


------
Guii en Facebook Guii en Twitter Guii en YouTube!



Guii.com.uy fue desarrollado y diseñado por DMNArts.com
utilizando como base vBulletin (Copyright © 2000-2011 Jelsoft Enterprises Limited.)
no new posts