Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:18
How do you make "click on image" do this?
Poster: marksm
Dated: Tuesday August 19 2003 - 19:09:50 BST
Hello,
For starters, I'm an HTML and Javascript novice (or whatever's before that)!
My shopping cart provider wants "view shopping cart" to be accessed by clicking an image that does the following HTML code. I know how to get my image into my DHTML menu, but how do I make the following HTML stuff happen when the image is clicked?
<form action=http://www.cartserver.com/sc/cart.cgi method=POST>
<input type=hidden name=item value="a-1358">
<input type=image border=0 name=view src="viewcart.gif" width=154 height=46>
</form>
Thanks,
Mark
Poster: Hergio
Dated: Tuesday August 19 2003 - 19:43:06 BST
You can put forms into menus as items...heres a way Andy (the menus creator) got a form and a text search box into a menu...you can see it on the search menu on the homepage.
Code:
aI("text=<FORM METHOD=GET ACTION=/search.php name=search><table><tr><td>Search Milonic</td></tr><tr><td><input name=q size=11></td></tr><tr><td><input type=submit value=Search></td></tr></table></form>;type=form;align=center");
Notice he put the whole HTML thing into the menu text, but he made sure not to use quotes or single quotes to screw things up. Also the type was set to form, important.
Industrial Strength JavaScript and DHTML Menus
About Us
Testimonials
Contact Us
Our Distinguished Clients
Investing in Non-Profits
Where Are We
Privacy Policy
Software Licensing Agreement
DHTML JavaScript Menu
Product Information
Page Integration
Quick Reference Guides
Embedding Into a Table or DIV
Purchase
