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!

Closing movie using button 1

Status
Not open for further replies.

Molenski

IS-IT--Management
Jan 24, 2002
288
DE
hi there,

a pretty simple one i think.

anyone know the action script that goes behind a button to close the movie that is playing (in this case a windows projector file). i just want the user to click on it and the movie to dissapear.

i can get the buttons to do all sorts of other amusing stuff, but when it comes to closing the window, i seem to be having absolutely no joy whatsoever!!!

also, does anyone know if there is a way of getting a browser to default to a given pixel size, so for example, if i want my site to be viewed in 800x600 automatically, is there a way of doing it?

cheers in advance

molenski

remember - get involved!!!
 
To close a projector use this :

Code:
on (press) {
	fscommand ("quit");
}

To size a browser use :

Code:
<script>
<!--
  function rLoad (wd, ht) {
      window.resizeTo (wd, ht);
  }
  rLoad (800, 600);
//-->
</script>
Regards

David Byng

spider.gif


davidbyng@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top