New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Language: JavaScript

No Title

22 Views
Copy Code Show/Hide Line Numbers
<script type="text/javascript">
 $.fn.timeout = function(t,f){
  this.each(function(){setTimeout(f,t);  });  
return this; 
};
</script>
 <script type="text/javascript">
 
$(document).ready(function(){
                            
                        $("li").mouseover(function(){                                                     
                                                      $(this).children("ul").show();
                                                    
                                                      });
                        
                          $("li").mouseout(function(){
                                                    $(this).timeout(1000,alert("x"));                                                                                                                                                            });
                         
                            $('form#subscribe').submit(function(){
                            $.ajax({
                                    type: 'POST',
                                    url: '<?php bloginfo('siteurl');?>/email.php',
                                    data: $('form').serialize(),
                                    success: function(ajaxCevap) {
                                        alert(ajaxCevap);
                                    }
                                });
                           
                            return false;
                           });
 
                           });
 
</script>
by
  February 08, 2010 @ 12:53pm

Add a comment


Report Abuse
brought to you by:
West Wind Techologies


If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate