Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: None Scaling Bitmaps.
From: Eric Dunham
Date: Thu, 17 Feb 2000 13:56:52 GMT

Well if you're going to use JavaScript...
For NN you would use document.innerWidth and document.innerHeight and
For IE you would use document.body.offsetWidth and
document.body.offsetHeight.
(There are also other objects like .availWidth, etc. that you could
manipulate to achieve this effect)
IMO, I would use a variable for this stuff, and you also need to know that
you must ask for the IE width and height _after_ the body section has been
declared. So, here's a sample script I wrote, I don't care how you use it :)
------------------------------------------------
<script>
<!--
ns = (document.layers)? true:false;
ie = (document.all)? true:false;
if (ns)
{
screenW = window.innerWidth;
screenH = window.innerHeight;
}
//-->
</script>
</head>
<body>
<script>
<!--
if (document.all) {screenW = document.body.offsetWidth; screenH =
document.body.offsetHeight;}
//-->
</script>
</body>
------------------------------------------------

That script does a little more than just setup the variables for you, but
that's it in a pinch.
HTH,
Eric Dunham

<snip>
I'll bury my head in a Javascript book and see what
happens......appreciate you taking the time to answer.
</snip>


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World’s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  RE: FLASH: None Scaling Bitmaps., Peter Witham

Replies
  RE: FLASH: None Scaling Bitmaps., Peter Witham

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]