Centrering af layer . . .
http://www.eroticom.dk/default2.htmKlik på \"saadan handler du hos os\" i menuen . .
Her har jeg centreret det layer hvor man kan scrolle teksten . . Før jeg centrerede det kunne man godt scrolle ned i teksten . . men det kan man af en eller anden grund ikke nu ..
Her er en (desværre lidt lang) del af koden hvor jeg selv mener man kan rette det i - Det er også her jeg har centreret den.
<SCRIPT language=JavaScript>
document.writeln(\'<STYLE TYPE=\"text/css\">\');
document.writeln(\'<\\!--\');
document.writeln(\'#scrollWindow {position:absolute; center:\'+scrollLeft+\'; top:\'+scrollTop+\'; width:\'+scrollWidth+\'; height:\'+scrollHeight+\'; clip:rect(0,\'+scrollWidth+\',\'+scrollHeight+\',0);}\');
document.writeln(\'#scrollBorderTop {position:absolute; left:0; top:0; width:\'+scrollWidth+\'; height:\'+scrollBorder+\'; clip:rect(0,\'+scrollWidth+\',\'+scrollBorder+\',0); background-color:\'+scrollBorderColor+\'; layer-background-color:\'+scrollBorderColor+\';}\');
document.writeln(\'#scrollBorderBottom {position:absolute; left:0; top:\'+(scrollHeight-scrollBorder)+\'; width:\'+scrollWidth+\'; height:\'+scrollBorder+\'; clip:rect(0,\'+scrollWidth+\',\'+scrollBorder+\',0); background-color:\'+scrollBorderColor+\'; layer-background-color:\'+scrollBorderColor+\';}\');
document.writeln(\'#scrollBorderLeft {position:absolute; left:0; top:0; width:\'+scrollBorder+\'; height:\'+scrollHeight+\'; clip:rect(0,\'+scrollBorder+\',\'+scrollHeight+\',0); background-color:\'+scrollBorderColor+\'; layer-background-color:\'+scrollBorderColor+\';}\');
document.writeln(\'#scrollBorderRight {position:absolute; left:\'+(scrollWidth-scrollBorder)+\'; top:0; width:\'+scrollBorder+\'; height:\'+scrollHeight+\'; clip:rect(0,\'+scrollBorder+\',\'+scrollHeight+\',0); background-color:\'+scrollBorderColor+\'; layer-background-color:\'+scrollBorderColor+\';}\');
if (ie)
document.writeln(\'#scrollTextWindow {position:absolute; left:\'+scrollBorder+\'; top:\'+scrollBorder+\'; width:\'+(scrollWidth-scrollBarWidth-2*scrollBorder)+\'; height:\'+(scrollHeight-2*scrollBorder)+\'; clip:rect(0,\'+(scrollWidth-scrollBarWidth-2*scrollBorder)+\',\'+(scrollHeight-2*scrollBorder)+\',0); background-color:\'+scrollTextBGColor+\'; layer-background-color:\'+scrollTextBGColor+\';}\');
document.writeln(\'#scrollBar {position:absolute; left:\'+(scrollWidth-scrollBarWidth-scrollBorder)+\'; top:\'+scrollBorder+\'; width:\'+scrollBarWidth+\'; height:\'+(scrollHeight-2*scrollBorder)+\'; clip:rect(0,\'+scrollBarWidth+\',\'+(scrollHeight-2*scrollBorder)+\',0); background-color:\'+scrollBarColor+\'; layer-background-color:\'+scrollBarColor+\';}\');
if (scrollBoxColor==\"none\")
document.writeln(\'#scrollBoxDiv {position:absolute; left:0; top:0; width:\'+scrollBarWidth+\'; height:\'+scrollBoxHeight+\'; clip:rect(0,\'+scrollBarWidth+\',\'+scrollBoxHeight+\',0);}\');
else
document.writeln(\'#scrollBoxDiv {position:absolute; left:0; top:\'+scrollArrowHeight+\'; width:\'+scrollBarWidth+\'; height:\'+scrollBoxHeight+\'; clip:rect(0,\'+scrollBarWidth+\',\'+scrollBoxHeight+\',0); background-color:\'+scrollBoxColor+\'; layer-background-color:\'+scrollBoxColor+\';}\');
document.writeln(\'#scrollArrowUpDiv {position:absolute; left:0; top:0; width:\'+scrollBarWidth+\'; height:\'+scrollArrowHeight+\'; clip:rect(0,\'+scrollBarWidth+\',\'+scrollArrowHeight+\',0); background-color:\'+scrollArrowColor+\'; layer-background-color:\'+scrollArrowColor+\';}\');
document.writeln(\'#scrollArrowDownDiv {position:absolute; left:0; top:\'+(scrollHeight-2*scrollBorder-scrollArrowHeight)+\'; width:\'+scrollBarWidth+\'; height:\'+scrollArrowHeight+\'; clip:rect(0,\'+scrollBarWidth+\',\'+scrollArrowHeight+\',0); background-color:\'+scrollArrowColor+\'; layer-background-color:\'+scrollArrowColor+\';}\');
document.writeln(\'#scrollBoxDiv {position:absolute; left:0; top:0; width:\'+scrollBarWidth+\'; height:\'+scrollBoxHeight+\'; clip:rect(0,\'+scrollBarWidth+\',\'+scrollBoxHeight+\',0);}\');
document.writeln(\'-->\');
document.writeln(\'</STYLE>\');
</SCRIPT>
En af de første linier\"document.writeln(\'#scrollWindow {position:absolute; center:\'+scrollLeft\" er den jeg har ændre i for at lave den centreeret . .
