Advertisement
Guest User

Untitled

a guest
Nov 13th, 2012
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. <script type="text/javascript" src="http://ajax.googleapis.com/
  2. ajax/libs/jquery/1.4.2/jquery.min.js"></script>
  3. <script type="text/javascript">
  4. $(function()
  5. {
  6.  
  7. $("#scontent").focus(function()
  8. {
  9. $(this).animate({"height": "85px"}, "fast" );
  10. $("#sbutton_block").slideDown("fast");
  11. return false;
  12. });
  13.  
  14. $("#scontent").blur(function()
  15. {
  16.  
  17.  
  18. $("#scontent").animate({"height": "30px"}, "fast" );
  19. //$("#sbutton_block").slideUp("fast");
  20.  
  21. return false;
  22.  
  23. });
  24.  
  25. });
  26.  
  27. <!--
  28. function imposeMaxLength(Object, MaxLen)
  29. {
  30. return (Object.value.length <= MaxLen);
  31. }
  32. -->
  33.  
  34. </script>
  35.  
  36. <form method="post" action="PHP_PAGE.php">
  37. <div id="vsetko">
  38. <textarea id="scontent" style="
  39. overflow: auto;
  40. width:722px;
  41. height:30px;
  42. border:solid 2px #006699;
  43. font-size:14px;
  44. " onkeypress="return imposeMaxLength(this, 250);"></textarea>
  45. <div id="sbutton_block" style="display:none;">
  46. <input type="submit" onClick="document.getElementById('scontent').focus();
  47. " id="sbutton" style="
  48. background-color:#006699;
  49. color:#ffffff;
  50. font-size:13px;
  51. font-weight:bold;
  52. padding:4px;
  53. margin-bottom: 5px;
  54. "
  55. value=" Share "/>
  56. </div>
  57. </div>
  58. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement