Hej alle sammen ..
Det første jeg vil sige undskyld til er at jeg ikke flere point har så kan ikke rigtigt give jer nogen sorry så håber der er nogen der vil hjælpe mig gratis i;
Mit problem er at jeg skal have denne dropdown menu til at sidde i center men kan bare ikke få den i center
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>http://www.g-dks.dk/</title>
<link href="css/dropdown.css" rel="stylesheet" type="text/css" />
</head>
<!-- dd menu -->
<script type="text/javascript">
<!--
var timeout = 500;
var closetimer = 0;
var ddmenuitem = 0;
// open hidden layer
function mopen(id)
{
// cancel close timer
mcancelclosetime();
// close old layer
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
// get new layer and show it
ddmenuitem = document.getElementById(id);
ddmenuitem.style.visibility = 'visible';
}
// close showed layer
function mclose()
{
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}
// go close timer
function mclosetime()
{
closetimer = window.setTimeout(mclose, timeout);
}
// cancel close timer
function mcancelclosetime()
{
if(closetimer)
{
window.clearTimeout(closetimer);
closetimer = null;
}
}
// close layer when click-out
document.onclick = mclose;
// -->
</script>
<center><ul id="sddm">
<li><a href="index.php" onMouseOver="mopen('m1')" onMouseOut="mclosetime()">Home</a> </li>
<li><a href="#" onMouseOver="mopen('m2')" onMouseOut="mclosetime()">Download</a>
<div id="m2" onMouseOver="mcancelclosetime()" onMouseOut="mclosetime()">
<a href="#">Admin</a>
<a href="#">Counter-strike</a>
<a href="#">Miscellaneous</a>
<a href="#">Software</a> </div>
</li>
<li><a href="#" onMouseOver="mopen('m3')" onMouseOut="mclosetime()">Tutorials</a>
<div id="m3" onMouseOver="mcancelclosetime()" onMouseOut="mclosetime()">
<a href="#">Photoshop</a>
<a href="#">HTML</a>
<a href="#">PHP</a>
<a href="#">CS server</a> </div>
</li>
<li><a href="#" onMouseOver="mopen('m4')" onMouseOut="mclosetime()">Forum</a>
<div id="m4" onMouseOver="mcancelclosetime()" onMouseOut="mclosetime()">
<a href="#">Photoshop</a>
<a href="#">HTML</a>
<a href="#">PHP</a>
<a href="#">CS server</a>
<a href="#">Off topic</a> </div>
</li>
<li><a href="#" onMouseOver="mopen('m5')" onMouseOut="mclosetime()">Help</a>
<div id="m5" onMouseOver="mcancelclosetime()" onMouseOut="mclosetime()">
<a href="#">Download help</a>
<a href="#">Contact help</a> </div>
</li>
<li><a href="#" onMouseOver="mopen('m6')" onMouseOut="mclosetime()">Contact</a>
<div id="m6" onMouseOver="mcancelclosetime()" onMouseOut="mclosetime()"> </div>
</li>
<li><a href="admin.php" onMouseOver="mopen('m7')" onMouseOut="mclosetime()">Admin site</a>
<div id="m7" onMouseOver="mcancelclosetime()" onMouseOut="mclosetime()"> </div>
</li>
</ul></center>