CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Image for a loing button

Print topic Send  topic

Author Message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.