Mani
|
| Posted: 12/29/2004, 1:17 PM |
|
I can't seem to make an Image for for the login button. Can somebody help me please!
Here's the code:
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function LogIn(){
loggedin=false;
username="";
password="";
username=prompt("Username:","");
username=username.toLowerCase();
password=prompt("Password:","");
password=password.toLowerCase();
if (username=="manaf" && password=="me") {
loggedin=true;
window.location="http://yahoo.com";
}
if (username=="guest2" && password=="login2") {
loggedin=true;
window.location="home-page2.html";
}
if (loggedin==false) {
alert("Invalid login!");
}
}
// End -->
</SCRIPT>
</head>
<body>
<center>
<form><input type="image" src="../My Documents/portfolio/files/images/arrow.gif" onClick="LogIn()"></form>
<br>
<form><input type="button" value="Login" onClick="LogIn()"></form>
</center>
|
|
|
 |
Damian Hupfeld
|
| Posted: 01/15/2005, 7:43 PM |
|
Try using a style sheet.
regards
Damian Hupfeld http://www.nexthost.com.au/services.php
"Mani" <Mani@forum.codecharge> wrote in message
news:541d31ef567181@news.codecharge.com...
> I can't seem to make an Image for for the login button. Can somebody
> help
> me please!
>
> Here's the code:
>
> <SCRIPT LANGUAGE="JavaScript">
>
> <!-- This script and many more are available free online at -->
> <!-- The JavaScript Source!! http://javascript.internet.com -->
>
> <!-- Begin
> function LogIn(){
> loggedin=false;
> username="";
> password="";
> username=prompt("Username:","");
> username=username.toLowerCase();
> password=prompt("Password:","");
> password=password.toLowerCase();
> if (username=="manaf" && password=="me") {
> loggedin=true;
> window.location="http://yahoo.com";
> }
> if (username=="guest2" && password=="login2") {
> loggedin=true;
> window.location="home-page2.html";
> }
> if (loggedin==false) {
> alert("Invalid login!");
> }
> }
> // End -->
> </SCRIPT>
>
> </head>
>
> <body>
> <center>
> <form><input type="image" src="../My
> Documents/portfolio/files/images/arrow.gif" onClick="LogIn()"></form>
> <br>
> <form><input type="button" value="Login" onClick="LogIn()"></form>
>
>
>
> </center>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
aradi
Posts: 66
|
| Posted: 01/17/2005, 1:01 AM |
|
Try this link: http://forums.codecharge.com/posts.php?post_id=46467&s_...he+login+button
|
 |
 |
|