Html Javascript Css Php Flash

Bienvenidos a la pagina de ayuda en codigos !!

Html Javascript Css Php Flash
Codigos Javascript
* E-mail:
* Password:
Registrarse Presentación Miembros Imágenes
¿Has olvidado tu Password?

Lista de mensajes
Autor Mensaje
walter
 
Mensajes: 27
Registrado: Marzo/2008
Estado: Off-line
Grupo: Administrador del foro
 
 
  Pasen y vean los codigos funcionando 23/Julio/2008 - 20:22

Pasen y vean los codigos funcionando en http://www.webwal.net
walter
 
Mensajes: 27
Registrado: Marzo/2008
Estado: Off-line
Grupo: Administrador del foro
 
 
  Re: Re: Anular boton derecho 01/Julio/2008 - 12:50

Hola Marian !!

Hay que colocarlo en el head !!

 

 

marian
 
Mensajes: 1
Registrado: Julio/2008
Estado: Off-line
Grupo: Nuevo usuario
 
 
  Re: Anular boton derecho 01/Julio/2008 - 10:58

Hola, el codigo es muy sencillito, pero  ¿donde hay que ponerlo, en el head  o en el  body?

gracias

paula
 
Mensajes: 1
Registrado: Mayo/2008
Estado: Off-line
Grupo: Nuevo usuario
 
 
  Actualizar pagina cada 3 segundos 18/Mayo/2008 - 14:21

<body onload="setTimeout('location.reload()',3000)">
Carla
 
Mensajes: 1
Registrado: Mayo/2008
Estado: Off-line
Grupo: Nuevo usuario
 
 
  Calendario Anual 17/Mayo/2008 - 14:54

<SCRIPT LANGUAGE="JavaScript">

 
// define variables
 
var month_names = new Array("Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic");
var days_in_month  = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
var this_date = new Date();                                   // get todays date
var this_day = this_date.getDate();                           // returns date within month - range 1-31
var this_month = this_date.getMonth();                        // returns month within year - range 0-11

function makeCalendar(the_month, the_year)
{   first_of_month = new Date(the_year, the_month, 1);        // creates instance of date object for first of month
    day_of_week = first_of_month.getDay();                    // returns day within week - range 0-6
    if  (((the_year % 4 == 0) && (the_year % 100 != 0)) || (the_year % 400 == 0))
    {   days_in_month[1] = 29;                                // it's a leap year so change # days in Feb in array
    }
    else
    {   days_in_month[1] = 28;                                // not leap year - future use if multi year calendar built
    }
    document.write("<TABLE CALLSPACING=0 CELLPADDING=0>");    // start building the month table
    document.write("<TR BGCOLOR='maroon'><TH COLSPAN=7>" + month_names[the_month] + " " + the_year);        // month and year heading
    document.write("<TR BGCOLOR='orange'><TH>S</TH><TH>M</TH><TH>T</TH><TH>W</TH><TH>T</TH><TH>F</TH><TH>S</TH></TR>");    // day of week heading
    document.write("<TR ALIGN=RIGHT>");
    var column = 0;
    for (i=0; i<day_of_week; i++)                             // skip to day_of_week value for first_of_month
    {   document.write("<TD> </TD>");
        column++;
    }
    for (i=1; i<=days_in_month[the_month]; i++)
    {   if  ((i == this_day)  && (the_month == this_month) && (the_year == this_year))
        {   document.write("<TD BGCOLOR='red'><B>" + i + "</B></TD>");       // highlite todays date
        }
        else
        {   document.write("<TD BGCOLOR='black'><B>" + i + "</B></TD>");       // no highlite for other dates
        }
        column++;
        if  (column == 7)                                     // start next row of dates for month
        {   document.write("</TR><TR ALIGN=RIGHT>");
            column = 0;
        }
    }
    document.write("</TR></TABLE>");                          // month complete - close table
}
   
function y2K(number)                                          // if year < 2000 javascript gives only 2 digits for year
{ return (number < 1000) ? number + 1900 : number;
}
 
var this_year = y2K(this_date.getYear());
// -->
                       
</SCRIPT>

 

<SCRIPT LANGUAGE="JavaScript">

<!--
 
document.write("<TABLE BORDER='5' bgcolor=orange><TR VALIGN=TOP><TD>");
makeCalendar(0, this_year);                                   // we are passing the month and year to build the calendar
document.write("</TD><TD>");                                  // in JavaScipt the first month is 0
makeCalendar(1, this_year);
document.write("</TD><TD>");
makeCalendar(2, this_year);
document.write("</TD><TD>");
makeCalendar(3, this_year);
document.write("</TD></TR><TR VALIGN=TOP><TD>");
makeCalendar(4, this_year);
document.write("</TD><TD>");
makeCalendar(5, this_year);
document.write("</TD><TD>");
makeCalendar(6, this_year);
document.write("</TD><TD>");
makeCalendar(7, this_year);
document.write("</TD></TR><TR VALIGN=TOP><TD>");
makeCalendar(8, this_year);
document.write("</TD><TD>");
makeCalendar(9, this_year);
document.write("</TD><TD>");
makeCalendar(10, this_year);
document.write("</TD><TD>");
makeCalendar(11, this_year);
document.write("</TD></TR></TABLE>");
document.close();
 
// -->
                       
</SCRIPT>

estela
 
Mensajes: 1
Registrado: Mayo/2008
Estado: Off-line
Grupo: Nuevo usuario
 
 
  Saludo , Buenos dias , Buenas Tardes , Buenas Noches 17/Mayo/2008 - 14:43

<font color=beige>
<script LANGUAGE="JavaScript">
 var dt = new Date();
 var hr = dt.getHours();
 var msg = ((hr<12) ? "Buenos dias" :"Buenas Noches");
 msg = ((hr>11)&&(hr<19) ? "Buenas Tardes" : msg);
 msg=" <H3> "+msg+" !</H3>";
 document.write(msg);
</script>
walter
 
Mensajes: 27
Registrado: Marzo/2008
Estado: Off-line
Grupo: Administrador del foro
 
 
  Anular boton derecho 07/Mayo/2008 - 18:10

<!-- Bot?n derecho del mouse -->
<script LANGUAGE="JavaScript1.1">
function derecha(e) {
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){
alert('Bot?n derecho inhabilitado')
return false;
}
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2)){
alert('Bot?n derecho inhabilitado')
}
}
document.onmousedown=derecha
</script>
walter
 
Mensajes: 27
Registrado: Marzo/2008
Estado: Off-line
Grupo: Administrador del foro
 
 
  Re: Re: Contador de tiempo 22/Abril/2008 - 21:23

Hola Maury !!

Mira respecto al contador de tiempo , cuando abre empieza y cuando la cerras lo termina .

Si queres ponerle un stop ya voy a hacer otro codigo en estos dias ya que estoy cambiando la pagina agregandole codigos y muchas cosas mas .

Fijate d eponer el codigo entre head y body ya que si no no te va a funcionar.

Cualquier consulta hacemela saber y te ayudo.

Walter

maury contreras
 
Mensajes: 3
Registrado: Abril/2008
Estado: Off-line
Grupo: Nuevo usuario
 
 
  Re: Contador de tiempo 22/Abril/2008 - 15:59

holas!!!!!! disculpa me parece muy bien tu contador quiciera saber como haria yo para implantar en un sistema ese codigo pero que me contara el tiempo en q un usuario inicia una secion y que pare cuando el usuario cierra la sesion si me puedes ayudar lo agradeceria....

chao q estes bien.....

 

maury contreras
 
Mensajes: 3
Registrado: Abril/2008
Estado: Off-line
Grupo: Nuevo usuario
 
 
  Re: Contador de tiempo 22/Abril/2008 - 15:56

holas!!!!!! disculpa me parece muy bien tu contador quiciera saber como haria yo para implantar en un sistema ese codigo pero que me contara el tiempo en q un usuario inicia una secion y que pare cuando el usuario cierra la sesion si me puedes ayudar lo agradeceria....

chao q estes bien.....

 

maury contreras
 
Mensajes: 3
Registrado: Abril/2008
Estado: Off-line
Grupo: Nuevo usuario
 
 
  Re: Contador de tiempo 22/Abril/2008 - 15:52

holas!!!!!! disculpa me parece muy bien tu contador quiciera saber como haria yo para implantar en un sistema ese codigo pero que me contara el tiempo en q un usuario inicia una secion y que pare cuando el usuario cierra la sesion si me puedes ayudar lo agradeceria....

chao q estes bien.....

 

Andrea
 
Mensajes: 3
Registrado: Marzo/2008
Estado: Off-line
Grupo: Nuevo usuario
 
 
  Cambia imagen cada 5 segundos 19/Marzo/2008 - 16:54

<script language="JavaScript">
<!-- hide from other browsers 

//Pictures to switch inbetween

var Rollpic1 = "img22.jpg";
var Rollpic2 = "img23.jpg";
var Rollpic3 = "img24.jpg";


//Start at the what pic:
var PicNumber=1;
//Number of pics:
var NumberOfPictures=3;
//Time between pics switching in secs
var HowLongBetweenPic=5;

//SwitchPic Function
function SwitchPic(counter){

 if(counter < HowLongBetweenPic){
 
  counter++;
  
  //DEBUG in the status bar at the bottom of the screen
  window.status="Cambia imagen cada 5 segundos : "+counter+" - Imagen nº: "+PicNumber+" ";
  
  //Display pic in what <IMG> tag roll is what I called the image
  document.roll.src = eval("Rollpic" + PicNumber);
  
  //function calls itself
  CallSwitchPic=window.setTimeout("SwitchPic("+counter+")",500);
  
  }
  
  else{
   //if its not the last picture goto the next picture
   if(PicNumber < NumberOfPictures){
    PicNumber++;
    SwitchPic(0);
   }
   //its the last picture go to the first one
   else{
    PicNumber=1;
    SwitchPic(0);
    }
 
  }

}
// Stop hiding from old browsers -->
</script>

walter
 
Mensajes: 27
Registrado: Marzo/2008
Estado: Off-line
Grupo: Administrador del foro
 
 
  Calendario Diario 19/Marzo/2008 - 16:49

<script languaje="JavaScript">
        mesarray=new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio","Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
       diaarray=new Array( "Domingo","Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado");
       hoy = new Date();
       dias = hoy.getDate();
       dia = hoy.getDay();
       mes = hoy.getMonth();
       mes=mesarray[mes];
       dia =diaarray[dia];
       anno = hoy.getYear();
       if (anno <200)
         anno = anno+1900;
       document.write('<TABLE WIDTH="60" height="60" BORDER="2" BGCOLOR="blue"><TR><TD><CENTER>');
       document.write('<FONT SIZE="2" COLOR="#000000"> <B>'+mes+'</B></FONT><br>');
       document.write('<FONT SIZE="1" COLOR="#000000">'+anno+'</FONT><br>');
       document.write('<FONT SIZE="4" COLOR="#000000" FACE="Arial"><B>'+dias+'</B></FONT><br>');
       document.write('<FONT SIZE="1" COLOR="#000000">'+dia+'</FONT><br>');
       document.write('</CENTER></TR></TD></TABLE>');
       </script>
elizabeth
 
Mensajes: 3
Registrado: Marzo/2008
Estado: Off-line
Grupo: Nuevo usuario
 
 
  A que hora antraste a la pagina 19/Marzo/2008 - 10:22

entraste a las :
<script>
hora = new Date();
document.write(hora.getHours() +":"+hora.getMinutes()+" Hs.");
document.write('<br>');
</script>
jonathan
 
Mensajes: 1
Registrado: Marzo/2008
Estado: Off-line
Grupo: Nuevo usuario
 
 
  Contador de tiempo 19/Marzo/2008 - 04:57

 <SCRIPT LANGUAGE="JavaScript">
<!--
var hour = "0"
var min = "00"
var sec = "0"
function timer(){
if ((min < 10) && (min != "00")){
dismin = "0" + min
}
else{
dismin = min
}
dissec = (sec < 10) ? sec = "0" + sec : sec
document.timer.counter.value = hour + ":" + dismin + ":" + dissec

if (sec < 59){
  sec++
}
else{
  sec = "0"
  min++
  if (min > 59){
   min = "00"
   hour++
  }
}
window.setTimeout("timer()",1000)
}
// -->
</SCRIPT>
  </HEAD>
  <BODY ONLOAD="timer()">
  <FORM NAME="timer">
  <P><FONT SIZE="-1" FACE="Arial">Llevas en esta página</FONT>
     <INPUT TYPE="TEXT" NAME="counter"></P>
         </FORM> <BR>
  <P><FONT SIZE="-1" FACE="Arial"><B></B></FONT></P>

walter
 
Mensajes: 27
Registrado: Marzo/2008
Estado: Off-line
Grupo: Administrador del foro
 
 
  Texto Marquesina 19/Marzo/2008 - 04:39

<MARQUEE bgcolor='#9999cc' WIDTH=70% HEIGHT=24><font color='yellow'><h3><i><b>Aca va el texto</font></MARQUEE>

Usuarios activos
1 usuarios activos: 0 miembros y 1 huespedes en el foro.
 Reglas de mensaje
puedes escribir nuevos temas
puedes responder a los temas
puedes adjuntar archivos
no puedes editar tus mensajes
Contactar con el Administrador del foro.

La utilización del servicio vendrá condicionada por la previa aceptación de las Condiciones Generales de Uso del Servicio.



Foro gratis creado en ForosWebGratis.com. Crea tu propio foro aquí.