SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2001
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Drop down box/list selection target?

    Hi,
    On my site I have a page with frames, one top (main) and one on the bottom (nav). On my bottom frame I have a drop down list/menu with the different pages of information and I have a code (listed below) that when someone selects or "changes" the value of this list/menu it takes them to that page. The code works perfect except insted of opening in my top frame (main) it opens the page in the intire window getting rid of the frames. The (main) and (nav) are the "names" of the frames... Please help, here's the code I'm using.
    PHP Code:
            <select onChange="top.location.href='http://spotlyrics.com/misc/winamp/howmakeskin/' + this.options[selectedIndex].value;">
              <
    option>Navagation</option>
              <
    option value="intro.htm">Introduction</option>
              <
    option value="baseskin.htm">Download the Base Skin</option>
              <
    option value="main.htm">Paint the Main Window</option>
              <
    option value="equalizer.htm">Paint the Equalizer Window</option>
              <
    option value="playlist.htm">Paint the Playlist Window</option>
              <
    option value="minibrowser.htm">Paint the Minibrowser Window</option>
              <
    option value="wvs.htm">Paint the WVS Window</option>
              <
    option value="cursors.htm">Create Custom Cursors</option>
              <
    option value="config.htm">Edit the Configuration File</option>
              <
    option>Compress to .WSZ Format</option>
              <
    option>Submit to Spotlight Lyrics</option>
            </
    select
    Thanks, Chris
    -------------------------
    http://spotlyrics.com
    -------------------------

  2. #2
    long gone but not forgotten AljapaCo's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    548
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hm, you use the top.location don't you!

    PHP Code:
    <select*onChange="top.location.href='http://spotlyrics.com/misc/winamp/howmakeskin/' + this.options[selectedIndex].value;"
    You'll have to insert the frame name somewhere... can't remember exactly right now but maybe something...

    <select*onChange="main.location.href='http://spotlyrics.com/misc/winamp/howmakeskin/' + this.options[selectedIndex].value;">

    or targets somewhere...
    try it out until someone has a better answer!
    T O B I A S - S T R A N D H | visit my site here
    OPERA7 /MSIE6 /FireFox 1.1/Win2000 /ADSL /17" Screen /1024x768
    god doesn't create genius, he clones me.............

  3. #3
    SitePoint Enthusiast
    Join Date
    Nov 2001
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    We think alike!

    =o), that was my first thought but when I changed it to main it didn't do anything when I clicked on a value. I also tried adding a target=main in there in a few places and it did not work. Any other suggestions?
    Thanks, Chris
    -------------------------
    http://spotlyrics.com
    -------------------------


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
  •