funciones functions javaScript

 /* FUNCTIONS */  function hola_usuario() {  document.write(«Hola que tal <br>»)  }  function raiz(x) {   return x * x ;  }   hola_usuario();     numero=prompt(«Ingresa un numero», 0); document.write(raiz(numero)); Tags: funciones, functions

DO WHILE

 /* DO WHILE */  var requested_month=0; var MonthArray= [ «», «Enero», «Febrero», «Marzo», «Abril», «Mayo», «Junio», «Julio», «Agosto», «Septiembre», «Octubre», «Noviembre», «Diciembre»  ]  document.write(«Ingresa un número del 1 al 12: <br>»);  do {  requested_month=prompt(«Ingresa un numero del 1 al 12 o 0 para salir», 0);  if ( requested_month <= 12 )   {    document.write(MonthArray[requested_month] + «<BR>»);   }  }while (requested_month != 0) 

for loops

 /* FOR LOOPS */  var hora; var ampm;  for ( hora=1; hora<=24; hora++) {  if (hora < 12) { ampm = «am» }  if (hora > 12) { ampm = «pm» }    if (hora < 13 )  {   document.write(hora + ampm)  }   else  {       document.write((hora-12) + ampm)    }    document.write(«<br>»);   } 

Switch Case

 var clave_admin=»ice»; var clave_dev=»snow»; var clave_user=»water»;  var login=prompt(«Ingresa la clave porfavor: «, » «);   switch (login) {    case «ice»:   alert(«Hola Administrador»);   break  case «snow»:   alert(«Hola Desarrollador»);   break  case «water»:   alert(«Bienvenido Usuario»);   break      default:   alert(«Clave incorrecta»);   break      } Tags: switch+case+javascript

Variables

var number_1 = 999.9; var number_2 = 0.1; var sum = number_1 + number_2; document.write(sum); /* Strings */ var string_1 = «Buenas Tardes<br>»; var string_2 = «¿Como estas?<br>»; var saludo = string_1 + string_2; document.write(saludo); /* Arrays */ ciudades = [ «merida», «yucatan», «mexico<br>» ]; document.write(ciudades); var reservacion_vuelo = {aerolinea:»Mexicana»,numero:342,asiento:»34f»}; document.write(reservacion_vuelo.numero); var clave = «romeo»;… Leer más: Variables »

javaScript HTML DOCS

Header <script language=»JavaScript» type=»text/javascript» src=»js/codigo.js»></script> <script language=»javascript»> <!— //… script statements //—> </script> Body <script></script>   Tags: HTML+DOCS, script

Editor Ed Unix V7

El editor ed fue hecho con la idea de tener un editor rápido y pequeño con lo mínimo indispensable. Es, además, un editor confiable y que puede ser usado en las peores condiciones: con terminales lentas, en conexiones por modem y, quizá la más interesante, desde archivos por bloques. La mayoría de los editores asumen… Leer más: Editor Ed Unix V7 »

How can I disable the User Account Control (UAC) feature on my Windows Vista computer?

Windows Vista has the built-in ability to automatically reduce the potential of security breeches in the system. It does that by automatically enabling a feature called User Account Control (or UAC for short). The UAC forces users that are part of the local administrators group to run like they were regular users with no administrative… Leer más: How can I disable the User Account Control (UAC) feature… »