Hi all,

I'm looking to achieve the same click and search function as on pastie.org. (http://pastie.org/). Click on search in the nav bar and see what happens. Can I create this in the primary links?

ADAM

Comments

vm’s picture

<li><a href="#" onclick="$('search').show(); $('search_box').focus();">Search</a>
			</li>
		<li id="search" style="display:none;">
			<form action="/search/">
				<input type="text" style="font-size:0.85em;" size="15" id="search_box" name="q" value="">
			</form>
		</li>

Is the relevant code from the linked site. It's a little bit of javascript and css. How you will squeeze that into the primary links I'm not sure but it's a start.

adamlfoster’s picture

Yep. That's the one. Pretty straight forward. The tough thing is coding it into Drupal. Thanks for your help. If you get an idea let me know.

Adam