Are you a Google Analytics enthusiast?
Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE!

www.CustomReportSharing.com
From the folks who brought you High Rankings!
More SEO Content
W3c Validated But Still An Error?
#1
Posted 20 December 2004 - 03:10 PM
However, when I now visit the page the yellow error triangle shows up?
Any ideas out there. I have a feeling it could be my CSS, any tips on how to correct this?
Pllllllllllllllleaaaaaaaaaase help
Thanks
#2
Posted 20 December 2004 - 03:17 PM
I just ran you home page (www.magicboxgifts.com/index.php) through the official W3C HTML validator & it was fine. I also clicked on the validation graphic @ the bottom of your home page & it was also just fine.
Can you give me a hint as to which page (pref. a file name) is having the problem or what exact error the validator is returning?
Phil
#3
Posted 20 December 2004 - 03:25 PM
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
***************************************
no ending </script> here
*****************************************
<style type="text/css">
body,td,th {
font-family: Arial, Helvetica, sans-serif;
}
body {
background-color: #99CCFF;
}
.style4 {font-size: xx-small}
a:link {
color: #003366;
}
a:visited {
color: #666666;
}
a:hover {
color: #000033;
}
a:active {
color: #003399;
}
.style20 {font-size: 12px}
.style11 {font-size: 14px}
.style31 {font-size: x-small}
.style23 {font-size: 14px;
color: #FF802B;
font-weight: bold;
}
.style28 {font-size: 16px; font-weight: bold; color: #003366; }
.style51 {color: #FF802B}
.style66 {color: #003366}
.style73 {
font-size: 14px;
color: #003366;
font-weight: bold;
}
.style75 {font-size: 10px; font-weight: bold; }
.style80 {font-size: x-small; color: #000000; }
.style81 {font-size: 12px; color: #003366; font-weight: bold; }
.style72 {font-size: 14px; font-weight: bold; }
-->
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
****************************************
<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);
function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<style type="text/css">
Edited by chrishirst, 20 December 2004 - 03:31 PM.
#4
Posted 20 December 2004 - 03:33 PM
#5
Posted 21 December 2004 - 02:57 AM
Now to work on climbing the SE :learn:
#6
Posted 21 December 2004 - 05:45 AM
Added the /SCRIPT where indicated, page not validated showing as FAILED
Remove the /script and it validates but shows an IE error triangle
Is this just an IE anomaly or do I need to change something
aggghhhh
Thanks
#7
Posted 21 December 2004 - 06:15 AM
I put another row of asterisks where the end of the style code is in the post above
good example how DW can also
#8
Posted 21 December 2004 - 06:39 AM
I use to ignore those in the code, but not anymore
Thanks again
#9
Posted 21 December 2004 - 12:06 PM
All appeared well until I checked back around 30 mins ago.
Error triangle BACK AGAIN this time saying
LINE 160
CHAR 1
ERROR :EXPECTED OBJECT
CODE 0
URL: www.mydomain.com
AND the nav bar has stopped rolling over.....all since we made code changes to become W3C complaint. Whats gone pete tong?! I cant spot anything out of place...
#10
Posted 21 December 2004 - 02:24 PM
onmouseover="MM_nbGroup('over','home','IMAGES/buttons/home_on.gif','',1)
BTW can you tell that I dislike javascript immensely and rarely, if ever use it on any site.
CSS rollovers work just as well with none of the hassle. IMO and are spider friendly.
#11
Posted 22 December 2004 - 04:12 AM
Not overly comfortable with java anyway, too easy to go wrong!
Thanks Chris
#12
Posted 22 December 2004 - 04:22 AM
I hate Javascript too for the record - sometimes I have to use it tho
#13
Posted 22 December 2004 - 05:51 AM
Far more user friendly than alert boxes that once you have clicked ok you then realise you don't know what the error was anyway because the box said "please fill in all required fields"
#14
Posted 22 December 2004 - 06:10 AM
I have ripped out all bar the validation java (nearly time to
Once I have sorted out the css for the nav bar and validation I shall implement site wide.
Server side validation sounds excellent, any good reference sites that you have used (apart from here of course )for me to bone up on
#15
Posted 22 December 2004 - 06:50 AM
plus a few others here and there. I'll make a list one day and post it on the cobblers kids website.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users








