i head på html skriver du:
<script language="JavaScript" type="text/javascript" >
Popup = {}
Popup.instances = {};
Popup.open = function(url,name,w,h,x,y,scrollbars,status) {
name = name ? name : 'default';
w = w;
h = h;
x = x ? x : null;
y = y ? y : null;
status = status ? status : 'yes';
scrollbars = scrollbars ? scrollbars : 'yes';
if (x == null) x = (screen.availWidth-w)/2;
if (y == null) y = (screen.availHeight-h)/2;
Popup.instances[name] = window.open(url,name,'toolbar=no,location=no,status=' + status + ',menubar=no,scrollbars=' + scrollbars + ',width=' + w + ',height=' + h + ',resizable=no,left=' + x + ',top=' + y + ',screenX=' + x + ',screenY=' + y );
Popup.instances[name].focus();
}
</script>
I linket på flashen skriver du:
on (release, releaseOutside) {
getURL("java script:Popup.open('
http://www.someurl.dk','somename',200,200,false,false,'no');");
}
dette vil åbne et popup vindue i størrelsen 200*200 uden scroller:
med venlig hilsen
http://www.runeg.com