Search form remove value on click and add the value back on click off

Search form remove value on click and add the value back on click off

, , on June 28, 2012 Add new comment

Search form default value (dissapears on click, appears back on click off).

<input type="text" class="search-input" name="quicksearch" placeholder="Enter your search here">

$(function(){
    // Check for browserSearch form default value (dissapears on click, appears back on click off).


$(function(){
    // Check for browser support of placeholder attribute
    function supports_placeholder() {
        return !!document.createElement('input').placeholder;
    }
    if (!supports_placeholder()) {
        // current browser does not support the placeholder
		Read more »
      

Load images after DOM is loaded with Lazy Load Plugin for jQuery

Load images after DOM is loaded with Lazy Load Plugin for jQuery

, on May 03, 2010 Add new comment
Load images after DOM is loaded with Lazy Load Plugin for jQuery

As the title say, this plugin loads images after the DOM is ready.

Load the jquery and the plugin.



The simplest use is to put $("img").lazyload(); inside document ready event.

$(document).ready(function() {
    $("img").lazyload();
});
Read more »

javascript, jQuery, Mootools, Prototype

Make jQuery work on the same page with Mootools and or Prototype

, , , on June 25, 2008 2 comments
Make jQuery work on the same page with Mootools and or Prototype

Some conflicts appear when using jQuery javascript library with Motools or Prototype on the same page. A workaround is using noConflict mode for jQuery.

Follow these steps:

1. Download the latest version of jQuery

2. Download jQuery compat

3. Open jquery.js, go to the end of the file and add this line jQuery.noConflict();

Read more »

jcarousel

Drupal - Jcarousel and views

, , on March 24, 2008 2 comments

Adding a Jcarousel effect to a

    of a block view.

    Install jquery_update module.

    Download Jcarousel. Unzip to theme folder.

    Create a block view, than publish it.

    Add this snippet inside the part of page.tpl.php:

    Read more »