28. december 2000 - 20:35
Der er
13 kommentarer og
1 løsning
jeg skal have den scroolbar væk!!!!!
Hej jeg har et htmlscript som laver et nyt fullscreen vindue, men der kommer stadig en scrollbar frem i højre side. Hvordan fjerner jeg den?? Jeg bruger FP98...
På forhånd tak
Nicolai
28. december 2000 - 20:36
#1
i kan lige få koden!!!
<html>
<head>
<title>CK-CPH.COM</title>
<script LANGUAGE=\"JavaScript\"><!--
var platform;
var browser;
var version;
var adjWidth;
var adjHeight;
var winSize,winOptions;
var hojde=screen.height;
var bredde=screen.width;
version = parseInt(navigator.appVersion);
if(navigator.userAgent.indexOf(\'Win\') == -1) {
platform = \'Macintosh\';
} else {
platform = \'Windows\';
}
if(navigator.appName.indexOf(\'Netscape\') == -1) {
browser = \'IE\';
} else {
browser = \'Netscape\';
}
function FullScreen() {
if ((platform == \'Macintosh\') && (browser == \'Netscape\')) {
adjWidth = 0;
adjHeight = 0;
}
if ((platform == \'Macintosh\') && (browser == \'IE\')) {
adjWidth = 20;
adjHeight = 35;
winOptions = \',fullscreen=yes\';
}
if ((platform == \'Windows\') && (browser == \'Netscape\')) {
adjWidth = 0;
adjHeight = 0;
}
if ( (platform == \'Windows\') && (browser == \'IE\') ) {
winOptions = \',fullscreen=yes\';
}
{
var winWidth = screen.availWidth - adjWidth;
var winHeight = screen.availHeight - adjHeight;
var winSize = \'width=\' + winWidth + \',height=\' + winHeight;
var ck = window.open(\'index2.htm\', \'home\', winSize + winOptions);
}
}
function edit(){
window.open(\'index2.htm\',\'Edit_Browser\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,fullscreen=yes\');
}
// --></script>
<style type=\"text/css\">
<!--
.mylink { font-family: Georgia, \"Times New Roman\", Times, serif; font-size: 9pt; text-decoration: none; color: #CC9933; font-weight: normal}
.brodtext { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12pt; color: #999999; text-decoration: none; font-weight: normal}
.brodtextsort { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; color: #333333; text-decoration: none ; font-weight: normal}
-->
</style>
</head>
<body onLoad=\"edit();\" bgcolor=\"#030132\">
<p><span class=\"mylink\"></span></p>
<table width=\"100%\" height=\"100%\">
<tr align=\"center\" valign=\"middle\">
<td class=\"brodtextsort\"><p align=\"center\"><img src=\"cklogo.jpg\" width=\"437\" height=\"58\"
alt=\"cklogo.jpg (19873 bytes)\"></td>
</tr>
</table>
</body>
</html>