Fullscreen, scrollbar (MX)

This is the fullscreen script that I found at previous topic in the forum.

It works but it has a scrolbar and I don’t want it. I have tried to remove it by the methods I guessed but I couldn’t manage. Can you show me how to change the script to remove the scrollbar.

Thank you very much.

Alphaville

<HTML>
<head>
<title>Untitled Document</title>
<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1”>
</head>

<BODY bgcolor="#FFFFFF" text="#000000">
<script>
<!–

/*
Full Screen Window Opener Script-
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100’s more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/

function fullwin(targeturl){
window.open(targeturl,"",“fullscreen,scrollbars”)
}
//–>
</script>

<form>
<input type=“button” onClick=“fullwin(‘main3.swf’)” value=“Open window” style=“font-family: Verdana; font-size: 8pt; font-weight: italic; border: 1px solid #000000; padding: 0; background-color: #FF9933; color:#000000” >
</form>
</body>
</html>

every time i click the button i get a runtime error.:-\

opps sorry…I have attached the text as a file…

okay, it worked. when i viewed it, i didnt see a scrollbar.

But there is a scrollbar on the right side on the screen, because the bacground is white it is hard to recognize…

How can I remove it?

Thanks Replode,

I managed it, I found it from the old messages that Electrongeek explained it before. I attached his message again, maybe someone can use it.

electrongeek:
The link I just gave you does open the site in full screen without the explorer buttons, open their example and see. The only thing that is left is the scrollbar and if you want to get rid of that then just add this to the body tag of the html page being opened in full screen.

PHP:--------------------------------------------------------------------------------
scroll=“no”

<BODY SCROLL="no">

only works in IE

<STYLE TYPE="text/css">
<!--
body {overflow: hidden;};
-->
</STYLE>

works in IE and NS (and probably all CSS Supporting browsers)

Thanks lostinbeta,

I tried it. I don’t know the logic why one is supported by IE and the other one is supported by both IE and NS but at least I can use it . By searching old forums, practicing and most importantly by asking people in the forum, I already learned many important things during one week.

Thanks

Alphaville

SCROLL=“no” is only supported by IE because IEs HTML interpretation has that in it, while Netscapes doesn’t. They run off two different engines so cross-browser coding can sometimes be a pain.

The CSS method works because both browsers implement CSS and even though there are still CSS cross browser complications, much of the more functional things in it are supported by most browsers that are CSS enabled.

Thank you for clear explanation,

I put the ccs script (that you advice) just below the body of the html page being opened in full screen. It works now but I am not sure that Is it the exact place for that?

Im sorry, I forgot to specify… you CAN put it where you have it, but I recommend you put it between the <HEAD></HEAD> tags :slight_smile: