First time here? First time here? Newsletter Signup Newsletter
651326 Members and growing! | Flash Jobs
Search tutorials
Author: shockwave | Website: http://www22.brinkster.com/thedecknician

Overview


Javascript - this is a scripting language that enhances the way your pages look and react. The 'function' part is basically saying 'this is a procedure', the name 'fullWindow' is just something that i made up, it is a 'unique identifier' which basically means - you cant call two things by the same name. As long as theres isnt anything else called the same thing, you can name your function whatever you like. After the function name must be the () characters and then a {. The body of the function goes next and then you must close the function with a }
e.g: ----- function newWindow(){ newWin=window.open('screenchooser.html', 'screenchooser', 'height=400, width=400, scrollbars=no, menubar=no, toolbar=no, status=no'); } ----- The first and last lines indentify this line of code as a function and set its unique identifier (name). The middle section is the body of the function - window.open - tells the computer to open a new window () - the brackets after it hold the information for the new window, this is divided into three parts each seperated by 'quote marks' and ,commas, - like this: 'section1', 'section2', 'section3' section1 - this is the URL of the page that you would like to open in your window section2 - this is the name of the window (not the title), the name can used to refer to this window from another section3 - this is where the features go: in any order and seperated only by ,commas, can be the following...
property (switches) - explaination
height (in pixels) - window height width (in pixels) - window width scrollbars (yes or no) - scrollbars along the side and bottom toolbar (yes or no) - the bar with your open, close, print, etc icons menubar (yes or no) - the bar which has 'File', 'Edit' and 'Help',etc status (yes or no) - the bar across the very bottom which holds shows the path of a link when you mouse over it resize (yes or no) - whether or not the window can be resized
[as well as yes and no, 1 and 0 can also be used]

another one: ----- function fitscreen(){ window.moveTo(0,0) window.resizeTo(screen.Width,screen.Height) } ----- window.move() - this simply moves the window to the co-ordinates in the brackets. 0,0 refers to extreme top/left window.resizeTo() - this resizes the window to the co-ordinates in the brackets, absolute co-ordinates such as (300,50) could be used or as i have - a relative size, in this function the available screen width and height, are used. This basically means that the window will fill your screen no matter how big or small it is.

A working example of this which i made can be found here

» Level Intermediate

Added: 2001-10-16
Rating: 6.85 Votes: 41
(10 being the highest)
» Author
No details available.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!

Comments

  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: doc_chin7
» Description:

The flash's horizontal road drive was done in CS4 and was upgraded to CS6. The car responds to right/ left key and flash will auto-generate the movement of roads from left-right or right-left based on random number. Have fun driving in this virtual environment and avoid other cars... :) If you are creative, a road driving game can be created from it.

Featured Sound Loops
Image for equalize

Audio Player

» Author: BoxCat
» Title: CPU Talk
» Description: From the cyberpunk RPG, "Nameless: the Hackers" Completely Free to use! Keywords: edm hip hop rap electronic mysterious mission hacking chase exciting spy ios ambient chilling love happy sad angry suspense
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: nathan
» Description:

A recorded sound of the Dimensional Fork Gate.