Advertisement
cherryprodesign

Bejelentkezés a fejlécen

Feb 20th, 2016
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.62 KB | None | 0 0
  1. <style type="text/css">
  2. table.site {
  3.     position: relative;
  4. }
  5. .column_side_td, .column_main_td {
  6.     position: static;
  7. }
  8. table[module_id="32755843"] {
  9.     position: absolute !important;
  10.     top: -210px;
  11.     left: 230px;
  12.     width: 200px;
  13.     margin-bottom: -300px;
  14. }
  15. table[module_id="32755843"] .modtitle {
  16.     display: none;
  17. }
  18. table[module_id="32755843"] .modbody {
  19.     padding: 10px;
  20. }
  21. .sitemain tbody tr .sitecol:first-child {
  22.     position: relative;
  23. }
  24. .pagewrapper > [class~='site']:last-of-type {
  25.     position: static !important;
  26. }
  27. .loggedout_class, .loggedin_class {
  28.     background: transparent !important;
  29. }  
  30. </style>
  31.    
  32. <script>
  33. $(document).ready(function() {
  34. var str = $( "tr#module_body_32755843 td.modbody").html();
  35.  
  36. if( str.indexOf("Bejelentkezve") != -1){
  37.     $( "tr#module_body_32755843 td.modbody").addClass("loggedin_class");
  38. }
  39. else{
  40.  
  41. var ujform = '<form class="bejelentkezes" action="./gindex.php" method="post" name="loginform" onsubmit="return CheckLogData()"> \
  42. <table> \
  43. <tbody> \
  44. <tr> \
  45. <td> \
  46. <input maxlength="32" name="ln" placeholder="Felhasználónév" type="text" /><br /> \
  47. <input maxlength="128" name="pw" placeholder="Jelszó" type="password" /> \
  48. </td> \
  49. <td> \
  50. <input type="submit" value="Bejelentkezés" /> \
  51. <input name="prt" type="Hidden" value="674362" /> \
  52. <input name="pg" type="Hidden" value="35209140" /> \
  53. </td> \
  54. <td> \
  55. <a class="regGomb" href="#">Regisztráció</a> \
  56. <a class="lostpwGomb" href="#">Elfelejtett jelszó</a> \
  57. </td> \
  58. </tr> \
  59. </tbody> \
  60. </table> \
  61. </form>';
  62.  
  63. $( "tr#module_body_32755843 td.modbody").html(ujform).addClass("loggedout_class");
  64.  
  65. }
  66. });
  67. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement