regluit/static/js/watermark_init.js

12 lines
581 B
JavaScript
Raw Normal View History

var $j = jQuery.noConflict();
$j(document).ready(function() {
if (!$j('#watermark').val()) {
2011-12-12 21:09:18 +00:00
$j('#watermark').css({"background": "white url('/static/images/google_watermark.gif') no-repeat left center"});
2011-12-14 21:49:36 +00:00
$j('.inputalign > #watermark').css({"background": "white url('/static/images/google_watermark.gif') no-repeat 15px center"});
}
// special case for search box which is repeated on empty search results page
if (!$j('#watermarkempty').val()) {
2011-12-13 19:49:13 +00:00
$j('#watermarkempty').css({"background": "white url('/static/images/google_watermark.gif') no-repeat 15px center"});
}
});