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:
parent
7af10fe562
commit
a2c08dfee6
1 changed files with 5 additions and 2 deletions
|
@ -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";
|
||||
|
|
Reference in a new issue