Pomoc - Szukaj - U¿ytkownicy - Kalendarz
Pe³na wersja: B³êdy w www.w3.org
Forum PHP.pl > Forum > Po stronie przegl±darki > JavaScript
bigus
Czy ktoś mogłby mi je wytłumaczyć??
  1. <?php
  2. echo "<script language="Javascript">";
  3. echo " function x () {";
  4. echo " return;";
  5. echo " }";
  6. echo " function gb_smilie(thesmile) {";
  7. echo " document.commentform.cmttext.value += " "+thesmile+" ";";
  8. echo " document.commentform.cmttext.focus();";
  9. echo " }";
  10. echo "</script>n";
  11. ?>

  1. <?php
  2. <a href=java script:gb_smilie(':x')><img title='Mad' src='components/com_datsogallery/smilies/icon_mad.gif' alt='Mad' border='0' />
  3. ?>


  1. <?php
  2. # Error Line 186 column 86: an attribute value specification must be an attribute value 
    literal unless SHORTTAG YES is specified.
  3.  
  4. ...ign='center' valign='middle'><a href=java script:gb_smilie('biggrin.gif')><img title='V
  5.  
  6. # Error Line 186 column 106: an attribute value must be a literal unless it cont
    ains only name characters.
  7.  
  8. ...'middle'><a href=java script:gb_smilie(':D')><img title='Very Happy' src='comp
  9.  
  10. You have used a character that is not considered a "name character" in an attribute value. Which characters are considered "name characters" varies between the different document types, but a good rule of thumb is that unless the value contains only lower or upper case letters in the range a-z you must put quotation marks around the value. In fact, unless you have extreme file size requirements it is a very very good idea to always put quote marks around 
    your attribute values. It is never wrong to do so, and very often it is absolutely necessary.
  11.  
  12. &#9993;
  13. # Error Line 187 column 12: an attribute value specification must be an attribut
    e value literal unless SHORTTAG YES is specified.
  14.  
  15. <a href=java script:gb_smilie(':)')><img title='Smile' src='components/com_da
  16.  
  17. # Error Line 187 column 32: an attribute value must be a literal unless it conta
    ins only name characters.
  18.  
  19. <a href=java script:gb_smilie(':)')><img title='Smile' src='components/com_da
  20.  
  21. &#9993;
  22. # Error Line 187 column 38: document type does not allow element "a" here; missing one of "object", "span", "bdo", "applet", "iframe", "tt", "i", "b", "u", "s", "strike", "big", "small", "font", "em", "strong", "dfn", "code", "q", "samp", "kbd", "var", "cite", "abbr", "acronym", "sub", "sup", "label", "ins", "del" start-tag.
  23.  
  24. <a href=java script:gb_smilie(':)')><img title='Smile' src='components/com_da
  25.  
  26. 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.
  27.  
  28. 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>").
  29.  
  30. # Error Line 188 column 12: an attribute value specification must be an attribut
    e value literal unless SHORTTAG YES is specified.
  31.  
  32. <a href=java script:gb_smilie(':(')><img title='Sad' src='components/com_dats
  33. ?>
revyag
Pierwsza sprawa to warto¶ci atrybutów umieszcza siê w cudzys³owach a nie w apostrofach.
dr_bonzo
2.
[b]javascript[b/]:funckcja()
pisze sie lacznie
Sabistik
@dr to akurat blad forum.
bigus
Ca³y czas co¶ kombinuje i tak nadal b³êdy jakie¶ pomys³y??
revyag
A poprawi³e¶ to co Ci napisa³em questionmark.gif
bigus
Te¿ tak próbowa³em i nic , mam taki kod dok³adnie
  1. <?php
  2. echo "<tr ><td><a href=java script:gb_smilie('biggrin.gif')><img title='Very Happy' src='components/com_datsogallery/smilies/icon_lol.gif' alt='Very Happy' border='0' /> </td></tr>";
  3. ?>


A jak zrobie tak to nie przechodzi:(

  1. <?php
  2. echo "<tr ><td><a href="java script:gb_smilie('biggrin.gif')"><img title='Very Happy' src='components/com_datsogallery/smilies/icon_lol.gif' alt='Very Happy' border='0' /> </td></tr>";
  3. ?>


edytuje chyba ju¿ wiem jak ma byæ:)

  1. <?php
  2. echo "<tr ><td><a href="java script:gb_smilie('biggrin.gif')"><img title='Very Happy' src='components/com_datsogallery/smilies/icon_lol.gif' alt='Very Happy' border='0' /> </td></tr>";
  3. ?>
To jest wersja lo-fi g³ównej zawarto¶ci. Aby zobaczyæ pe³n± wersjê z wiêksz± zawarto¶ci±, obrazkami i formatowaniem proszê kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.