pickle965
04-02-2006, 10:09 AM
Drop down menu w/ description
http://www.dynamicdrive.com/dynamicindex1/combodescribe.htm
Hello all,
I'm in the process of designing a website for my friends band and the Drop down menu w/ description script is just what I was looking for except I need to replace the drop down list and "GO" button with A HREF link text. The problem is I don't know jack about Javascript and just ended up taking wild guesses at the code which didn't get me very far.
Here's my "form" code:
<form name="form1">
<input type="hidden" name="select1" onChange="displaydesc(document.form1.select1, thetext1, 'textcontainer1')">
<a href="news.php" onClick="jumptolink(document.form1.select1)" target="mainiframe">News</a></p><a href="theband.htm" onClick="jumptolink(document.form1.select1)" target="mainiframe">The Band</a>
</form>
I'm sure there's plenty of things wrong with that. The website is located at http://pickle.dyndns.org/philosophiks. As you can see the form links actually work but the descriptions are coming up as undefined above the IFRAME in the orange header. The script portion of the code is at the bottom of the page as recommended and I left it untouched except for the description text. Before I started messing with the form and used the drop down the definitions worked normally, so I just need some help straightening my form code out...
Actually, if there was just a simple script that echoed an iframe page's title somewhere on the parent page I'd be happy with that too.
Thanks in advance,
EJ
http://www.dynamicdrive.com/dynamicindex1/combodescribe.htm
Hello all,
I'm in the process of designing a website for my friends band and the Drop down menu w/ description script is just what I was looking for except I need to replace the drop down list and "GO" button with A HREF link text. The problem is I don't know jack about Javascript and just ended up taking wild guesses at the code which didn't get me very far.
Here's my "form" code:
<form name="form1">
<input type="hidden" name="select1" onChange="displaydesc(document.form1.select1, thetext1, 'textcontainer1')">
<a href="news.php" onClick="jumptolink(document.form1.select1)" target="mainiframe">News</a></p><a href="theband.htm" onClick="jumptolink(document.form1.select1)" target="mainiframe">The Band</a>
</form>
I'm sure there's plenty of things wrong with that. The website is located at http://pickle.dyndns.org/philosophiks. As you can see the form links actually work but the descriptions are coming up as undefined above the IFRAME in the orange header. The script portion of the code is at the bottom of the page as recommended and I left it untouched except for the description text. Before I started messing with the form and used the drop down the definitions worked normally, so I just need some help straightening my form code out...
Actually, if there was just a simple script that echoed an iframe page's title somewhere on the parent page I'd be happy with that too.
Thanks in advance,
EJ