The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Switch Account Widget

Go down

Switch Account Widget Empty Switch Account Widget

Post by Landshark April 1st 2015, 11:42 pm

I'd like to customize this widget. As you can see on my website, my Switch Account widget is kind of hard to see and read. I'd like to customize this widget, but I need to know how without messing it up.

Here's my code:
Code:
<div align="center">
     <script type="text/javascript">
    function switch_accounts() {
    jQuery.get(document.getElementById('logout').href, function() {
    jQuery.post('/login', 'login=1&username='+document.getElementById('switch_uname').value+'&password='+document.getElementById('switch_pass').value, function () {
    window.location.reload();
    });
    });
    }
    </script>  
   <hr />
       <input type="text" id="switch_uname" /><br /> <input type="password" id="switch_pass" /><br /> <input type="button" onclick="switch_accounts();" value="Switch Accounts" /><br />
</div>
Landshark
Landshark
Forumember

Posts : 59
Reputation : 2
Language : English, Spanish

View user profile

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum