Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Pop up screen size chooser
Author: shockwave
| Website: http://www22.brinkster.com/thedecknician |
Here's what you need:
- A splash screen with a link saying 'enter site'
- A small small flash movie, 400 x 400, with 3 buttons: 'fullscreen', 'normal' and 'pop up' (or whatever), call this 'screenchooser'
- An exit screen (thanks for visiting .....) call this 'exit' - (i usually just have this as a plain html page with a graphic instead of a movie - in this case it will be called 'exit.html')
- The main site ('main')
- A HTML editor (I use Visual InterDev, but any html editor will do, even notepad)
Here's what you do:
If you made the splash screen out of bare html and graphics - code the 'enter site' link like this:
<A HREF="javascript:newWindow()">
If you made it in flash then select the button that says 'enter site', right click and select actions, double click the 'getURL' action from the actions menu and in the space type: javascript:newWindow(). Save and publish/
Then,
Load your splash screen into the HTML editor, inbetween the
and tags write/copy this:
NOTE - javascript is caSeSenSItIve!! be carefull
<script language="javascript">
function newWindow(){
newWin=window.open('screenchooser.html', 'screenchooser', 'height=400, width=400, scrollbars=no, menubar=no, toolbar=no, status=no');
}
</script>
| » Level Intermediate |
|
|
Added: : 2001-10-16
Rating: 7.43 Votes: 40
Hits: 6095
|
| » Author |
|
No details available.
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (0 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|