
Apr 27th, 2005, 20:10
|
|
Junior Member
|
|
Join Date: Apr 2005
Location: Texan stuck in Tennessee
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Yikes. I need help validating!
Hi everyone.
So I am supposed to be making sure that a website of mine is validated before I can present it in class tomorrow for my final. I am having the hugest time validating this stinkin page. (And it's only the index page so far!)
Here is the page: http://www.rawker.com/indextest.htm
Here is the code that I have on the page. I honesty don't understand what this validating page is trying to tell me. I do know that it is calling out some issues in the script, but there is nothing I can do to change that script because I got it as a navigation menu from dynamic drive, but the rest of it I am having troubles with.
I don't know what to do anymore
- Code: Select all
<?xml version="1.0" encoding="iso-8859-1"?>
<!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>
<title>Rawker Hosting!</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="styles.css" type="text/css" />
<style type="text/css">
#dropmenudiv{
position:absolute;
border:1px solid black;
font:normal 12px Palatino Linotype;
line-height:18px;
z-index:100;
}
#dropmenudiv a{
width: 100%;
display: block;
text-indent: 3px;
}
#dropmenudiv a:hover{ /*hover background color*/
background-color: #754545;
}
</style>
<script language="JavaScript" type="text/javascript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<script type="text/javascript">
/***********************************************
* AnyLink Drop Down Menu- Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
//Contents for menu 1
var menu1=new Array()
menu1[0]=' Main '
menu1[1]='About'
menu1[2]='FAQs'
menu1[3]='Contact'
//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='Hosting'
menu2[1]='Sign Up'
menu2[2]='Domain Registration'
menu2[3]='Terms and Requirements'
menu2[4]='Rawker Clients'
menu2[5]='Affiliates'
//Contents for menu 3
var menu3=new Array()
menu3[0]='uRawk Image Hosting'
menu3[1]='Zearo Concepts'
menu3[2]='Halikan Designs'
var menuwidth='155px' //default menu width
var menubgcolor='#1C1C1C' //menu bgcolor
var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?
/////No further editting needed
var ie4=document.all
var ns6=document.getElementById&&!document.all
if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
return edgeoffset
}
function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}
function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)
if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}
return clickreturnvalue()
}
function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}
function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}
function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}
function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
if (hidemenu_onclick=="yes")
document.onclick=hidemenu
</script>
</head>
<body>
<div id="hostingmain" style="position:absolute; z-index:1; background-color: #1C1C1C; layer-background-color: #1C1C1C; border: 3px solid #000000;"></div>
<div id="rawker1" style="position:absolute; z-index:2"></div>
<div id="hosting" style="position:absolute; z-index:3"></div>
<div id="Layer5" style="position:absolute; left:492px; top:168px; width:346px; height:36px; z-index:5">
[img]images/site.jpg[/img]
[img]images/host.jpg[/img]
[img]images/links.jpg[/img]
</div>
<div id="inexplain" style="position:absolute; z-index:6">
</p>
- Need a free host for your image? Check out: <a href="http://www.urawk.com" target="_blank">uRawk
Image Hosting!</a></p>
- Want your own domain name? (www.yourdomainname.com) Well you can now register
one with Rawker Hosting for $10 a year!</p>
</div>
<div id="Layer7" style="position:absolute; left:660px; top:57px; width:199px; height:36px; z-index:7">[img]images/concept.jpg[/img]</div>
<div id="Layer8" style="position:absolute; left:143px; top:234px; width:725px; height:279px; z-index:8">
Ever wish you could have your own website?
Better yet, one where you would not have to pay anything, but have your own
customizable domain?
How about being able to host your own journals, weblogs, photo albums, personal
websites, have your own email, forums and more - for FREE? </p>
Rawker Hosting is for anyone and everyone. Whether your in middle school,
high school, college, or an adult, we are definitely for you. Not only do
we offer customizable services, but Rawker Hosting is part of an innovative
family of websites ran by Zearo Concepts. So whatever your looking for, we
can supply. Feel free to contact the owner of Zearo Concepts, Vik, if you
have any questions or thoughts.</p>
What seperates us from the rest? Ever get tired of using the same business
domain that your host provides? Well, Rawker Hosting offers you a wide variety
of domains to chose from to make your website YOURS. Not a cookie-cutter website
forced upon you with other free hosts :)</p>
</div>
<div id="Layer4" style="position:absolute; left:140px; top:739px; width:728px; height:90px; z-index:9"> </div>
<div id="Layer9" style="position:absolute; left:444px; top:526px; width:50px; height:25px; z-index:10">[img]images/updates.jpg[/img]</div>
</body>
</html>
|