I put this in the right forum ! lol. my site coded php, but the issue is with this javascript here:
As you know, lots of scripts run in the head tag. This one is inside the head tag. When i go to do W3C validation, it picks up an error. It speaks more specifically about the <div> element not being allowed inside the <head> tags, which makes sense, because the head tag doesn't contain the body :P anyways, how can i get around this problem? because the <div> and </div> tags it complains about are inside of a string inside the javascript... which is in side the head tags :S lol.Code:<script type="text/javascript"> function $(v) { return(document.getElementById(v)); } function $S(v) { return($(v).style); } function agent(v) { return(Math.max(navigator.userAgent.toLowerCase().indexOf(v),0)); } function isset(v) { return((typeof(v)=='undefined' || v.length==0)?false:true); } function XYwin(v) { var z=agent('msie')?Array(document.body.clientHeight,document.body.clientWidth):Array(window.innerHeight,window.innerWidth); return(isset(v)?z[v]:z); } function sexyTOG() { document.onclick=function(){ setTimeout("sexyTOG()",100); $S('sexyBG').display='none'; $S('sexyBOX').display='none'; document.onclick=function(){}; }; } function sexyBOX(v,b) { setTimeout("sexyTOG()",100);$S('sexyBG').height=XYwin(0)+'px'; $S('sexyBG').display='block'; $('sexyBOX').innerHTML=v+'\<div class="sexyX">(Click outside this box to continue!)'+"\<\/div>"; $S('sexyBOX').left=Math.round((XYwin(1)-b)/2)+'px'; $S('sexyBOX').width=b+'px'; $S('sexyBOX').display='block'; } </script>
If anyone has the solution to this, i love you![]()
![]()




PHP wont do /r/n unless you manually put it in the string at the end of each line... With several thousand lines of code, that could get tiring 



Bookmarks