Solved

Open Link in NEW window???

Posted on 2002-06-13
3
181 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
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.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

739 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