Codigos para acciones
-este script le pide el nombre al visitante y lo saluda
CODE:
<script>
var whatName=prompt("Por favor escribe tu nombre:","");
function doName(theName){
if ((whatName != "")&&(whatName !=null)){
// you can modify this as needed
// this is the message if a name is typed in
document.writeln("Hola "+whatName+"! espero y estes disfrutando mi pagina...!!!")
}else{
// you can modify this as needed
// this is the message if a name is *not* typed in
document.writeln("Hola! visitante espero y estes disfrutando mi pagina...!!!")
}
}
doName(whatName);
</script>
-Este script saluda a tu visitante al entrar a tu web
CODE:
</script> <script language=JavaScript>
alert("TU TEXTO")
</script>
-este codigo le pregunta a tu visitante si quiere entrar a tu web
CODE:
<head>
<title>Alert Box2</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<script language="JavaScript">
function CONFIRM(){if (!confirm
("**Aqui el texto que desees**"))
history.go(-1);return " "}
document.writeln(CONFIRM())
</script>
|