Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...