|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
open a smaller windows on flash hyperlink button
Hi.. Dear all, I know how to open a HTML page from a flash hyperlink button by assigning the action script to be
on (release) { getURL("new.html", "_blank"); } But as my new.html only contain the new.swf which is about 290X620 size, so I want to open a smaller window with no toolbar. In HTML it is done in the following way in the main site, how about in flash?? <a href="#" onClick="window.open('new.html','_blank','height=290,width=620');return false">new html</a> |
|
#2
|
||||
|
||||
|
I like to call javascript with my actionscript to manipulte windows:
Code:
getURL("javascript:newWindow()");
(delete the _ above, this forum is adding them for some reason!) then in the head of your html use this script: <SCRIPT LANGUAGE="JavaScript"> function newWindow() { day = new Date(); id = day.getTime(); URL = "http://new.html"; eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=620,height=290,left = 162,top = 134');"); } </script> this is an example you may want to change the code and for specifics please post at the javascript, html forum
__________________
No problem is so complex that it cannot be resolved with the proper use of explosives. Last edited by rynoe : February 23rd, 2004 at 12:34 AM. |
|
#3
|
|||
|
|||
|
thank you very much.. it works!!!!!!!! :P
|
|
#4
|
||||
|
||||
|
Of course it works! Post the site let us see it! Plus it will drive hits to your site and it will help others with the same issue.
Last edited by rynoe : February 23rd, 2004 at 01:24 AM. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > open a smaller windows on flash hyperlink button |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|