Guest_imported
New member
- Jan 1, 1970
- 0
hi i am trying to do a popup from a button on the page, and its not working
i have tried with loads of different popup codes gathered from the net and none of them work -
this is my current one:
i have this in the head tags of the html page:
<SCRIPT LANGUAGE="JavaScript">
<!--
function NewWindow(url, windowName, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+' --
-- ,scrollbars='+scroll+',resizable';
win = window.open(url, windowName, winprops);
if (parseInt(navigator.appVersion) >= 4) {
win.window.focus();
}
}
// -->
</SCRIPT>
and then in flash, i make a button press ctrl+alt+a click on get url and put this code in:
on (release) {
getURL("javascript:NewWindow('}
when i export and test it, nothing happens when i click the link
can anyone help ?
i have tried with loads of different popup codes gathered from the net and none of them work -
this is my current one:
i have this in the head tags of the html page:
<SCRIPT LANGUAGE="JavaScript">
<!--
function NewWindow(url, windowName, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+' --
-- ,scrollbars='+scroll+',resizable';
win = window.open(url, windowName, winprops);
if (parseInt(navigator.appVersion) >= 4) {
win.window.focus();
}
}
// -->
</SCRIPT>
and then in flash, i make a button press ctrl+alt+a click on get url and put this code in:
on (release) {
getURL("javascript:NewWindow('}
when i export and test it, nothing happens when i click the link
can anyone help ?