/** * @author dave */ // JavaScript Document $(document).ready(function() { // when the field is focused and the val is equal to the defaul text clear it + getrid of the style/ $(".search-blog").focus(function(srcc) { if ($(this).val() == $(this)[0].title) { $(this).removeClass("search-blog-active"); $(this).val(""); } }); // when the field is bured focus and the val is nothing reset it to the defaul text $(".search-blog").blur(function() { if ($(this).val() == "") { $(this).addClass("search-blog-active"); $(this).val($(this)[0].title); } }); // set field to blur focus. $(".search-blog").addClass("search-blog-active"); $(".search-blog").blur(); $("form").submit(function() { $(".search-blog").each(function() { if($(this).val() == this.title) { $(this).val(""); } }); }); /* $("div#sidebar_podcast_flash_holder").flash({ codebase: 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0', src: 'podcast-285x255.swf', quality: 'high', pluginspage: 'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash', width: 285, height: 255 });*/ }); function gotoPodcasts() { window.location = "index.php?cat=465"; }