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:
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>