Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making a flash button to open a new browser??

Status
Not open for further replies.

KurganUT

Programmer
May 10, 2002
1
BR
Hi there! I'm new here!!
Well, I'm Kurgan, I'm an advanced flash programmer but this I'm having some problems!!
You must be thinking "what a dumb, the easiest thing"
but I want the browser to open in a specified size, not the whole stuff, like we do in HTML javascript:

<a href=&quot;javascript:;&quot; onClick=&quot;MM_openBrWindow('test.htm','TEST','scrollbars=yes,width=755,height=500')&quot;>

Anyway, Can somebody help me?? I need this very much and I don't want to use HTML code, is too lame!
Thanks!!

Kurgan UT
 
put this in your head

<script language=&quot;JavaScript&quot;>
//<!--
var launchMap = null;
var w = 0;
var h = 0;
function deadCentre(url,w,h) {
if (window.screen) {
var chasm = screen.availWidth;
var mount = screen.availHeight; launchMap = window.open(url,'posB','width=' + w + ',height=' + h + ',left=' + ((chasm - w - 10) * .5) + ',top=' + ((mount - h - 30) * .5));
}
}
// -->
</script>

then for the link type javascript:(filename,width,height)

[afro] excuse me can i have some more
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top