Results 1 to 4 of 4

Thread: Iframe / drop down menus question

  1. #1
    Join Date
    Jul 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Iframe / drop down menus question

    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:



    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>
    Last edited by tashamac; 07-13-2006 at 08:45 PM.

  2. #2
    Join Date
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    HTML Code:
    <frameset rows="25%, 75%">
      <frame name="comic" src="comic.html">
      <frame name="archive" src="archive.html">
    </frameset>
    or something similar, right?

    then ur code :
    HTML 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
    Please don't mind me. I am just posting a lot of nonsense.

  3. #3
    Join Date
    Jul 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  4. #4
    Join Date
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    could u post a link to ur problematic page?
    Please don't mind me. I am just posting a lot of nonsense.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •