Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/05/2010, 22:42
Golem
 
Fecha de Ingreso: julio-2008
Mensajes: 97
Antigüedad: 15 años, 9 meses
Puntos: 0
Respuesta: Que hay mal en este codigo?

ya probe todas las formas posibles y siempre me da error, como deberia ponerlo?

Código HTML:
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 6,
  interval: 6000,
  width: 300,
  height: 250,
  theme: {
    shell: {
      background: '#383138',
      color: '#ffffff'
    },
    tweets: {
      background: '#dfe8f2',
      color: '#170317',
      links: '#3356e6'
    }
  },
  features: {
    scrollbar: true,
    loop: false,
    live: true,
    hashtags: true,
    timestamp: false,
    avatars: true,
    behavior: 'all'
  }
}).render().setUser('anime_golem').start();
</script>
<body>
</body>
</html> 
Código:
   1.   Error  Line 7, Column 53: required attribute "type" not specified

      <script src="http://widgets.twimg.com/j/2/widget.js"></script>

      ✉

      The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

      Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
   2. Error Line 7, Column 53: document type does not allow element "script" here; assuming missing "body" start-tag

      <script src="http://widgets.twimg.com/j/2/widget.js"></script>

      ✉
   3. Error Line 8, Column 8: required attribute "type" not specified

      <script>

      ✉

      The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

      Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
   4. Error Line 38, Column 6: document type does not allow element "body" here

      <body>

      ✉

      The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

      One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
   5. Error Line 40, Column 7: end tag for "body" omitted, but OMITTAG NO was specified

      </html>

      ✉

      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
   6. Info Line 7, Column 1: start tag was here

      <script src="http://widgets.twimg.com/j/2/widget.js"></script>