Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

director new window?

Status
Not open for further replies.

Marshy

Programmer
Nov 7, 2000
4
GB
Is it possible to have a command "open link in new window" like you do in Dreamweaver? Making a shockwave movie with everternal links, but it keeps opening up in my original wnidow. This can be a annoying when some of the pages it opens do not allow the user to use the "back" button.
 
you need to use javascript to do the actual opening of the page I think. cant remember the code to get the web page listening to shockwave but its on the macromedia site, then you just call a javascript function from shockwave with parameters for the url and target frame.
 
Ahh right, i can do it no probs in dreamweaver, open new url in new window, but couldn't find anythign anywhere on how to do it in director. Will check out their site again, thanks.
 
Hello Marshy

The gotoNetPage-command can use an optional parameter which will open a new window.

It's something like gotoNetPage URL, frame

The problem with this is that IE5 under WIN2000 (and only this combination) will open the new window extremly slow (sometimes it needs more than a minute).

To get around this problem you can use a javascript like
function open_new_window(adress)
{
window.open(adress,target,other_params);
return;
}

Or something like that (I'am not very good at Javascript)

you can call this script from Director with

gotoNetPage "javascript:eek:pen_new_Window('URL')"

Maybe you have to play a bit with the paranthesesis until it works but this should do it

have fun
dambo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top