Solved

Open Link in NEW window???

Posted on 2002-06-13
3
171 Views
Last Modified: 2012-05-04
Hello experts,

I have created this scrolling text box with links, wich i import
from a .txt file.
When i test it, it works ok but when i click on the links
the new link opens up in the same window... and i dont want that@# i want them to open in a new window.

In txt file i use html to set up the font colour and whether it is a link or not.
Ex.
<FONT FACE="Arial" SIZE="20" COLOR="#0033FF"><B><u><a href="http://www.eurotribe.fgov.be">http://www.eurotribe.fgov.be</a></u></font>
--------------
Now i should need some code to put in front or after it
to let it know to open in a new window. Those anybody knows wich code this is and where i can place this inside. You're help is very appreciated.

Kind regards
Steven

0
Comment
Question by:stevenvervliet
3 Comments
 
LVL 23

Expert Comment

by:Zeffer
ID: 7076510
put.....target="_blank"....in like this..and a close </a> tag

<a href="http://www.eurotribe.fgov.be" target="_blank></a>


Z
0
 
LVL 6

Accepted Solution

by:
rootdir earned 100 total points
ID: 7078338
there are three methods to open window from flash

1. use geturl function and call javascript from flash which will open new window. Like as:

geturl("javascript:openNewWindow('http://www.macromedia.com','thewin',
       'height=400,width=400,toolbar=no,scrollbars=yes')")

and copy this code in 'head' of main html page

<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>

this is best option. because you can control no of parameter related to new window sunch as menu bar, scroll bar, status bar, size etc.

2. use fscommand and call javascript function which will popup new window. or any external function from other scripting tech. like as asp or php

e.g

{if(command=="openWindow"){ openNewWindow()}}function openNewWindow(){setTimeout(window.open('http://www.macromedia.com','newwindow',
'height=200,width=300,toolbar=no')),0}

3. simple method as Zeffer stated above is the third way.

check this example for your ref.

http://www.macromedia.com/support/flash/ts/documents/popup_windows.htm

you can download sample also. I think this will help you lot

cheers,
RootDir
0
 

Author Comment

by:stevenvervliet
ID: 7080195
Thank you Rootdir, keep up the good work.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HTML 5 or Flash 7 486
Can't find all of the preferences on Flash Pro 2 488
Action Script coding 1 177
Running Mp4 or Flash Video 1 115
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question