Jump to content

SiNn3R

Newbie
  • Posts

    4
  • Joined

  • Last visited

Everything posted by SiNn3R

  1. Приогромное вам спасибо!
  2. Спасибо большое, но мне надо ещ? кое-что. Как сделать чтоб при нажатии на определ?нную букву выводилась другая? Допустим я нажимаю на w - выводиться e, я нажимаю на s - выводиться d и т.д. Вот что у меня получилось, но загвоздка в том, что значения плюсуются. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> <title>textreplace</title> <script type="text/javascript"> function textreplace(q, e) { if (q.value="w"){ document.getElementById("form").value += q.substr(q.length-1).replace(/w/, "e");} if (q.value="s"){ document.getElementById("form").value += q.substr(q.length-1).replace(/s/, "d");} return; } </script> </head> <body> <form action="#"> <p> <input onkeyup="textreplace(this.value, event);" type="text" /> <input id="form" type="text" /> </p> </form> </body> </html>
  3. А я знаю, откуда этот тег. Например, его ставит Macromedia Dreamweawer)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy