The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Switch Account Widget

View previous topic View next topic Go down

Switch Account Widget

Post by Landshark on 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
Forumember

Posts : 27
Reputation : 2
Language : English, Spanish

Back to top Go down

View previous topic View next topic Back to top


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