Gloss & Stripes

About Programming, Mac, Design and Everything that's somehow Arty or Open Source.

A searchform like in iTunes [en]

Apple's searchforms are sexy. Experimenting with CSS, the DOM and forms I managed to build a searchform that works and looks like the search in Apple's Safari, iTunes, Spotlight and every other rounded searchform in Mac OS X.

Actually, this specific searchform is to be found in nearly every Apple software-product. Also in the Safari browser. And since this rounded and functional searchform integrates nicely with a website, I wanted it to display and behave this way in every browser.

The Apple searchforms feature:

  • realtime ‘on-type’-search on your music
  • a small magnfying glass to select where to search
  • a small button to clear the search field when something is typed into it.
  • a dropdown menu to select search options (disregarded in this project)

Here is a quick screenshot of how the searchform looks in iTunes. Well, it has a white background insted of a ‘digital-green’ but the background of the iTunes title-display has that color. So I combined them into this:

searchform in iTunes

I did a quick thought on how I could realise this functionality to use it for the searchform on my site and still keep it an accessible searchform.

The solution is close: It can easily be done using JavaScript and CSS to style it like Apple-Candy. For now I didn’t implement the option dropdown but this is also easy to realise by using e.g. an unsorted list.

Quick ‘n Dirty

You can see the implemented searchform in my sidebar.

Meanwhile, I’ve switched my WordPress theme and discarded the example searchform. But I’m currently working on a new implementation as JavaScript Object Notation. It’s already live for testing purposes. New graphics are also in progress.

Go for the code:

References & Annotations

Documentations and things I discovered during research and development

  • To make the border of an input invisible you have to set border-style: hidden (none doesn’t work).

Known Bugs

  • Button background images still don’t work properly in Opera
  • Reset button doesn’t hide on form reset

Feel free to post a comment if you like (or do not like) the new search. I would also appreciate the reporting of further bugs/fixes and suggestions for improvement. Experts to the front!

RT @dertimbo A searchform like in iTunes

Posted in Design, Developing, Tags:, , ,

Possibly Related Entries

7 Responses to “A searchform like in iTunes”

  1. kelet said

    It’s wonderful.,and can you give the image samples used in this ?

  2. Sure. I added a paragraph Images I used in the article.

    Glad you like it. :)

  3. kelet said

    Thanks a lot ,I would change it green to fit my page:)

  4. kelet said

    hi,I open your page under IE6.0/windows,and the search form background shows a bit of the second form top.Have you check that condition?

  5. Yes, I am aware of that issue. It’s based in the input-fields’ line-height and padding. I’m working on it. It’s fixed.

  6. This is amazing! Keep up with the good work =)

  7. Wow that is really impressive, great work, I hope maybe one day you’ll be able to produce it as a plugin or something! Great anyway thanks!

Post a comment or review the article

+ -

Who is this?

freshlabs journal is the bi-lingual weblog and digital playground of Tim Isenheim, designer and webdeveloper from Hamburg, Germany. More →

  • Download Summersun, a sunny theme for WordPress
  • Download WP SIMILE Timeline, a lifestream plugin for WordPress

Topics

Archives

Tag Cosmos

3D ajax Apple blogging browser comedy comments contest copenhagen css Design dom firefox flash fuckedup gallery google html interface javascript music mythbusters offline opensource osx photo photoshop php plugin powerbook programming projects psp skype Software spam studyabroad switch video w3c wallpaper webdesign webstandards westciv Wordpress

Full Tag Cloud