Doesn't belong, a page should start with the DOCTYPE declaration and there should only be one opening <html> and one opening <head> tag per page. As I said, if you cannot fix it, it is no big deal as, it doesn't seem to make a difference in the three major browsers on this particular page. It is a bad habit and may come back to haunt you on another page. If you ever want to validate your page, you will need to get rid of it.
Now, I notice that with your script call, you have left out the credit, it belongs on the page:
PLEASE: Read and Follow DD's Terms of Use.
So, do it like this:
Code:
<script type="text/javascript" src="javascripts/chrome.js">
/***********************************************
* Chrome CSS Drop Down Menu- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
Right above it, use this style:
Code:
<style type="text/css">
#horizon
{
position: relative;
top: -2px;
left: 0px;
width: 100%;
height: 13px;
overflow: visible;
}
#content
{
margin-left:-451px!important;
margin-left: 51px;
position: absolute;
left: 50%;
}
</style>
If you take care of all that and get rid of the extra tags from before, your opening and head will then look like so:
Code:
<!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" lang="en" xml:lang="en"> <head>
<title>..::TG-Gaming::..</title>
<base href="http://www.tg-gaming.dk/menu-test/" />
<link rel="StyleSheet" href="style.css" type="text/css">
<style type="text/css">
#horizon
{
position: relative;
top: -2px;
left: 0px;
width: 100%;
height: 13px;
overflow: visible;
}
#content
{
margin-left:-451px!important;
margin-left: 51px;
position: absolute;
left: 50%;
}
</style>
<script type="text/javascript" src="javascripts/chrome.js">
/***********************************************
* Chrome CSS Drop Down Menu- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
</head>
Make your chromemenu division look like this:
HTML Code:
<div id="horizon">
<div id="content">
<div id="chromemenu" align="center">
<ul>
<li><a href="#" onMouseover="cssdropdown.dropit(this,event,'dropmenu1')">Action</a></li>
<li><a href="#" onMouseover="cssdropdown.dropit(this,event,'dropmenu2')">Adventure</a></li>
<li><a href="#" onMouseover="cssdropdown.dropit(this,event,'dropmenu3')">Strategy</a></li>
<li><a href="http://www.tg-gaming.dk/">TG-Gaming</a></li>
</ul>
</div></div></div>
<script type="text/javascript">
if (window.opera)
document.all['content'].style.marginLeft='43px!important';
</script>
Edit chrome.js, find this line at the end of the dropit:function(obj, e, dropmenuID) function:
Code:
this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+1-(window.opera? 20 : 5)+"px"
Add the part in red.
That's it!
Bookmarks