
Estos son los codigos que estan en esta pagina:
Mensaje de bienvenida:
<script language>
alert('pon el mensaje de bienvenida aqui');
</SCRIPT>
Barra de estado:
<script language>
<!--
var x = 0
var y = 0
var z = 70
var delay = 70
var text = "pon tu mensaje aqui"
+" "
+" "
while (y ++ < z) {
text = " " + text
}
function scroller () {
window.status = text.substring (x++, text.length);
if ( x == text.length) {
x = 0;
}
setTimeout ("scroller()", delay);
}
scroller();
//-->
</SCRIPT>
<script language="JavaScript">
var username = GetCookie('username');
if (username == null) {
username = prompt('¿Como te llamas?',"");
if (username == null)
{
alert('haa!! con que anonim@ he?!');
username = ' amig@ ';
}
else
{
pathname = location.pathname;
myDomain = pathname.substring(0,pathname.lastIndexOf('/')) +'/';
var largeExpDate = new Date ();
largeExpDate.setTime(largeExpDate.getTime() + (30 * 24 * 3600 * 1000));
SetCookie('username',username,largeExpDate,myDomain);
}
}
function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset,endstr));
}
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) ==
arg)
return getCookieVal (j);
i = document.cookie.indexOf("", i) + 1;
if (i == 0)
break;
}
return null;
}
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : null;
document.cookie = name + "=" + escape (value) +((expires == null) ? "" : ("; expires=" +expires.toGMTString())) + ((path == null) ? "" : ("; path="+ path)) + ((domain == null) ? "" :(";domain=" + domain)) + ((secure == true) ? "; secure" : "");
}
document.write ("Holitas "+ username );
var hoy = new Date();
var hora = hoy.getHours();
if (hora<7) {mensaje=' Uff!! a la horita que se te ocurre navegar!!:)'};
else if (hora<12) {mensaje=' buenos dias !!'};
else if (hora<16) {mensaje=' buenas tardes... anda a comer y dejate de estar navegando a la hora de almuerzo!!:)'}
else if (hora<20) {mensaje=' buenas tardes !! preparandote para ir a tomar once?'};
else {mensaje=' muuuuuyyyyy buenas noches amigo!!'};
document.write(mensaje)
function makeWindow(strLocation,h,w){
var strhwInfo="height="+h+",width="+w;
var newWin=window.open(strLocation,"",strhwInfo);
newWin.focus();
}
function closeWin(){
parent.newWin.close();
} </script>