Welcome to the Geeks & God Static Archive. Read more »

How to implement Search drop down?

Anonymous
Anonymous's picture

Hello all -

I'm working on a church website (drupal) and would love to implement the cool feature on this website where the search box drops down appears at the top of the page when you click on "Search". Does anyone know how Matt/Rob did that? Or have ideas to point me in a general direction? Thanks!

Jonathan Hadders

Joined: 10/18/2008
They've got a jQuery script

They've got a jQuery script to show/hide the search box. Check out the source of the page.

Here's the jQuery for it: http://geeksandgod.com/sites/all/themes/geeksandgo...

/ * Begin Signature */
It's a strange thing about determined seekers-after-wisdom that, no matter where they happen to be, they'll always seek that wisdom which is a long way off. Wisdom is one of the few things that looks bigger the further away it is.

G&G Podcast Host
Rob Feature's picture
Joined: 06/01/2006
Custom

Yup, Matt wrote this custom for this site, it's fairly staightforward jquery goodness.

-Rob Feature
Geeks and God Co-Host
www.mustardseedmedia.com

Joined: 10/18/2008
jQuery is tastey.

jQuery is tastey.

/ * Begin Signature */
It's a strange thing about determined seekers-after-wisdom that, no matter where they happen to be, they'll always seek that wisdom which is a long way off. Wisdom is one of the few things that looks bigger the further away it is.

RkyMtnEng
Anonymous's picture
Sweet!

Thanks guys! As you probably guessed, I'm fairly new to this and haven't delved into jQuery and beyond javascript basics yet. Although now seems like the opportune time! Thanks for pointing me in the right direction. And thanks for all the help and tips you provide to all of us amateurs out here. It's incredibly helpful!

Jonathan

G&G Podcast Host
Rob Feature's picture
Joined: 06/01/2006
slideToggle()

I'm not sure if it's what matt used here or not (to be honest) but look into the slideToggle() effect to achieve what's happening here:

-Rob Feature
Geeks and God Co-Host
www.mustardseedmedia.com

Joined: 05/30/2009
Thanks again

slideToggle()

I'm not sure if it's what matt used here or not (to be honest) but look into the slideToggle() effect to achieve what's happening here:

Thanks again Bob for pointing me in the right direction. Only took a couple of lines of code and just when I was trying to figure out how to handle my search box placement issue.

Regards,
Brent