Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript" src="http://ajax.googleapis.com/
- ajax/libs/jquery/1.4.2/jquery.min.js"></script>
- <script type="text/javascript">
- $(function()
- {
- $("#scontent").focus(function()
- {
- $(this).animate({"height": "85px",}, "fast" );
- $("#sbutton_block").slideDown("fast");
- return false;
- });
- $("#scontent").blur(function()
- {
- $("#scontent").animate({"height": "30px",}, "fast" );
- $("#sbutton_block").slideUp("fast");
- return false;
- });
- });
- <!--
- function imposeMaxLength(Object, MaxLen)
- {
- return (Object.value.length <= MaxLen);
- }
- -->
- </script>
- <form method="post" action="">
- <div id="vsetko">
- <textarea id="scontent" style="
- overflow: auto;
- width:722px;
- height:30px;
- border:solid 2px #006699;
- font-size:14px;
- " onkeypress="return imposeMaxLength(this, 250);"></textarea>
- <div id="sbutton_block" style="display:none;">
- <input type="submit" onClick="document.getElementById('scontent').focus();
- " id="sbutton" style="
- background-color:#006699;
- color:#ffffff;
- font-size:13px;
- font-weight:bold;
- padding:4px;
- margin-bottom: 5px;
- "
- value=" Share "/>
- </div>
- </div>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement