Advanced Search

Results 1 to 3 of 3

Thread: Looking for a code that will fix..

  1. #1
    Join Date
    Jun 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Looking for a code that will fix..

    Hi! So, I'm working on a new webdesign for my own personal use and I'm using drop-down link boxes as well as iFrames, but I've noticed now that my drop-down links won't load in my iFrames, is there a way to fix it that I'm just not seeing?

    I haven't used drop-downs in a long time, and usually my iframe links are just target="iframename"

    this is how it looks:

    <form><select name=select size="1" style="background-color:000000; font size:11pt; font-family:verdana;color:white"
    onchange="location.href=(form.select.options[form.select.selectedIndex].value)" target="mycontent">

    <option value="http://freehostia.com" target="mycontent">freehostia</option>
    <option value="http://mail.yahoo.com" target="mycontent">y! mail</option>
    <option value="http://www.backstreetboys.com" target="mycontent">Backstreet Boys</option>
    </select></form>




    **// END OF DROP-DOWN CODE //**



    <iframe name="mycontent" src="http://llamatracks.freehostia.com/splash.htm" border="0" frameborder="0" bordercolor="#FFFFFF" width="660" height="320" marginwidth="0" marginheight="0" scrolling="auto"></iframe>



    **// END OF IFRAME CODE //**

  2. #2
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    When posting code, please put the code in [CODE][/CODE] tags.

    Try replacing this:
    Code:
    onchange="location.href=(form.select.options[form.select.selectedIndex].value)" target="mycontent"
    with this:
    Code:
    onchange="mycontent.location=form.select.options[form.select.selectedIndex].value"
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  3. #3
    Join Date
    Jun 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    will try to remember that one... the Code thing. But THANK YOU SO MUCH. I had a suspicion it was the location part, but I wasn't quite sure how to reword it! THANKS! Loveeee you! Wow...

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
  •