apparently this works in safari, and the old version didn't

git-svn-id: file:///home/shish/svn/shimmie2/trunk@608 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-11-03 05:40:13 +00:00
parent 7af10fe562
commit a2c08dfee6

View file

@ -20,8 +20,11 @@ function initGray(boxname, text) {
var box = byId(boxname);
if(!box) return;
addEvent(box, "focus", function f() {cleargray(box, text);}, false);
addEvent(box, "blur", function f() {setgray(box, text);}, false);
var clr = function () {cleargray(box, text);};
var set = function () {setgray(box, text);};
addEvent(box, "focus", clr, false);
addEvent(box, "blur", set, false);
if(box.value == text) {
box.style.color = "#999";