regluit/static/js/watermark_change.js

21 lines
710 B
JavaScript
Raw Normal View History

2011-12-12 21:09:18 +00:00
function imgblur(pos){
if (document.getElementById('watermark').value == "") {
2011-12-12 21:09:18 +00:00
document.getElementById('watermark').style.background="white url('/static/images/google_watermark.gif') no-repeat "+pos+"px center";
}
}
function imgfocus(){
document.getElementById('watermark').style.background="";
}
// special case for search box which is repeated on empty search results page
function imgblurempty(pos){
if (document.getElementById('watermarkempty').value == "") {
document.getElementById('watermarkempty').style.background="white url('/static/images/google_watermark.gif') no-repeat "+pos+"px center";
}
}
function imgfocusempty(){
document.getElementById('watermarkempty').style.background="";
}