![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
22/05/2008, 09:52
|
![Avatar de KarlanKas](http://static.forosdelweb.com/customavatars/avatar11549_2.gif) | Moderador extraterrestre | | Fecha de Ingreso: diciembre-2001 Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 1 mes Puntos: 61 | |
Respuesta: Problemas con onBlur y onFocus in Explorer A ver si asi...
function unrease(id) {
//este if lo uso por el problema con el explorer de que no me anda bien el getElementById
div = document.getElementById(id);
if(div.value == 'Type email here') {
div.value="";
}
div.style.textTransform="none";
}
function rease(id, text) {
div = document.getElementById(id);
if(div.value.length == 0) {
div.value=text;
div.style.textTransform="uppercase";
}
else {
div.style.textTransform="none";
}
}
__________________ Cómo escribir
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia. |