+ Reply to Thread
Results 1 to 3 of 3

Thread: Search - add text to input field

  1. #1
    jeffshead's Avatar
    jeffshead is offline Registered User
    Join Date
    Aug 2008
    Posts
    61
    Downloads
    0
    Uploads
    0

    Default Search - add text to input field

    Is there a way to add default text to the search mail input box?

    I would like to add something like the following:

    Code:
    onfocus="if(this.value==Search current folder...) this.value='';"
    onblur="if(this.value=='') this.value='Search current folder...';"
    value="Search current folder..."

  2. #2
    skaero's Avatar
    skaero is offline Administrator
    Join Date
    Jun 2006
    Location
    USA - New Mexico
    Posts
    2,092
    Downloads
    5
    Uploads
    0

    Default

    It could be done by modifying the RouldCube core, it maybe possible with JavaScript or a skin modification aswell.

  3. #3
    corbosman's Avatar
    corbosman is offline Registered User
    Join Date
    Dec 2008
    Location
    Amsterdam, The Netherlands
    Posts
    235
    Downloads
    1
    Uploads
    0

    Default

    Should be easy with a plugin. Check out jquery focus and blur event handler functions. You can bind them to the search box and presto.

    That way you dont have to modify anything.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts