Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/07/2010, 04:55
stromper
 
Fecha de Ingreso: marzo-2010
Mensajes: 11
Antigüedad: 14 años, 2 meses
Puntos: 0
Exclamación Novato [pequeño problema en mi script]

Hola miren mi codigo no funciona debe ser una pelotudez por eso se los dejo en sus manos! hagan el milagro jajajaja saludos y gracias por la buena onda de siempre!

Código Javascript:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml"><head>
  3. <style>
  4. a.samsung{
  5.     color:#CCC;
  6.     background-color:#666;
  7.     }
  8. </style>
  9. <script src="../jquery.js">
  10. </script>
  11. <script language='javascript'>
  12. $(document).ready(function(){
  13.          $('a[@href^="mailto:"]').addClass('samsung');
  14.  });
  15. </script>
  16. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  17. <title>Documento sin título</title>
  18. </head>
  19. <body>
  20. <div id="sega">
  21. <a href="mailto:[email protected]" >alberto</a>
  22. </div>
  23. </body>
  24. </html>

el problema radica en la linea 13