Team-Soporte
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.

Codigos varios 11

2 participantes

Ir abajo

Codigos varios 11 Empty Codigos varios 11

Mensaje por juan Dom Jul 06, 2008 10:40 pm

Mensaje al pasar el mouse por encima del texto:

Código:
<HTML>
<HEAD>
  <script LANGUAGE="Javascript">
  <!-- Los comentarios esconden el código a navegadores sin Javascript
    function Alarma() {
      alert("MENSAJE QUE QUIERS QUE APARESCA CUANDO PASEN POR ENCIMA");
      return true;
    }
  // -->
  </script>
</HEAD>
<BODY>
<A HREF="eventos.html" onMouseOver="Alarma()">
  Aqui tu texto
</A>
</BODY>
</HTML>


Nota: No pueden Clickear ni marcar el texto, no se puede hacer nada! Razz

Penalizar con un número de clicks al presionar 2 veces el botón derecho:

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!");
 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");
 return false;}}
 return true;
 }
 document.onmousedown=right;
 if (document.layers) window.captureEvents(Event.MOUSEDOWN);
 window.onmousedown=right;
 // --></script>

Banner rotatorio (puedes agregar los banners ke kieras):

Código:
<script LANGUAGE="Javascript">
<!-- Begin
var how_many_ads = 3;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
txt="TEXTO";
url="URL DE LA WEB";
alt="TEXTO";
banner="URL DEL BANNER";
width="ANCHO DE IMAGEN";
height="ALTO DE IMAGEN";
}
if (ad==2) {
txt="TEXTO";
url="URL DE LA WEB";
alt="TEXTO";
banner="URL DEL BANNER";
width="ANCHO DE IMAGEN";
height="ALTO DE IMAGEN";
}
if (ad==3) {
txt="TEXTO";
url="URL DE LA WEB";
alt="TEXTO";
banner="URL DEL BANNER";
width="ANCHO DE IMAGEN";
height="ALTO DE IMAGEN";
}
document.write('<center>');
document.write('<a href=\"' + url + '\" target=\"_blank\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0><br>');
document.write('<small>' + txt + '</small></a>');
document.write('</center>');
// End -->
</script>


Código que te permite saber tu edad... RAROO!

Código:
<script LANGUAGE="Javascript">
<!-- Begin
var how_many_ads = 3;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
txt="TEXTO";
url="URL DE LA WEB";
alt="TEXTO";
banner="URL DEL BANNER";
width="ANCHO DE IMAGEN";
height="ALTO DE IMAGEN";
}
if (ad==2) {
txt="TEXTO";
url="URL DE LA WEB";
alt="TEXTO";
banner="URL DEL BANNER";
width="ANCHO DE IMAGEN";
height="ALTO DE IMAGEN";
}
if (ad==3) {
txt="TEXTO";
url="URL DE LA WEB";
alt="TEXTO";
banner="URL DEL BANNER";
width="ANCHO DE IMAGEN";
height="ALTO DE IMAGEN";
}
document.write('<center>');
document.write('<a href=\"' + url + '\" target=\"_blank\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0><br>');
document.write('<small>' + txt + '</small></a>');
document.write('</center>');
// End -->
</script>

¡Por las dudas! Código sacado de el foro de javidj, proporcionado por mi (EN EL FORO DE JAVIDJ, ME LLAMO KIOKI)

Nick en MESSENGER:
Otro code sacado de javidj, aportado por mi Very Happy :
DESCARGAR PARA VISUALIZAR!
Pinchar aqui

Colocar GOOGLE en tu web:
Código:
<!-- Búsqueda Google -->
<p> </p>
<center>
<form action="http://www.google.com/search" method="get">
<table bgcolor="#ffffff">
<tbody>
<tr>
<td><a href="www.google.es/"><img alt="Google" align="absMiddle" border="0" src="http://www.google.com/logos/Logo_40wht.gif" /></a> <input maxlength="255" size="31" name="q" /> <input type="hidden" name="hl" value="es" /> <input type="submit" name="btnG" value="Búsqueda Google" />

Cambia color de fondo de tu página web!:
Código:
<FORM>
<SELECT Size=5 name=clr onChange="document.bgColor=this.options[this.selectedIndex].value">
<OPTION VALUE="blue">Azul
<OPTION VALUE="aquamarine">Azul Agua
<OPTION VALUE="chocolate">chocolate
<OPTION VALUE="darkred">Marron
<OPTION VALUE="gold">Oro
<OPTION VALUE="red">Rojo
<OPTION VALUE="yellow">Amarillo
<OPTION VALUE="hotpink">Rosa Fuerte
<OPTION VALUE="lime">Lima
<OPTION VALUE="darkkhaki">Verdoso
<OPTION VALUE="cadetblue ">Lila
<OPTION VALUE="darkgoldenrod">Oro Viejo
<OPTION VALUE="darkslateblue">Azul Oscuro
<OPTION VALUE="blue">Azul
<OPTION VALUE="deeppink">Rosa Chillon
<OPTION VALUE="darksalmon">Salmon FLojo
<OPTION VALUE="salmon">Salmon
<OPTION VALUE="tan">Café Claro
<OPTION VALUE="wheat">Trigo
<OPTION VALUE="tomato">Tomate
<OPTION VALUE="springgreen">Verde Fluorescente
<OPTION VALUE="turquoise">Turquesa
<OPTION VALUE="white" SELECTED>Blanco
</SELECT>
</FORM>

Creo que ahi que colocarlo por debajo de la página...



ser mayor de edad para poder entrar:

Este codigo hace que le pregunte al visitante la edad, si este pone que es mayor de 18 tendra acceso a la pagina, si no, se cierra la pagina y no puede entrar.


Pueden modificar donde dice agePrompt>=18 ese 18 lo pueden modificar a la edad de limite que ustedes quiera, por ej: yo ahi le pongo 14, entonces el visitante tiene que ser mayor de 14 años.

Código:

<html>
<head>
<title>JavaFILE</title>
<script language="javascript">

var agePrompt=prompt("Cual es tu edad?");

if (agePrompt>=18) alert(Bienvenido!!')
else {
alert('lo siento,tienes que ser mayor de edad para entrar a esta pagina.')
document.location="http://www.disney.com";

}
</script>

<base target="leftframe">
</head>

<body BGCOLOR="#ffffff" link="#CC0033" vlink="#333399" alink="#FF0000" <!--content start-->

<p align="center"><img src="www.web-detodo.es.tl"
alt="banner.GIF (2826 bytes)"></p>

<table WIDTH="96%" BORDER="0" CELLSPACING="5" CELLPADDING="5">
<tr>

<p></font> </p>
</body>
</html>

Comprobar si el visitante tiene flash instalado:
Código:
<script language="Javascript">
<!--
function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { http://v4.0
var ok=false; document.MM_returnValue = false;
with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
ok=(plugins && plugins[plgIn]);
} else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;
else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;
else ok=autoGo; }
if (!ok) theURL=altURL; if (theURL) window.location=theURL;
}
//-->
</script>

<!-- Y luego lo llamas en el body -->
<body>
<body onLoad="MM_checkPlugin('Shockwave Flash','okflash','noflash',true);return document.MM_returnValue">
</body>
juan
juan
Moderador
Moderador

Cantidad de envíos : 71
Edad : 29
Localización : Cordoba- Argentina
Fecha de inscripción : 15/06/2008

--> Perfil
Talller(es): Si
Moderadores: Si

http://quemusica.es.tl

Volver arriba Ir abajo

Codigos varios 11 Empty Re: Codigos varios 11

Mensaje por MoDiTox Miér Dic 31, 2008 12:33 pm

Muy Bueno gracias por el aporte
MoDiTox
MoDiTox
Moderador
Moderador

Cantidad de envíos : 39
Edad : 29
Localización : ¿Yo? En mi casa porque?
Fecha de inscripción : 17/12/2008

--> Perfil
Talller(es): No
Moderadores: No

http://www.designs-web.es.tl

Volver arriba Ir abajo

Volver arriba

- Temas similares

 
Permisos de este foro:
No puedes responder a temas en este foro.