![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: May 2006
Posts: 6
Rep Power: 0
![]() |
Pop-Down search...
Hi...
I have a question... Im not exactly sure how to explain this, but here we go... What i want to do is have a link, then when i click it, i want a box to pop out from under it with a search box... kinda like this... http://vbstyles.com/forum/index.php? (click on search) can someone help me with this? thanks... ps: im not sure if i should do this in Javascript or if there is somethingin PHP i could do... |
|
|
|
|
|
#2 |
|
Expert Programmer
|
you can't do that in PHP. PHP is server side, what you are looking at is all done on the client, so it would have to be done in javascript or vbscript. I would recommend javascript. this looks like the code for that menu:
http://vbstyles.com/forum/clientscri...lletin_menu.js it's in an external js file. Anyways, as for getting something like that, it's hard to write for an amatuer. Check out DynamicDrive.com, thats where I alwasy go when I need javascript. |
|
|
|
|
|
#3 | |
|
Hobbyist Programmer
Join Date: Nov 2005
Posts: 122
Rep Power: 4
![]() |
Quote:
always unnecessarily bloated and complex; so implementation and maintenance are very hard for an amateur. Anyway, this is a JS issue, not PHP. It's pretty simple too. All you need is a hidden <div> on your page that you can display onclick or onmouseover or whatever. Google is the answer, not DD... ![]() --47.
__________________
"I'm going to become rich and famous when I invent a device that allows you to stab people in the face over the internet" |
|
|
|
|
|
|
#4 | |
|
Expert Programmer
|
Quote:
I can agree with most of that. I don't think its hard to implement a script from DD, and there not always bloated. But it has been a long time since I've done javascript. Those google results are good though. |
|
|
|
|
|
|
#5 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Well, it IS the javascript forum; a link with a PHP extension doesn't mean he's asking to DO it in PHP....
![]()
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#6 |
|
Newbie
Join Date: May 2006
Posts: 6
Rep Power: 0
![]() |
ok thanks... i just used the drop-down menu script off of dynamic drive and replaced the link with a form. it works. thanks.
|
|
|
|
|
|
#7 | ||
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Quote:
Quote:
|
||
|
|
|
|
|
#8 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Pssst! You emphasize my point, that there's an acceptable option, thanks!
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#9 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
I swear I won that argument... I'm confused...
|
|
|
|
|
|
#10 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Indeed, you are....
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|