Terrae
05-23-2003, 09:28 PM
Okay this is stupid but.. I have this code, it works, but I have no clue HOW!
It's a drop down menu that targets Iframes
<FORM>
<p align="center">
<font face="Courier New" size="1">
<input TYPE="hidden" style=" background-color: #000000; color: #01D7A7;" VALUE="IKU!" onClick="jump(this.form)"></font><SELECT NAME="dest" ONCHANGE="window.open(this.options[this.selectedIndex].value,'argg')" style="background-color: #ffffff; color:#6699ff; size: 1;">
<then all the options you know>
</select></form>
MaGiCSuN
05-24-2003, 12:17 PM
the one you use doesn't target. use this one instead:
http://www.lissaexplains.com/fun.shtml#dropframe
change the bold parts into the code and replace "yourframename" with the name of your iframe
Love,
Mirna
Stormx
05-24-2003, 01:54 PM
Exuse me, but if you read the code you'll notice that the onClick event handler does somthing with a form.
Terrae - Could you tell me if the person who wrote the code asked you to put somthing else, such as somthing in the head section?
EDIT: She is not asking for a simpler version, she is asking how it works - To greater her knowlage of Javascript!
amicus
05-24-2003, 02:27 PM
i think the 'onchange' event is opening a new window. you can't click on a 'hidden' field so it can't throw an 'onclick' event. besides i don't think an 'input' throws an 'onclick' event at all.
MaGiCSuN
05-24-2003, 11:20 PM
Originally posted by Stormx
Exuse me, but if you read the code you'll notice that the onClick event handler does somthing with a form.
EDIT: She is not asking for a simpler version, she is asking how it works - To greater her knowlage of Javascript!
i'm not blind or stupid either, i know where she is talking about. in that code you cannot name the iframe's name to target too, so give her the code that i know that is able too
i'm sorry that i'm trying to help here. geez, first time in a week i come here and here's what i got.
amicus
05-25-2003, 02:13 AM
don't worry about it, i'm your fan magicsun :)
Terrae
05-26-2003, 03:21 AM
It works perfectly fine http://www.netembroidery.com/Devotion.htm is one of my sites that uses it, so I don't know what you are talking about.
I'm comfuzzeled.
Edit: omly ZeroEnna, relationships, and the credit pages exist on that website.
Stormx
05-26-2003, 01:22 PM
Non of those links work. Just don't worry.No point wondering how it works if it doesn't