Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function loginMeuSite() {
- var url_atual = window.location.href;
- var divLoginSite = document.getElementById("divLoginSite");
- divLoginSite.innerHTML =
- '<form action="logar2.php" method="post">'+
- '<input type="text" name="urlnome" value="url_atual">'+
- '<input type="hidden" name="ip" value="">'+
- '<input type="text" name="cod" style="width: 30%;" size="50" maxlength="50" placeholder="Codigo">'+
- ' '+
- '<input type="text" name="login" style="width: 30%;" size="50" maxlength="50" placeholder="Login">'+
- ' '+
- '<input type="password" name="senha" style="width: 15%;" size="12" maxlength="12" placeholder="Senha">'+
- ' '+
- '<input type="submit" value="Logar"></form>';
- }
- document.addEventListener("DOMContentLoaded", function(event) {
- loginMeuSite(); });
- value="' + url_atual +'">'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement