Pilten0227
Navegación
Home
Azteca 7 (Wwe)
Registrate
Inicia secion!
Juegos Pc
Descargas
Tv Oline
Programas Portables
TEU (AIO) Antivirus
Peliculas
Codigos especiales
Postear
Mandanos tu publicidad
Codigos CSS
Codigos java
Los codigos
xddx
Web's amigas
Halo ce
Fifa 2010
GTA San andreas completo
Call Of Duty
Counter Strike 1.6 V35
Temas para escritorio
Cursore y iconos
Personaliza tu pc 2
Personaliza tu pc
Programas Portables 2
Upload
Seccion Tv
Tv
Tele
Codigos java
Mensage de espera mientras carga la pagina
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
var displayColor = prompt("
Que color quieres?"
, "
yellow
")
var textColor = "
black
"
if (displayColor == "black" || displayColor == "
#000000
" || displayColor == null) {
textColor = "
white
"
}
document.writeln("<BODY BGCOLOR=" + displayColor + " TEXT=" + textColor + ">
Color elejido
" + displayColor + "</BODY>")
</script>
Derecho reservado
Mensage de espera mientras carga la pagina
<BODY onLoad="cacheOff()">
<STYLE TYPE="text/css">
#cache {
position:absolute; left=
10
; top:
10
px; z-index:
10
; visibility:hidden;
}
</STYLE>
<SCRIPT LANGUAGE="JavaScript">
ver = navigator.appVersion.substring(0,1)
if (ver >= 4)
{
document.write('<DIV ID="cache"><TABLE WIDTH=
400
BGCOLOR=
#000000
BORDER=0 CELLPADDING=
2
CELLSPACING=0><TR><TD ALIGN=center VALIGN=middle><TABLE WIDTH=100% BGCOLOR=
#FFFFFF
BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD ALIGN=center VALIGN=middle><FONT FACE="
Arial, Verdana
" SIZE=
4
><B><BR>
ESPERE POR FAVOR ...
<BR><BR></B></FONT></TD> </TR></TABLE></TD> </TR></TABLE></DIV>');
var navi = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4);
var HIDDEN = (navi) ? 'hide' : 'hidden';
var VISIBLE = (navi) ? 'show' : 'visible';
var cache = (navi) ? document.cache : document.all.cache.style;
largeur = screen.width;
cache.left = Math.round(100);
cache.visibility = VISIBLE;
}
function cacheOff()
{
if (ver >= 4)
{
cache.visibility = HIDDEN;
}
}
</SCRIPT>
Derecho reservado
Busqueda en la pagina web
<Html>
<Head>
<Title>
Botón de Busqueda
</Title>
</Head>
<Body>
<script language="JavaScript">
var NS4 = (document.layers);
var IE4 = (document.all);
var win = window; //
Con frames usar top.nombre.window;
var n = 0;
function BuscarPalabras(str)
{
var txt, i, found;
if (str == "")
return false;
if (NS4) {
if (!win.find(str))
while(win.find(str, false, true))
n++;
else
n++;
//
No se encuentra en ninguna parte y envia un mensaje.
if (n == 0)
alert("No se encuentra.");
}
if (IE4) {
txt = win.document.body.createTextRange();
//
Encuentra la coinsidencia desde el inicio de pagina.
for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
txt.moveStart("
character", 1
);
txt.moveEnd("textedit");
}
//
Si lo encuentra, marca el resultado y mueve la barra de desplazamiento
//
para mostrarlo.
if (found) {
txt.moveStart("
character", -1
);
txt.findText(str);
txt.select();
txt.scrollIntoView();
n++;
}
//
De otra manera regresa al inicio de la página para buscar otra coinsidencia
else {
if (n > 0) {
n = 0;
BuscarPalabras(str);
}
//
No se encuentra en ninguna parte envia un mensaje.
else
alert("No se encontró.");
}
}
return false;
}
</script>
<Form Name="search" onSubmit="return BuscarPalabras(this.string.value);">
<Font Size=
2
>
<Input Name="string" Type=Text Size=
15
onChange="n =
0
;">
<Input Type="submit" Value="
BUSCAR
">
</Font>
</Form>
<Br><Br>
<Font Face=
Arial
Size=
2
>
<P>
Escribe la palabra que desees buscar dentro de esta página en el cuadro de texto y presiona el botón BUSCAR.
</P>
</Body>
</Html>
Derecho reservado
Efecto Agrrar y Soltar
<head>
<style>
<!--
.drag{position:relative;cursor:hand}
-->
</style>
<script language="JavaScript1.2">
<!--
var dragapproved=false
var z,x,y
function move(){
if (event.button==1&&dragapproved){
z.style.pixelLeft=temp1+event.clientX-x
z.style.pixelTop=temp2+event.clientY-y
return false
}
}
function drags(){
if (!document.all)
return
if (event.srcElement.className=="drag"){
dragapproved=true
z=event.srcElement
temp1=z.style.pixelLeft
temp2=z.style.pixelTop
x=event.clientX
y=event.clientY
document.onmousemove=move
}
}
document.onmousedown=drags
document.onmouseup=new Function("dragapproved=false")
//-->
</script>
</head>
Imagen sin efecto<br>
<img src="
IMG.gif
"><br>
Imagen con efecto
<br>
<img src="
IMG.gif
" class="drag"><br>
Derecho reservado
Alerta al borra contenido de un formulario
<form name="form1" method="post" action="">
<label>
<input type="text" name="textfield">
<input type="reset" name="
BORRAR
" value="BORRAR"
onClick="return confirm('
Seguro que deseas borrar?
')">
</label>
</form>
Asta el momento son todos Ya iremos agregando mas
Acerca de esta página
Este sitio web fue creado de forma gratuita con
PaginaWebGratis.es
. ¿Quieres también tu sitio web propio?
Registrarse gratis