Det må du undskylde, her er den komplette kode med forklaringer:
dette ligger på
www.isyvsind.dk<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="
http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Thomas Østerlund Mortensens hjemmeside</title>
<jdoc:include type="head" />
<link rel="stylesheet" href="templates/_system/css/general.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template_css.css" type="text/css" />
<!--Herunder starter et af mine scripts som åbner to links med et tryk-->
<script type="text/javascript">
function twoLinks(link1,link2){
parent.Submenu.location.href = link1;
parent.Main.location.href = link2;
}
</script>
<!--Herunder starter det javascript som får sub og main menuen til at scrolle samt, at tjekke der overhovedet er brug for at scrolle, er dette ikke tilfældet kommer der et andet billede frem (i dette tilfælde ingenting, altså pilen fjernes)-->
<script type="text/javascript">
<!--
refreshspeed=10;
refreshspeed2=1000;
curpage="";
scrollvalue=0;
scrollheight=new Array();
scrollpages=new Array("MainID","SubmenuID");
chkvar=true;
window.onload=function(){
setInterval("scrollme();",refreshspeed);
for(ri=0;ri<scrollpages.length;ri++)scrollheight[ri]=document.getElementById(scrollpages[ri]).scrollHeight;
setInterval("scrollhigh();",refreshspeed2);
}
function scrollme(){
if(curpage!="")window.frames[curpage].scrollBy(0,scrollvalue);
}
function scrollhigh(){
for(ri=0;ri<scrollpages.length;ri++){
cntmpt=document.getElementById(scrollpages[ri].replace("ID","st"));
cntmpb=document.getElementById(scrollpages[ri].replace("ID","sb"));
if(+window.frames[(scrollpages[ri].replace("ID",""))].document.body.scrollHeight>+scrollheight[ri])chkvar=true;else chkvar=false;
cntmpt.src=(chkvar)?cntmpt.src.replace(scrollpages[ri]+"notopscroll.jpg",scrollpages[ri]+"topscroll.jpg"):cntmpt.src.replace(scrollpages[ri]+"topscroll.jpg",scrollpages[ri]+"notopscroll.jpg");
cntmpb.src=(chkvar)?cntmpb.src.replace(scrollpages[ri]+"nobottomscroll.jpg",scrollpages[ri]+"bottomscroll.jpg"):cntmpb.src.replace(scrollpages[ri]+"bottomscroll.jpg",scrollpages[ri]+"nobottomscroll.jpg");
}
}
//-->
</script>
<style type="text/css">
body {
background-color:Black;
background-image:url(templates/isstemplate/images/Background_Overall.gif);
color: White;
font-family: Arial;
font-size: 11px;
margin-left: 0px;
margin-right: 0px;
}
</style>
</head>
<body>
<div class="container" style="postion: absolute; width: 880px; height: 697px;">
<div class="Perefi_Top" style="position: absolute; left: 0px; top: 0px; width: 860px; height: 15px; padding: 0px; padding-right: 0px;">
<img src="templates/isstemplate/images/Frame_Top_Transparent.gif" alt="" style="width: 860px; height: 15px; border: none;" />
</div>
<div class="Ramme_Top" style="background-color: Black; color: black; position: absolute; left: 0px; top: 15px; width: 860px; height: 93px; padding: 0px; padding-right: 0px;">
<img src="templates/isstemplate/images/Frame_TopBar_1.jpg" alt="" style="width:860px; height:18px; border:none;" /><br />
<img src="templates/isstemplate/images/Frame_TopBar_2_Left.jpg" alt="" style="width:141px; height:29px; border:none;" /><img src="templates/isstemplate/images/Frame_TopBar_2_Button.jpg" alt="" style="width:25px; height:29px; border:none;" /><img src="templates/isstemplate/images/Frame_TopBar_2_Right.jpg" alt="" style="width:694px; height:29px; border:none;" /><br />
<img src="templates/isstemplate/images/Frame_TopBar_3.jpg" alt="" style="width:860px; height:46px; border:none;" />
</div>
<div class="Ramme_Hojre" style="background-color: Black; color: black; position: absolute; left: 0px; top: 108px; width: 89px; height: 494px; padding: 0px; padding-right: 0px;">
<img src="templates/isstemplate/images/Frame_LeftBar.jpg" alt="" style="width:89px; height:494px; border:none;" />
</div>
<div class="Ramme_Bund" style="background-color: Black; color: black; position: absolute; left: 0px; top: 602px; width: 860px; height: 95px; padding: 0px; padding-right: 0px;">
<img src="templates/isstemplate/images/Frame_Bottombar.jpg" alt="" style="width:860px; height:95px; border:none;" />
</div>
<div class="Menu" style="background-color: Black; color: black; position: absolute; left: 89px; top: 108px; width: 165px; height: 103px; padding: 0px; padding-right: 0px;">
<img src="templates/isstemplate/images/Menu_Top.jpg" alt="" style="width:165px; height:26px; border:none;" /><br />
<img src="templates/isstemplate/images/Menu_Media_Left.jpg" alt="" style="width:49px; height:17px; border:none;" /><img src="templates/isstemplate/images/Menu_Media_Button.jpg" alt="" style="width:37px; height:17px; border:none" /><img src="templates/isstemplate/images/Menu_Media_Right.jpg" alt="" style="width:79px; height:17px; border:none;" /><br />
<img src="templates/isstemplate/images/Menu_Projekter_Left.jpg" alt="" style="width:47px; height:18px; border:none;" /><img src="templates/isstemplate/images/Menu_Projekter_Button.jpg" alt="" style="width:72px; height:18px; border:none;" /><img src="templates/isstemplate/images/Menu_Projekter_Right.jpg" alt="" style="width:46px; height:18px; border:none;" /><br />
<img src="templates/isstemplate/images/Menu_Tanker_Left.jpg" alt="" style="width:45px; height:14px; border:none;" /><img src="templates/isstemplate/images/Menu_Tanker_Button.jpg" alt="" style="width:42px; height:14px; border:none;" /><img src="templates/isstemplate/images/Menu_Tanker_Right.jpg" alt="" style="width:78px; height:14px; border:none;" /><br />
<img src="templates/isstemplate/images/Menu_Mig_Left.jpg" alt="" style="width:44px; height:11px; border:none;" /><img src="templates/isstemplate/images/Menu_Mig_Button.jpg" alt="" style="width:21px; height:11px; border:none;" /><img src="templates/isstemplate/images/Menu_Mig_Right.jpg" alt="" style="width:100px; height:11px; border:none;" /><br />
<img src="templates/isstemplate/images/Menu_Andet_Left.jpg" alt="" style="width:45px; height:17px; border:none;" /><img src="templates/isstemplate/images/Menu_Andet_Button.jpg" alt="" style="width:46px; height:17px; border:none;" /><img src="templates/isstemplate/images/Menu_Andet_Right.jpg" alt="" style="width:74px; height:17px; border:none;" />
</div>
<div class="Undermenu_Scroller_Top" style="background-color: Black; color: black; position: absolute; left: 89px; top: 211px; width: 165px; height: 15px; padding: 0px; padding-right: 0px;">
<img src="templates/isstemplate/images/SubMenu_TopScroll_Left.jpg" alt="" style="width:53px; height:15px; border:none;" /><a href="#null" onmouseover="curpage='Submenu';scrollvalue=-1;" onmousedown="scrollvalue=-10;" onmouseup="scrollvalue=-2;" onmouseout="scrollvalue=0;"><img id="Submenust" src="templates/isstemplate/images/SubmenuIDtopscroll.jpg" alt="" style="width:59px; height:15px; border:none;"/></a><img src="templates/isstemplate/images/SubMenu_TopScroll_Right.jpg" alt="" style="width:53px; height:15px; border:none;" />
</div>
<!--Herunder starter den div så hvori Submenuen er, koden er til Joomla-->
<div id="Submenu" class="Undermenu" style="background-image:url('templates/isstemplate/images/SubMenu_Background.jpg'); color: White; position:absolute; overflow: auto; left: 89px; top: 226px; width: 165px; height: 232px; padding: 0px; padding-right: 0px;">
<?php if($this->countModules('left')) : ?>
<jdoc:include type="modules" name="left" style="" />
<?php endif; ?>
</div>
<div class="Undermenu_Scroller_Bund" style="background-color: Black; color: black; position: absolute; left: 89px; top: 458px; width: 165px; height: 15px; padding: 0px; padding-right: 0px;">
<img src="templates/isstemplate/images/SubMenu_BottomScroll_Left.jpg" alt="" style="width:54px; height:15px; border:none;" /><a href="#null" onmouseover="curpage='Submenu';scrollvalue=1;" onmousedown="scrollvalue=10;" onmouseup="scrollvalue=2;" onmouseout="scrollvalue=0;"><img id="Submenusb" src="templates/isstemplate/images/SubmenuIDbottomscroll.jpg" alt="" style="width:59px; height:15px; border:none;" /></a><img src="templates/isstemplate/images/SubMenu_BottomScroll_Right.jpg" alt="" style="width:52px; height:15px; border:none;" />
</div>
<div class="Bamsediv" style="background-color: Black; color: black; position: absolute; left: 89px; top: 473px; width: 165px; height: 129px; padding: 0px; padding-right: 0px;">
<img src="templates/isstemplate/images/BoksebamseTop.jpg" alt="" style="width:165px; height:44px; border:none;" /><br />
<img src="templates/isstemplate/images/BoksebamseMiddleLeft.jpg" alt="" style="width:13px; height:19px; border:none;" /><a href="index.php?option=com_user&view=login"><img src="templates/isstemplate/images/BoksebamseMiddleButton.jpg" alt="" style="width:19px; height:19px; border:none; cursor:default;" /></a><img src="templates/isstemplate/images/BoksebamseMiddleRight.jpg" alt="" style="width:133px; height:19px; border:none;" /><br />
<img src="templates/isstemplate/images/BoksebamseBottom.jpg" alt="" style="width:165px; height:66px; border:none;" />
</div>
<div class="Ramme_Midt" style="background-color: Black; color: black; position: absolute; left: 254px; top: 108px; width: 27px; height: 494px; padding: 0px; padding-right: 0px;">
<img src="templates/isstemplate/images/Frame_MiddleBar.jpg" alt="" style="width:27px; height:494px; border:none;" />
</div>
<div class="Main_Scroller_Top" style="background-color: Black; color: black; position: absolute; left: 281px; top: 108px; width: 478px; height: 15px; padding: 0px; padding-right: 0px;">
<img src="templates/isstemplate/images/Main_TopScroll_Left.jpg" alt="" style="width:209px; height:15px; border:none;" /><a href="#null" onmouseover="curpage='Main';scrollvalue=-5;" onmousedown="scrollvalue=-10;" onmouseup="scrollvalue=-5;" onmouseout="scrollvalue=0;"><img id="Mainst" src="templates/isstemplate/images/MainIDtopscroll.jpg" alt="" style="width:59px; height:15px; border:none;" /></a><img src="templates/isstemplate/images/Main_TopScroll_Right.jpg" alt="" style="width:210px; height:15px; border:none;" />
</div>
<!--Herunder starter den div så hvori MainMenuen er, koden er til Joomla-->
<div id="Main" class="Main" style="background-image:url('templates/isstemplate/images/Main_Background.jpg'); color: White; position: absolute; overflow: auto; left: 281px; top: 123px; width: 478px; height: 464px; padding: 0px; padding-right: 0px;">
<a name="content"></a>
<?php if ($this->countModules('user1 + user2 + right + top')) : ?>
<div id="main2">
<?php else : ?>
<div id="main">
<?php endif; ?>
<?php if ($this->getBuffer('message')) : ?>
<div class="error">
<h2> Message </h2>
<jdoc:include type="message" />
</div>
<?php endif; ?>
<jdoc:include type="component" />
</div>
</div>
<div class="Main_Scroller_Bund" style="background-color: Black; color: black; position: absolute; left: 281px; top: 587px; width: 478px; height: 15px; padding: 0px; padding-right: 0px;">
<img src="templates/isstemplate/images/Main_BottomScroll_Left.jpg" alt="" style="width:209px; height:15px; border:none;" /><a href="#null" onmouseover="curpage='Main';scrollvalue=5;" onmousedown="scrollvalue=10;" onmouseup="scrollvalue=5;" onmouseout="scrollvalue=0;"><img id="Mainsb" src="templates/isstemplate/images/MainIDbottomscroll.jpg" alt="" style="width:59px; height:15px; border:none;" /></a><img src="templates/isstemplate/images/Main_BottomScroll_Right.jpg" alt="" style="width:210px; height:15px; border:none;" />
</div>
<div class="Ramme_Venstre" style="background-color: Black; color: black; position: absolute; left: 759px; top: 108px; width: 101px; height: 494px; padding: 0px; padding-right: 0px;">
<img src="templates/isstemplate/images/Frame_RightBar.jpg" alt="" style="width:101px; height:494px; border:none;" />
</div>
<div class="Pereferi_Venstre" style="position:absolute; left:860px; top:0px; width:20px; height:697px; padding:0px; padding-right:0px;">
<img src="templates/isstemplate/images/Frame_Right_Transparent.gif" alt="" style="width:20px; height:697px; border:none;" />
</div>
</div>
</body>
</html>
Håber mine kommentarer i koden er tilstrækkelig?