Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 11-02-2009, 12:26 PM   #1 (permalink)
Junior Member
 
Join Date: 10-20-09
Posts: 4
iTrader: 0 / 0%
Latest Blog:
None

youngnelss is liked by many
How do I create an expandable search menu?

Never done anything like this before but I'm trying to figure out the neccesary languages/technologies in this search menu

http://tv.blinkx.com/

I'm talking about the gray search box in the middle - not the black bar on top.

How would you go about creating a search box like this?
youngnelss is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-02-2009, 06:27 PM   #2 (permalink)
v7n Mentor
 
megamoose's Avatar
 
Join Date: 06-04-06
Location: Northern Ireland
Posts: 481
iTrader: 2 / 100%
Latest Blog:
None

megamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of light
Send a message via ICQ to megamoose Send a message via MSN to megamoose Send a message via Yahoo to megamoose Send a message via Skype™ to megamoose
There probably is an easier way to do this, but here's how I would do it.

Create a DIV for every letter

Code:
<div id="coxA"> <a href="#">A random link</a> </div> <div id="coxB"> <a href="#">B random link</a> </div> <div id="coxC"> <a href="#">C random link</a> </div>
Then create your search DIV

Code:
<div> Your menu<br> <a href="#" onClick="HideAll(); document.getElementById('coxA').style.display=''; ">A</a> <a href="#" onClick="HideAll(); document.getElementById('coxB').style.display=''; ">B</a> <a href="#" onClick="HideAll(); document.getElementById('coxC').style.display=''; ">C</a> </div>
Then a javascript at the top of your page, something like:

Code:
function HideAll() { document.getElementById('coxA').style.display='none'; document.getElementById('coxB').style.display='none'; document.getElementById('coxC').style.display='none'; }
Now this is so rough it probably won't work exactly, but you get the drift. Using jQuery as well could add some real nice effects to this such as the $('coxA').fadeIn

Have a wee look here:
http://docs.jquery.com/Effects
__________________
Message me for PHP | HTML | CSS | JAVASCRIPT | .NET | MySQL help and support
megamoose is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create search no file files ? SonnyCooL Coding Forum 3 10-28-2009 06:37 AM
How to make a expandable menu RyOn Web Design Lobby 1 02-17-2009 09:22 PM
How to create new instance of drop down menu? Wazle.org Coding Forum 0 01-28-2009 03:30 PM
Amazing it, the menu catch the Search Engine? sanguals SEO Forum 0 09-29-2006 02:58 AM
Extra Menu Info in Google Search? Buskerdoo Google Forum 6 03-01-2006 12:54 PM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 05:08 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.