Guest User

Untitled

a guest
Jun 21st, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. <form id="new-post" name="new-post" method="post" action="">
  2. <div id="editor">
  3. <input type="text" id="post-title" name="post-title" value="Title goes here..." />
  4.  
  5. <!-- Gets replaced with TinyMCE, remember HTML in a textarea should be encoded -->
  6. <textarea id="post-content" name="post-content" class="full_editor"></textarea>
  7.  
  8. <div style="display: none;">
  9. <a href="javascript:;" onmousedown="tinyMCE.execCommand('mceInsertContent',false,'<b>Hello world!!</b>');">[Insert HTML]</a>
  10. </div>
  11.  
  12.  
  13.  
  14. <div class="option_box">
  15. <div id="publish_click"><h2>Publish Options</h2><img id="publish_img" src="img/down-button.png" width="30px" height="26px" style="float: right; margin-top: -2.5em;" /></div>
  16. <div id="publish_form" style="display: none;">
  17. <div>
  18. <br />
  19. <p>Publication Status</p>
  20. <select id="post-visible" name="post-visible">
  21. <option value="1" SELECTED>Visible</option>
  22. <option value="0">Hidden</option>
  23. </select>
  24. <div class="divider"></div>
  25. <p>Permalink (do not change this value)</p>
  26. <input type="text" id="post-permalink" name="post-permalink" value="You must set a title." />
  27. </div>
  28. </div>
  29. </div>
  30.  
  31.  
  32.  
  33. <input type="submit" name="save" class="button" value="Submit" />
  34. <input type="reset" name="reset" class="button" value="Reset" />
  35. </div> <!-- EDITOR -->
  36.  
  37. </form>
  38.  
  39. </div> <!-- MAIN --></body>
  40. </html>
  41.  
  42. <script>
  43. document.observe('dom:loaded',function(){
  44.  
  45. Event.observe('post-title', 'blur', function() {
  46. if (!permaflag) {
  47. $('post-permalink').value="hello-world";
  48. permaflag = true;
  49. }
  50.  
  51. });
  52.  
  53. });
  54. </script>
Add Comment
Please, Sign In to add comment