08-25-2005, 02:44 PM
|
#1
|
|
Senior Member
Join Date: Oct 2001
Location: Fiji
Posts: 187
|
Avoiding scroll bars...
Hi !
I want to insert a Flash object in my HTML page without displaying the
browser vertical scroller.
Actually, I use this script :
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<style type="text/css">
<!--
body {
width: 100%;
height: 100%;
border: none;
margin: 0px;
padding: 0px;
}
-->
</style>
</head>
<body scroll="NO">
<object id="application" width="100%" height="100%" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" >
<param name="movie" value="file.swf">
<param name="SeamlessTabbing" value="false">
</object>
<script language="Javascript">
<!--
application.focus();
-->
</script>
</body>
</html>
But officially, <body scroll="NO"> is not a "legal" option, even if
supported by MIE. (that's what Dreamweaver said...)
Is there a better way to avoid the displaying of any
scroll bar in every browsers ?
I didn't found such option in the css options...
Regards,
Mathieu
|
|
|
08-25-2005, 08:35 PM
|
#2
|
|
Super Moderator
Join Date: Jul 2001
Location: NYC
Posts: 10,175
|
The absolute, best way to insure that is simply dont make any thing larger than 700x500....Though there are other tricks available. And dont always listen to DreamWeaver...
|
|
|
08-26-2005, 01:27 AM
|
#3
|
|
Senior Member
Join Date: Oct 2001
Location: Fiji
Posts: 187
|
In fact, I want to use all the space available, not only 700 X 500 pixels...
Actually, I set <body scroll="NO">, but I don't know if this will work with every browsers...
Thanx anyway,
|
|
|
08-26-2005, 01:36 AM
|
#4
|
|
Super Moderator
Join Date: Jul 2001
Location: NYC
Posts: 10,175
|
That should work in the major browsers.
|
|
|
08-26-2005, 04:38 AM
|
#5
|
|
rather be programming
Join Date: Feb 2005
Location: City of Angels
Posts: 10,141
|
Quote:
|
Actually, I set <body scroll="NO">, but I don't know if this will work with every browsers..
|
I used to do the same, however it doesn't work in FF. Someone posted the "correct" way to do it, thought. I think it might have been done through CSS. Do a simple search for it, if you like.
__________________
trace("Good bye Flash.") Log.i(TAG, "Hello Droid");
|
|
|
08-26-2005, 05:55 AM
|
#6
|
|
Flash Sucks
Join Date: Mar 2005
Location: Victorville, Ca
Posts: 2,228
|
if you do something like this inbetween <head> and </head>
ActionScript Code:
<style type="text/css">
<!--
body {
overflow: hidden;
}
//-->
</style>
That will make it so that anything overflowing the edges of the browser is not visible, and if it is not visible then it can't be scrolled to, therefore you will have no scrollbars. This method is probably a little further than what you want to do, I'd just look into it.
-Michael
|
|
|
08-29-2005, 01:41 PM
|
#7
|
|
Senior Member
Join Date: Oct 2001
Location: Fiji
Posts: 187
|
Thanx Michael, but it doesn't work with MIE...;-)
I guess that the "scroll" property is simply not included in the css model...
By the way, I'd like to know what we should use for FF... If someone has an idea...
Mathieu
|
|
|
| Thread Tools |
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 10:44 PM.
///
|
|