Ok I wanna know how to make a Login function like for an example when I click Login it popup's a Login box and I know it is CSS and JS but I Don't know anything about JS so can someone just post it here.
4 posters
Login on click function Js
Dark_Code- Forumember
- Posts : 91
Reputation : 4
Language : CSS
Location : Modesto
- Post n°1
Login on click function Js
Dark_Code- Forumember
- Posts : 91
Reputation : 4
Language : CSS
Location : Modesto
- Post n°2
Re: Login on click function Js
How did you this on your site
+Fusion-- Forumember
- Posts : 252
Reputation : 4
Language : English
Location : Flying
- Post n°3
Re: Login on click function Js
i would like to know this as well
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
- Post n°4
Re: Login on click function Js
You have to create yourself a log in form. Add into templates or announcement of something, then just make it popup on click like Rideem showed.
runawayhorses- Hyperactive
- Posts : 2537
Reputation : 166
Language : English
Location : United States
- Post n°5
Re: Login on click function Js
Heres a code you can use on an HTML page or anywhere that allows HTML. I have this on my home page. Just copy and paste this code to an HTML document. You can change the colors to your liking. Its in a spoiler code which I thought of and works like a pop-out. If you want to see it in action click my forum icon under my profile and on that page click "Login" and you'll see how it looks and works. Of course you don't have to actually login but you will see what it looks like. It works great. I tested it on IE, Firefox, and Chrome browsers just to be absolutely sure it works on all of them, and it does. No reason why it wouldn't but I like to see it for myself anyway. Oh, and turn up your volume.
You'll need to add your forum url login page to this code where it says to. Your forum login page url will end in /login.
You'll need to add your forum url login page to this code where it says to. Your forum login page url will end in /login.
- Code:
<a href="#" onclick="if(document.getElementById('spoiler') .style.display=='none') {document.getElementById('spoiler') .style.display=''}else{document.getElementById('spoiler') .style.display='none'}"/>Login</a>
<div id="spoiler" style="display:none">
<br><br>
<form action="YOUR FORUM URL LOGIN PAGE GOES HERE" method="post"><table bgcolor="#262627" cellspacing="1" cellpadding="3" border="2" bordercolor="#1E90FF"><tbody><tr><td width="45%" align="right"><font face="verdana" color="#ADADAD" size="2"> Username:</td><td><input type="text" name="username" size="25" maxlength="40" /></td></tr><tr><td align="right"><font face="verdana" color="#ADADAD" size="2">Password:</td><td><input type="password" name="password" size="25" maxlength="32" /></td></tr><tr align="center"><td colspan="2"><font face="verdana" color="#ADADAD" size="2">Log me on automatically each visit: <input type="checkbox" name="autologin" checked="true" /></td></tr><tr align="center"><td colspan="2"><input type="submit" class="mainoption" name="login" value="Log in" /><input name="redirect" type="hidden" value="/h5-loading-page"/></td></tr></tbody></table></form></font>
</div>
Dark_Code- Forumember
- Posts : 91
Reputation : 4
Language : CSS
Location : Modesto
- Post n°6
Re: Login on click function Js
runawayhorses that's what i want but I DONT want to appear at the bottom when you click Login it fades in the center
runawayhorses- Hyperactive
- Posts : 2537
Reputation : 166
Language : English
Location : United States
- Post n°7
Re: Login on click function Js
Not on my browsers it doesn't.
Dark_Code- Forumember
- Posts : 91
Reputation : 4
Language : CSS
Location : Modesto
- Post n°8
Re: Login on click function Js
Know that's what I want it to do just like Fancy box but with Java Script
runawayhorses- Hyperactive
- Posts : 2537
Reputation : 166
Language : English
Location : United States
- Post n°9
Re: Login on click function Js
Are you talking about when you click 'my' Login link it shows up at the bottom of the page and fades in the center? What do you mean by fades in the center?
If you are talking about when you added the code to your page then the reason would be because you have to add alignment tags. Which do you mean my Login or yours?
If you are talking about when you added the code to your page then the reason would be because you have to add alignment tags. Which do you mean my Login or yours?
Dark_Code- Forumember
- Posts : 91
Reputation : 4
Language : CSS
Location : Modesto
- Post n°10
Re: Login on click function Js
when you on Rideem3 site then when you click Login it appears in the center and it fades in when you click Login
runawayhorses- Hyperactive
- Posts : 2537
Reputation : 166
Language : English
Location : United States
- Post n°11
Re: Login on click function Js
What happened when you clicked my Login link?
Dark_Code- Forumember
- Posts : 91
Reputation : 4
Language : CSS
Location : Modesto
- Post n°12
Re: Login on click function Js
oh ok I want it in the center with this code runawayhorses gave me
I don't want it at the bottom I want it in center
I don't want it at the bottom I want it in center
- Code:
<a href="#" onclick="if(document.getElementById('spoiler') .style.display=='none') {document.getElementById('spoiler') .style.display=''}else{document.getElementById('spoiler') .style.display='none'}"/>Login</a>
<div id="spoiler" style="display:none">
<br><br>
<form action="YOUR FORUM URL LOGIN PAGE GOES HERE" method="post"><table bgcolor="#262627" cellspacing="1" cellpadding="3" border="2" bordercolor="#1E90FF"><tbody><tr><td width="45%" align="right"><font face="verdana" color="#ADADAD" size="2"> Username:</td><td><input type="text" name="username" size="25" maxlength="40" /></td></tr><tr><td align="right"><font face="verdana" color="#ADADAD" size="2">Password:</td><td><input type="password" name="password" size="25" maxlength="32" /></td></tr><tr align="center"><td colspan="2"><font face="verdana" color="#ADADAD" size="2">Log me on automatically each visit: <input type="checkbox" name="autologin" checked="true" /></td></tr><tr align="center"><td colspan="2"><input type="submit" class="mainoption" name="login" value="Log in" /><input name="redirect" type="hidden" value="/h5-loading-page"/></td></tr></tbody></table></form></font>
</div>
runawayhorses- Hyperactive
- Posts : 2537
Reputation : 166
Language : English
Location : United States
- Post n°13
Re: Login on click function Js
You have to use alignment tags.
Where are you adding the code?
Where are you adding the code?
Dark_Code- Forumember
- Posts : 91
Reputation : 4
Language : CSS
Location : Modesto
- Post n°14
Re: Login on click function Js
In the homepage messages but I was just testing it but im gonna put it in the Templates
runawayhorses- Hyperactive
- Posts : 2537
Reputation : 166
Language : English
Location : United States
- Post n°15
Re: Login on click function Js
Put this at the beginning of all the code:
And this at the end of all the code:
Now do me a favor and tell me what happens when you click my Login link. Where does the login box appear to you?
- Code:
<center>
And this at the end of all the code:
- Code:
</center>
Now do me a favor and tell me what happens when you click my Login link. Where does the login box appear to you?
Dark_Code- Forumember
- Posts : 91
Reputation : 4
Language : CSS
Location : Modesto
- Post n°16
Re: Login on click function Js
The Login box is in the center
runawayhorses- Hyperactive
- Posts : 2537
Reputation : 166
Language : English
Location : United States
- Post n°17
Re: Login on click function Js
Well I go by the idea if it ain't broke don't fix it..
I got that code from a link LG posted when he was helping someone else awhile back, he said if you want a simple login that code would work. So I tried it and it works. All I did to it is put it in a spoiler.
I got that code from a link LG posted when he was helping someone else awhile back, he said if you want a simple login that code would work. So I tried it and it works. All I did to it is put it in a spoiler.
runawayhorses- Hyperactive
- Posts : 2537
Reputation : 166
Language : English
Location : United States
- Post n°18
Re: Login on click function Js
OK thanks, that's cool. By the way when you click my Login link where does the box appear to you? thanks
Dark_Code- Forumember
- Posts : 91
Reputation : 4
Language : CSS
Location : Modesto
- Post n°19
Re: Login on click function Js
Can someone locked this, It's done Im just gonna code it more