界面代碼
Ⅰ DNF所有界面代碼
sprite_worldmap.NPK 副本選擇的背景
sprite_map_cutscene.NPK 城鎮地圖切換畫面和副本進入畫面
├ pathgate 格蘭之回森區域答 副本門
├ pathgate_act2 天空之城區域 副本門
├ pathgate_act3 天帷巨獸區域 副本門
├ pathgate_act4 暗黑城區域 副本門
├ pathgate_act5 萬年雪山區域 副本門
Ⅱ java列表界面代碼
importjava.awt.*;
importjava.awt.event.*;
importjavax.swing.*;
{
private JPanel ;
private JList listbox;
publicJListDemo(){
setTitle("SimpleListBoxApplication");
setSize(300,100);
setBackground(Color.gray);
topPanel=newJPanel();
topPanel.setLayout(newBorderLayout());
getContentPane().add(topPanel);
String listData[]=
{
"Item1",
"Item2",
"Item3",
"Item4"
};
listbox=newJList(listData);
topPanel.add(listbox,BorderLayout.CENTER);
}
publicstaticvoidmain(Stringargs[]){
JListDemomainFrame =newJListDemo();
mainFrame.setVisible(true);
}
}
Ⅲ 用java寫一個登陸界面代碼。
這是我以前寫的系統登錄框的login
package java1;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.Rectangle;
import java.awt.Font;
public class login extends JFrame
{
public login() {
try {
jbInit();
}
catch (Exception ex) {
ex.printStackTrace();
}
}
public static void main(String[] args)
{
login frm=new login();
frm.setBounds(300,200,300,260);
frm.setVisible(true);
}
private void jbInit() throws Exception {
this.getContentPane().setLayout(null);
jLabel1.setForeground(Color.red);
jLabel1.setText("用戶名");
jLabel1.setBounds(new Rectangle(25, 72, 68, 29));
jButton2.setBounds(new Rectangle(142, 159, 81, 30));
jButton2.setText("取消");
jButton2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
jButton2_actionPerformed(e);
}
});
jButton1.setBounds(new Rectangle(38, 159, 81, 29));
jButton1.setText("確定");
jButton1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
jButton1_actionPerformed(e);
}
});
jTextField1.setBounds(new Rectangle(109, 79, 136, 23));
jPasswordField1.setBounds(new Rectangle(109, 115, 136, 23));
this.getContentPane().add(jLabel1);
jLabel3.setFont(new java.awt.Font("隸書", Font.PLAIN, 24));
jLabel3.setText("學 生 考 試 系 統");
jLabel3.setBounds(new Rectangle(22, 15, 268, 47));
this.getContentPane().add(jTextField1);
this.getContentPane().add(jLabel2);
this.getContentPane().add(jButton2);
this.getContentPane().add(jButton1);
this.getContentPane().add(jLabel3);
this.getContentPane().add(jPasswordField1);
jLabel2.setForeground(Color.red);
jLabel2.setText("密碼");
jLabel2.setBounds(new Rectangle(26, 112, 68, 29));
}
JLabel jLabel1 = new JLabel();
JLabel jLabel2 = new JLabel();
JTextField jTextField1 = new JTextField();
JButton jButton1 = new JButton();
JButton jButton2 = new JButton();
JLabel jLabel3 = new JLabel();
JPasswordField jPasswordField1 = new JPasswordField();
main2 wo=new main2();
int sum;
//判斷許可權的方法
public void success()
{
try{
ResultSet rs1;
String s1="select * from 管理許可權 where name='"+jTextField1.getText()+"' and password='"+jPasswordField1.getText()+"'";
rs1=sqlcx.Rs_jiluji(s1);
rs1.first();
sum=Integer.parseInt((String)(rs1.getString(3)));
System.out.println(sum);
very();
}
catch(Exception c)
}
//根據許可權設置窗口
public void very()
{
if (sum==1)
{JOptionPane.showOptionDialog(this, "您現在是以教師許可權登陸", "登陸信息"
, JOptionPane.DEFAULT_OPTION,
JOptionPane.ERROR_MESSAGE,
null, null, null);
}
else
{
JOptionPane.showOptionDialog(this, "你現在是以學生許可權登陸", "登陸信息"
, JOptionPane.DEFAULT_OPTION,
JOptionPane.ERROR_MESSAGE,
null, null, null);
wo.jButton2.setVisible(false);
wo.jButton3.setVisible(false);
wo.jButton4.setVisible(false);
wo.jButton5.setVisible(false);
wo.jButton6.setVisible(false);
wo.jButton7.setVisible(false);
wo.jButton8.setVisible(false);
wo.jMenu2.setVisible(false);
wo.jMenu3.setVisible(false);
wo.jMenu4.setVisible(false);
}
}
public void jButton1_actionPerformed(ActionEvent e)
{
//判斷用戶名是否為空
if (jTextField1.getText().length() == 0) {
JOptionPane.showOptionDialog(this, "用戶名不能為空", "錯誤信息"
, JOptionPane.DEFAULT_OPTION,
JOptionPane.ERROR_MESSAGE,
null, null, null);
}
//判斷密碼是否為空
else if (jPasswordField1.getText().length()==0)
{
JOptionPane.showOptionDialog(this,"密碼不能為空", "錯誤信息"
, JOptionPane.DEFAULT_OPTION,
JOptionPane.ERROR_MESSAGE,
null, null, null);
}
else
{
try
{
ResultSet rs;//聲明記錄集
String sql="select * from 管理許可權 where name='"+jTextField1.getText()+"'";
rs = sqlcx.Rs_jiluji(sql);
if (rs.next())
{
if(jPasswordField1.getText().equals(rs.getString(2)))
{
success();
wo.setBounds(60,40,700,600);
wo.setVisible(true);
this.dispose();
}
else
{
JOptionPane.showOptionDialog(this,"密碼錯誤", "錯誤信息"
, JOptionPane.DEFAULT_OPTION,
JOptionPane.ERROR_MESSAGE,
null, null, null);
}
}
else
{
JOptionPane.showOptionDialog(this,"沒有所要找的用戶名", "錯誤信息"
, JOptionPane.DEFAULT_OPTION,
JOptionPane.ERROR_MESSAGE,
null, null, null);
}
}
catch(Exception c){
JOptionPane.showOptionDialog(this,"連接資料庫失敗", "錯誤信息"
, JOptionPane.DEFAULT_OPTION,
JOptionPane.ERROR_MESSAGE,
null, null, null);
}
}
}
public void jButton2_actionPerformed(ActionEvent e) {
System.exit(0);
}
}
Ⅳ 一個簡單的登錄界面源代碼
<script>
function login() {
var a = false;
var $text = $(".text");
$.ajax({
url: "__URL__/check",
type: "post",
data: {"username": $("#username").val(), "password": $("#password").val()},
success: function (res) {
if (res == 1) {
/* $text.text("登陸成功,請稍後..."); */
location.href = "{:U('Index/index')}";
a = true;
} else if (res == 3) {
$text.html("用戶名不存在");
$("#username").focus();
return false;
} else if (res == 2) {
$text.text("密碼錯誤");
$("#password").focus();
return false;
}
}
})
return a;
}
</script>
</head>
<body>
<div class="bg"></div>
<div class="container">
<div class="line bouncein">
<div class="xs6 xm4 xs3-move xm4-move">
<div style="height:150px;"></div>
<div class="media media-y margin-big-bottom">
</div>
<form action="" method="post" onsubmit="return login()">
<div class="panel loginbox">
<div class="text-center margin-big padding-big-top"><h1>顧森客戶管理系統</h1></div>
<div class="panel-body" style="padding:30px; padding-bottom:10px; padding-top:10px;">
<div class="form-group">
<div class="field field-icon-right">
<input type="text" class="input input-big" id="username" name="username" placeholder="登錄賬號" data-validate="required:請填寫賬號" />
<span class="icon icon-user margin-small"></span>
</div>
</div>
<div class="form-group">
<div class="field field-icon-right">
<input type="password" class="input input-big" id="password" name="password" placeholder="登錄密碼" data-validate="required:請填寫密碼" />
<span class="icon icon-key margin-small"></span>
</div>
</div>
</div>
<div style="padding:30px;"><input type="submit" class="button button-block bg-main text-big input-big" value="登錄">
<span class="text" style="color:#f00;"></span>
</div>
</div>
</form>
</div>
</div>
</div>
Ⅳ 用html代碼編寫一個簡單的登陸界面
<!DOCTYPE html><html lang="zh-CN"><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>登錄</title>
<link href="css/bootstrap.min.css" rel="stylesheet"></head><body><nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="./">jsp作業</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><a href="login.html">登錄</a></li>
</ul>
</div>
</div></nav><div class="container">
<div class="row">
<div class="col-md-4">
</div>
<div class="col-md-4">
<form class="form-signin" target="submitFrame" method="post">
<h2 class="form-signin-heading">登錄到jsp作業</h2>
<label for="inputEmail">Email</label>
<input type="email" id="inputEmail" class="form-control" placeholder="請輸入Email" required autofocus><br>
<label for="inputPassword">密碼</label>
<input type="password" id="inputPassword" class="form-control" placeholder="請輸入密碼" required>
<div class="checkbox">
<label>
<input type="checkbox" value="remember-me" checked="checked"> 記住密碼 </label>
</div>
<button type="submit" class="btn btn-primary" id="btn-login">登錄</button>
<a href="reg.html" class="btn btn-default">注冊</a>
</form>
<iframe style="display: none;" name="submitFrame" src="about:blank"></iframe>
</div>
<div class="col-md-4">
</div>
</div>
<script src="js/jquery.min.js"></script></body></html>
Ⅵ html登陸界面代碼
實現這個功能要兩個網頁,一個是前台靜態網頁,用兩個文本框分別為t1,t2,一回個按鈕active後面寫上你要跳答轉的後台網頁的名稱如"houtai.asp"
以下是houtai.asp的代碼
<%
dim
a,b
a=request.from("t1")
b=request.from("t2")
if
a<>admin
then
response.write
"用戶名錯誤"
else
if
b<> 123456
then
response.write
"密碼錯誤"
else
response.redirect
"你要轉到的主頁.asp"
end
if
end
if
%>
Ⅶ 求網頁登陸界面的代碼
<script type="text/javascript"> function show(){ document.getElementById("login").style.display=""; } function hidden(){ document.getElementById("login").style.display="none"; } </script> </head> <body> <input type="button" name="button" id="button" value="Login" onclick="show()" /> //在層里尼可以把它做的像一個窗體 <div id="login" name="login" style="display:none; width:500px; height:100; background-color:#7F3FFF;" align="center"> <form id="form1" name="form1" method="post" action=""> <p> <label>user: <input type="text" name="1" id="1" /> </label> </p> <p> <label> password: <input type="password" name="textfield2" id="2" /> </label> </p> <input type="button" name="button" id="button" value="close" onclick="hidden()" /> </form> </div>
Ⅷ 如何寫網頁登陸界面的代碼
這個是處理表單的頁面,其實如果按照你說的,只有一個用戶名的話,那就不用資料庫咯。滿簡單的。
<%
AdminName=request("AdminName")
Password=request("Password")
if AdminName<>"製作" then
response.write"<SCRIPT language=JavaScript>alert('用戶名不正確!');"
response.write"javascript:history.go(-1)</SCRIPT>"
else
response.redirect"qindayuan.com/vcckxp/215165.htm"
end if
if Password<>"0123456789" then
response.write"<SCRIPT language=JavaScript>alert('密碼錯誤!');"
response.write"javascript:history.go(-1)</SCRIPT>"
else
response.redirect"qindayuan.com/vcckxp/215165.htm"
end if
%>
這樣子你試試看,表單的用戶名文本框name用AdminName表示,密碼用password。試試看吧,如果你覺得這代碼不好的話,不用評答案也行,我只是給你一個參考。
Ⅸ 頁面直接跳轉代碼
跳轉代碼有很多啊,他可能只是放在網站的一個文件夾下面的,所以你輸入網站的時候是不會跳轉的,
稍微改了下,不知道符不符合你的要求,顏色可自擬
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>5秒後跳轉到另一個頁面</title>
</head>
<script>
var t = 5;
var s = '.';
timeID=setInterval("countDown()",1000);
function countDown(){
time.innerHTML= t +"秒後跳轉"+s;
t--;
s+='.';
if (t==0) {
location.href="http://www.tc345.cn/"; //【要跳轉的網站】
clearInterval(timeID);
}
}
</script>
<body>
<div><font ID="time" face="impact" color="#272822" size="7">即將跳轉</font>
</div>
</body>
</html>
比如把這段代碼放到一個文件夾下面,把文件夾命名為數字或者字母,然後放在網站更目錄下就可以啦,很簡單的。