Search tutorials
Ok, that's the splash page coded up and ready to go. Next we'll make the 'screenchooser' page...
Take the 400 x 400 movie you made, and open it up in flash.In turn right click each of the 3 buttons, choose actions, and select 'getURL' for each from the actions list.
In the space provided type:
javascript:fullWindow() >>>> for the fullscreen button
javascript:popWindow() >>>> for the pop up button
javascript:normWindow() >>>> for the normal button
Save and publish.
Then, open up the HTML page you have just created from this and drop it into your HTML editor
Inbetween the <HEAD> and </HEAD> tags write/copy this:
NOTE - javascript is caSeSenSItIve!! be carefull
<script language="javascript">
function fullWindow(){
fullWin=window.open('main2.html', 'fullWin', 'scrollbars=no, menubar=no, toolbar=no, status=no');
window.opener.location=('exit.html');
window.close();
}
function popWindow(){
popWin=window.open('main.html', 'popWin', 'scrollbars=yes, menubar=yes, toolbar=yes, status=yes');
window.opener.location=('exit.html');
window.close();
}
function normalWindow (){
window.opener.location=('main.html');
window.close;
}
</script>
Finally open your main site, go to file, choose 'Save As', and call it 'main2' (or whatever you its allready called, but - 2) and click ok. This will make a duplicate of your site. Publish.
Drop 'main2' into your HTML editor and inbetween the and tags write/copy this:
<script language="javascript">
function fitscreen(){
window.moveTo(0,0)
window.resizeTo(screen.availWidth,screen.availHeight)
}
</script>
Ok, thats it.
| » Level Intermediate |
|
Added: 2001-10-16 Rating: 6.85 Votes: 41 |
| » Author |
| No details available. |
| » Download |
| Download the files used in this tutorial. |
| Download (0 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


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