|
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Web Designer
Join Date: Feb 2001
Location: Bradford, OH
Posts: 101
|
[F8] loadMovie and javascript seem not to like each other :(
Hello,
I have an animation being called with loadMovie by the "main container", and this animation has a button that should call an external HTML file in a new window with specific propierties. You can see the development website here: http://gablessquare.com/dev/ Click on 'Our Location' and then you'll see the button 'Click here to see the interactive map'; THIS button has to open this HTML: http://gablessquare.com/dev/map.htm but is not working. I've tried a variety of codes, like: 1. Code:
on (release) {
getURL("JavaScript:popup();");
}
Code:
function popup() {
window.open('map.htm','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=760,height=450,left=100,top=100');
}
Another approach was this one: 2. Code:
on (release) {
getURL('javascript:window.open("map.html","window","width=600,height=450");void(0);')
}
Another was this one: 3. Code:
on (release) {
getURL("javascript:function killthenALL(){window.open('map.htm','','toolbar=no,location=yes,status=no,menubar=no,scrollbars=no,resizable=no,width=570,height=460,left=100,top=100');}killthenALL(); \r\n");
}
Code:
<SCRIPT LANGUAGE="JavaScript">
function popup() {
window.open('http://www.google.com','toolbar=no,location=no,status=no,menubar=yes,
scrollbars=no,resizable=no,width=100,height=100,left=0,top=0');
}
</script>
Code:
<A HREF=JavaScript:popup();></A> ------- EDIT - I think I got it working in some way but I need to pop up a customized window size. EDIT 2 - Ok, I got it working. The solution was to use the code: Code:
on (release) {
getURL("javascript:function killthenALL(){window.open('map.htm','','toolbar=no,location=yes,status=no,menubar=no,scrollbars=no,resizable=no,width=570,height=460,left=100,top=100');}killthenALL(); \r\n");
}
, for some reason it doesn't work locally.Thanks guys anyway. ... Last edited by rzea; 09-21-2006 at 05:15 PM. |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Aug 2002
Posts: 21
|
Hi
I am using something like on (release) { getURL("javascript:NewWindow=window.open('page_con taining_.aspx?','newWin','width=657,height=250,lef t=10 0,top=100,screenX=100,screenY=100');NewWindow.focu s();void(0);"); } But I need to add a variable after the URL example: page_containing_.aspx?, ,points Where points is a variable, but it wont take it when appears in the new window´s URL, it shows "points"
__________________
Ale |
|
|
|
![]() |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|