Hello everyone.
I need to put a drop dropdown menu on items(such as a category)that is pulled from a database. I have used php+ mysql to pull the data. Can anyone tell me if I can include javascript so that when the mouse is over tha item and/or category, a drop down list appears. Example I have a Books category,when someone places the mouse over it, a dropdown menu appears eg for cildren books, cook books....
Any help would be greatly appreciated.
Regards
Omesa
omesa
0
Newbie Poster
Recommended Answers
Jump to PostI'm kind of new to PHP, but you should be able to use PHP to throw out the javascript.
<? echo "<script language=\"javascript\">" echo "javascript code here" echo "</script>"
I have not tried this, but it should work. Make sure to use the "\" before any quotes …
Jump to PostOops, forgot the trailing:
%>
All 5 Replies
gil857
0
Light Poster
gil857
0
Light Poster
gil857
0
Light Poster
Lafinboy
4
Junior Poster
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.