Solución de la clase del día viernes 23-09
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<form name="f">
<select name="s"
onkeypress="javascript:alert( window.document.f.s.options[s. selectedIndex].text);">
<option value="t515">Teclado 515 </option>
<option value="m516">Monitor 516 </option>
<option value="i517">Impresora 517 </option>
</select></br>
</br>
<img src="h:\ImagenesCompu\ MonitorLenovo.jpg" name="m2" alt="Monitor Lenovo"
title="Monitor1" onclick=
"javascript:alert(window. document.images['m2'].alt);">
<img src="h:\ImagenesCompu\ MonitorOlivetti.jpg" name="m3"alt="Monitor
Olivetti" title= "Monitor2" onclick=
"javascript:alert(window. document.images['m3'].alt);">
</form>
<script>
var color=window.prompt("escriba un color", "");
alert(color);
if (color=="rojo"){
window.document.bgColor="red"; }
else
if (color=="azul"){
window.document.bgColor="blue" ;}
Saludos!! -Anita!- Por favor Adriana no lo borres, por favor!!!
<html>
<head>
<title>Untitled</title>
</head>
<body>
<form name="f">
<select name="s"
onkeypress="javascript:alert(
<option value="t515">Teclado 515 </option>
<option value="m516">Monitor 516 </option>
<option value="i517">Impresora 517 </option>
</select></br>
</br>
<img src="h:\ImagenesCompu\
title="Monitor1" onclick=
"javascript:alert(window.
<img src="h:\ImagenesCompu\
Olivetti" title= "Monitor2" onclick=
"javascript:alert(window.
</form>
<script>
var color=window.prompt("escriba un color", "");
alert(color);
if (color=="rojo"){
window.document.bgColor="red";
else
if (color=="azul"){
window.document.bgColor="blue"
Saludos!! -Anita!- Por favor Adriana no lo borres, por favor!!!