Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

phpads new - kako da bude xhtml validno

[es] :: Javascript i AJAX :: phpads new - kako da bude xhtml validno

[ Pregleda: 2298 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

dragan.zm
Doboj

Član broj: 87035
Poruke: 94
*.rb.a.2-1.230.bih.net.ba.



Profil

icon phpads new - kako da bude xhtml validno28.10.2006. u 16:52 - pre 213 meseci
Imam slijedeci javascript kod koji sam dobio od phpads-a, ali kad validiram stranicu izbaci mi dosta gresaka tj ne bude vise validna.

Kako da prepravim kod da mi site bude opet validan.

Code:


<script language='JavaScript' type='text/javascript' src='http://ads.stranica.com/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!--
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://ads.stranica.com/adjs.php?n=" + phpAds_random);
   document.write ("&amp;what=zone:4");
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referrer)
      document.write ("&amp;referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
//-->
</script>

<noscript>
<a href='http://ads.stranica.com/adclick.php?n=a354a4df' target='_blank'><img src='http://ads.stranica.com/adview.php?what=zone:4&amp;n=a354a4df' border='0' alt=''></a></noscript>




Ovdje je izvjestaj validatora:

Code:


Below are the results of checking this document for XML well-formedness and validity. 

Error Line 43 column 17: there is no attribute "language".
<script language='JavaScript' type='text/javascript' src='http://ads.teen.ba/adx
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). 

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. 

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. 

✉ 

Error Line 58 column 59: there is no attribute "target".
...en.ba/adclick.php?n=a354a4df' target='_blank'><img src='http://ads.teen.ba/ad
✉ 

Error Line 58 column 67: document type does not allow element "a" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
...click.php?n=a354a4df' target='_blank'><img src='http://ads.teen.ba/adview.php
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. 

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). 

✉ 

Error Line 58 column 143: there is no attribute "border".
...p?what=zone:4&amp;n=a354a4df' border='0' alt=''></a></noscript>
✉ 

Error Line 58 column 157: end tag for "img" omitted, but OMITTAG NO was specified.
...amp;n=a354a4df' border='0' alt=''></a></noscript>
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". 

✉ 

Info Line 58 column 68: start tag was here.
...lick.php?n=a354a4df' target='_blank'><img src='http://ads.teen.ba/adview.php?
Error Line 443 column 67: document type does not allow element "a" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
...ds.teen.ba/adclick.php?n=a4c547c7' target='_blank'>
✉ 

Error Line 444 column 89: end tag for "img" omitted, but OMITTAG NO was specified.
...amp;n=a4c547c7' border='0' alt=''></a></noscript>
✉ 

Info Line 444 column 0: start tag was here.
<img src='http://ads.teen.ba/adview.php?what=zone:5&amp;n=a4c547c7' border='0' a

 
Odgovor na temu

dragan.zm
Doboj

Član broj: 87035
Poruke: 94
*.rb.a.2-1.230.bih.net.ba.



Profil

icon Re: phpads new - kako da bude xhtml validno02.11.2006. u 12:45 - pre 212 meseci
Moe ko pomci, stvarno ne razumjem.
 
Odgovor na temu

Br@nkoR
http://localhost

Član broj: 2597
Poruke: 1603

Sajt: localhost


+23 Profil

icon Re: phpads new - kako da bude xhtml validno02.11.2006. u 14:57 - pre 212 meseci
O kom tipu dokumenta se radi (doctype).
Možda nešto ovako:
Code:

<script type="text/javascript" src="http://ads.stranica.com/adx.js"></script>
<script type="text/javascript">
<!--
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   
   document.write ("<" + "script type=\"text/javascript\" src=\"");
   document.write ("http://ads.stranica.com/adjs.php?n=" + phpAds_random);
   document.write ("&amp;what=zone:4");
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referrer)
      document.write ("&amp;referer=" + escape(document.referrer));
   document.write ("\"><" + "/script>");
//-->
</script>

<noscript>
<div><a href="http://ads.stranica.com/adclick.php?n=a354a4df"><img src="http://ads.stranica.com/adview.php?what=zone:4&amp;n=a354a4df" alt="" /></a></div>
</noscript>


Banned - Not available
 
Odgovor na temu

[es] :: Javascript i AJAX :: phpads new - kako da bude xhtml validno

[ Pregleda: 2298 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.