TCH-Thomas Posted October 20, 2003 Posted October 20, 2003 Ok, I admit it, Im no code-guy. In fact I get lost on the second line in scripts. This one should probably not even be placed here, since its more a linking problem but... I found this website/service and I wanna use it but the site its gonna be placed on uses frames and when the link is clicked it opens up in a frame on my site but i want it to open up in a new window. What do i change to make that happen? Since its recommended to not publish long scripts, here is a link to the site: World News Network links It is "WorldHeadlines Languages dropdown" almost on the middle of the page i wanna use. -Thomas Quote
TCH-JimE Posted October 20, 2003 Posted October 20, 2003 Hi, Can I please see the coding your using for the box, like a link to the original website for it? Basically, you need to name all your frames. You can then use the "target" tag to make them open up in certain places. Jim Quote
TCH-Thomas Posted October 20, 2003 Author Posted October 20, 2003 Did post the link to it in the original, but here it is again... http://cgi.wn.com/wnlinks/ Its not the frames I have problems with, I know the " target="_blankthing, just dont see where in this script to insert it. By the way, dont know if it is relevant, but i use CuteSITE builder. -Thomas Quote
TCH-JimE Posted October 20, 2003 Posted October 20, 2003 Hi, Its relatively easy to do this. Look for the line called: >onChange="window.location=].value" Now have a look at this page, it tells you have to change such things. http://www.pageresource.com/jscript/jdrop3.htm I reckon it should be something like this: >parent.right_frame.location=this.form.news.options[selectedIndex].value Remember, >right_frame is the name of the frame your going too. Jim Quote
Samrc Posted October 20, 2003 Posted October 20, 2003 Thomas, Check your email. I modified the dropdown script in question to open a new window and sent the script to you. You also had an extra batch of style settings which I trimmed out. NEW WINDOW: I placed a sample here: http://www.samisite.com/temp/id81.htm <SELECT NAME="news" SIZE="1" onChange="window.open(this.form.news.options[selectedIndex].value);" class=select> SAME WINDOW AT TOP (breaking the frame): <SELECT NAME="news" SIZE="1" onChange="top.location=this.form.news.options[selectedIndex].value" class=select> ORIGINAL (Opening under the top border, within the frame): <SELECT NAME="news" SIZE="1" onChange="window.location=this.form.news.options[selectedIndex].value" class=select> -Samantha Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.