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
@ -20,8 +20,11 @@ function initGray(boxname, text) {
|
|||||||
var box = byId(boxname);
|
var box = byId(boxname);
|
||||||
if(!box) return;
|
if(!box) return;
|
||||||
|
|
||||||
addEvent(box, "focus", function f() {cleargray(box, text);}, false);
|
var clr = function () {cleargray(box, text);};
|
||||||
addEvent(box, "blur", function f() {setgray(box, text);}, false);
|
var set = function () {setgray(box, text);};
|
||||||
|
|
||||||
|
addEvent(box, "focus", clr, false);
|
||||||
|
addEvent(box, "blur", set, false);
|
||||||
|
|
||||||
if(box.value == text) {
|
if(box.value == text) {
|
||||||
box.style.color = "#999";
|
box.style.color = "#999";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user