Log in

View Full Version : Iframe / drop down menus question



tashamac
07-13-2006, 08:32 PM
I saw something similar a little further down, but I'm not sure if it's exactly what I need...so, here's my question.

I'm setting up a website with iframes that looks like this:

http://img.photobucket.com/albums/v471/shinigami_co/example.gif

The drop down menu is in the frame called "archive", and I would like for links there to load in the "comic" frame. Each page linked would have the archive frame at the bottom, so it doesn't need to persist.

I'm having trouble trying to get it to target the comic frame, though...it only loads in the archive frame. It'll take me totally redoing things to completely separate the comic and archive frames...is there any way to do what I want in this setup? I tried putting target="comic" after each link option, but it still loads in archive.

Oh, and here's what my code currently looks like:

<FORM>
<SELECT name=Chapter 3 id="Chapter 3" style="font-size : xx-small" onchange=location.href=this.options[this.selectedIndex].value language=JavaScript>
<option value="">Chapter 3</option>
<option value="ep3pg1.html" target="comic">01</option>
<option value="ep3pg2.html" target="comic">02</option>
<option value="ep3pg3.html" target="comic">03</option>
<option value="ep3pg4.html" target="comic">04</option>
<option value="ep3pg5.html" target="comic">05</option>
<option value="ep3pg6.html" target="comic">06</option>
<option value="ep3pg7.html" target="comic">07</option>
<option value="ep3pg8.html" target="comic">08</option>
</SELECT></FORM></div>

jr_yeo
07-14-2006, 04:17 AM
<frameset rows="25%, 75%">
<frame name="comic" src="comic.html">
<frame name="archive" src="archive.html">
</frameset>

or something similar, right? :p

then ur code :


<FORM>
<SELECT name=Chapter 3 id="Chapter 3" style="font-size : xx-small" onchange=location.href=this.options[this.selectedIndex].value language=JavaScript>
<option value="">Chapter 3</option>
<option value="ep3pg1.html" target="comic">01</option>
<option value="ep3pg2.html" target="comic">02</option>
<option value="ep3pg3.html" target="comic">03</option>
<option value="ep3pg4.html" target="comic">04</option>
<option value="ep3pg5.html" target="comic">05</option>
<option value="ep3pg6.html" target="comic">06</option>
<option value="ep3pg7.html" target="comic">07</option>
<option value="ep3pg8.html" target="comic">08</option>
</SELECT></FORM>


will work, i think :D

tashamac
07-14-2006, 07:47 AM
Man, I wish it was...I want this project done! :)

But, actually, no...I'm using iframes in the whole business, so the coding for the frames isn't quite the same. It's a frame inside a frame inside a frame...it just refuses to target the proper one.

Maybe I'm making it too complicated...but it's such a simple concept, so I dunno. :T I initially went with a page that held the frame that held "comic"...and then the page that loaded in "comic" held the "archive" frame...so I thought maybe I couldn't target the first page, and made another layout with a cutout for "comic" then the page "comic" held had ANOTHER frame and THAT held archive...ugh, it's a mess. I'm probably just over-complicating things. I've found tons of scripts with "go" buttons, but I don't want a go button, I just want people to click on what they want from the dropdown and it goes. :T

jr_yeo
07-14-2006, 12:04 PM
could u post a link to ur problematic page? :p