-
Senior Member
Ok. First of all, thanks for reading. Second, I've tried search. Third, my problem:
- I wanna open popup windows with variable widths/heights.
- I have this code to open new windows:
on (release) {
getURL ("javascript:launchwin('content.html' , 'newwindow' , 'height=150,width=200')");
}
and this JS:
<SCRIPT LANGUAGE="JavaScript">
var newwin;
function launchwin(winurl,winname,winfeatures)
{
newwin = window.open(winurl,winname,winfeatures);
if(javascript_version > 1.0)
{
setTimeout('newwin.focus();',250);
}
}
</SCRIPT>
that came from http://www.moock.org/webdesign/flash...avascript.html.
- Question: how can I launch variable windows with one simple code. Something using width/height as a variable instead of still code.
Regards,
Leo Lima
-
Put this in your button:
on (release) {
getURL ("javascript:window.open('http://www.flashkit.com','NameofWindow','width=800,height =600,top=0,left=0'); void(0);");
}
No need for any HTML file manipulation - just change the URL, window size and specs to your own and you are home free.
-
Scrollbars
Hi,
Thanks for the good scripts. However, if i want to control whether there is scrollbars or not..how do i do it?
how do i add in the windowParameters?
PLS ADVICE!!
Desparate...
Sherraine.
-
Senior Member
Thanks, but I want that variable.
I need a script to open pic viewrs to my page. When you click the photo in flash I wanted to open a window to that photo. Problem is that the photos are dinamically loaded (loadMovie ("photo" + number + ".swf")) so the links should change that way too... Can you help me/
Regards,
Leo Lima
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|