導航:首頁 > 源碼編譯 > 665源碼

665源碼

發布時間:2022-08-23 21:55:24

㈠ 網站源碼放入WORD文檔問題

<!--#include file="include/conn1.asp" -->
<% dim schoolname,address,postmode,email,phone,bbs,sql,ntext,dday
timeset="0"
startime=timer()
if session("schoolname")="" then
set bbs=conn.execute("select * from school where used=true")
schoolname=bbs("schoolname")
address=bbs("address")
postmode=bbs("postmode")
email=bbs("email")
phone=bbs("phone")
session("schoolname")=schoolname
session("address")=address
session("email")=email
session("phone")=phone
session("postmode")=postmode
set bbs=nothing
else
schoolname=session("schoolname")
address=session("address")
postmode=session("postmode")
email=session("email")
phone=session("phone")
end if
%>
<html>
<head>
<title><%=schoolname%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="include/css.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff" background="images/bg.gif" leftmargin="0" topmargin="0">
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/spacer.gif" width="256" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="296" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="226" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>

<tr>
<td><img name="top_r1_c1" src="images/top_r1_c1.jpg" width="256" height="156" border="0" alt=""></td>
<td><img name="top_r1_c2" src="images/top_r1_c2.jpg" width="296" height="156" border="0" alt=""></td>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="226" height="156">
<param name="movie" value="images/top.swf">
<param name="quality" value="high">
<embed src="images/top.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="226" height="156"></embed>
</object></td>
<td><img src="images/spacer.gif" width="1" height="156" border="0" alt=""></td>
</tr>
</table>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" class="ha">
<tr>
<td><img src="images/menu.jpg" width="778" height="60" border="0" usemap="#Map"></td>
</tr>
</table>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/2/spacer.gif" width="55" height="1" border="0" alt=""></td>
<td><img src="images/2/spacer.gif" width="133" height="1" border="0" alt=""></td>
<td><img src="images/2/spacer.gif" width="39" height="1" border="0" alt=""></td>
<td><img src="images/2/spacer.gif" width="41" height="1" border="0" alt=""></td>
<td><img src="images/2/spacer.gif" width="291" height="1" border="0" alt=""></td>
<td><img src="images/2/spacer.gif" width="41" height="1" border="0" alt=""></td>
<td><img src="images/2/spacer.gif" width="153" height="1" border="0" alt=""></td>
<td><img src="images/2/spacer.gif" width="25" height="1" border="0" alt=""></td>
<td><img src="images/2/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>

<tr>
<td colspan="5"><img name="top1_r1_c1" src="images/2/top1_r1_c1.gif" width="559" height="48" border="0" alt=""></td>
<td><img name="top1_r1_c6" src="images/2/top1_r1_c6.gif" width="41" height="48" border="0" alt=""></td>
<td colspan="2"><img name="top1_r1_c7" src="images/2/top1_r1_c7.gif" width="178" height="48" border="0" alt=""></td>
<td><img src="images/2/spacer.gif" width="1" height="48" border="0" alt=""></td>
</tr>
<tr>
<td colspan="4"><img name="top1_r2_c1" src="images/2/top1_r2_c1.gif" width="268" height="11" border="0" alt=""></td>
<td rowspan="4" valign="middle" bgcolor="#FFFFFF">
<table width="99%" border="0" cellspacing="0" cellpadding="2">
<% sql="select top 6 id,title,addtime from article where boardid=1 and ifshow=1 order by id desc"
set rs=conn.execute(sql)
do while not rs.eof
ntext=rs("title")
if len(ntext)>12 then
ntext=mid(ntext,1,12)&"...."
end if
dday=day(rs("addtime"))
if cint(dday)<10 then dday="0"&dday%>
<tr>
<td width="5%"><div align="center"><img src="images/arrow02.gif" width="4" height="7"></div></td>
<td width="67%"><a href="main/shownews.asp?id=<%=rs("id")%>"><font size="2" class="text"><%=ntext%></font></a></td>
<td width="28%"><font size="2">【<%=month(rs("addtime"))%>月<%=dday%>日】</font></td>
</tr>
<% rs.movenext
loop
rs.close %>
</table>
<div align="right"><font size="2"><a href="main/news.asp" target="_blank">更多>></a></font>
</div></td>
<td rowspan="7"><img name="top1_r2_c6" src="images/2/top1_r2_c6.gif" width="41" height="190" border="0" alt=""></td>
<% sql="select * from article where boardid=4 and ifshow=1 order by id desc"
set rs=conn.execute(sql)%>
<td rowspan="5" bgcolor="#FFFFFF"> <marquee direction="up" height="140" onMouseOver=this.stop(); onMouseOut=this.start(); scrollamount=2>
<font color="#0000FF" size="2"><strong><%=rs("title")%></strong></font><br>
<br>
<font size="2"><%=rs("content")%></font><br>
<br>
<font size="2"><strong><font color="#0033FF">發布時間:</font></strong><font color="#CC0000"><%=month(rs("addtime"))%>月<%=day(rs("addtime"))%>日</font></font>
</marquee></td>
<% rs.close %>
<td rowspan="9"><img name="top1_r2_c8" src="images/2/top1_r2_c8.gif" width="25" height="330" border="0" alt=""></td>
<td><img src="images/2/spacer.gif" width="1" height="11" border="0" alt=""></td>
</tr>
<% sql=" select * from picnews where ifshow=1 order by picid desc"
set rs=conn.execute(sql)
ntext=rs("pictitle")
if len(ntext)>8 then
ntext=mid(ntext,1,8)&"...."
end if %>
<tr>
<td rowspan="8"><img name="top1_r3_c1" src="images/2/top1_r3_c1.gif" width="55" height="319" border="0" alt=""></td>
<td bgcolor="#FFFFFF"><div align="center"><a href="<%=rs("picurl")%>" target="_blank"><img src="admin/<%=rs("imgurl")%>" border="0"></a></div></td>
<td rowspan="6" colspan="2"><img name="top1_r3_c3" src="images/2/top1_r3_c3.gif" width="80" height="179" border="0" alt=""></td>
<td><img src="images/2/spacer.gif" width="1" height="98" border="0" alt=""></td>
</tr>
<tr>
<td><img name="top1_r4_c2" src="images/2/top1_r4_c2.gif" width="133" height="15" border="0" alt=""></td>
<td><img src="images/2/spacer.gif" width="1" height="15" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="3" bgcolor="#FFFFFF"><div align="center"><font size="2"><a href="<%=rs("picurl")%>" target="_blank"><%=rs("pictitle")%></a></font></div></td>
<td><img src="images/2/spacer.gif" width="1" height="16" border="0" alt=""></td>
</tr>
<% rs.close %>
<tr>
<td rowspan="3"><img name="top1_r6_c5" src="images/2/top1_r6_c5.gif" width="291" height="50" border="0" alt=""></td>
<td><img src="images/2/spacer.gif" width="1" height="5" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="2"><img name="top1_r7_c7" src="images/2/top1_r7_c7.gif" width="153" height="45" border="0" alt=""></td>
<td><img src="images/2/spacer.gif" width="1" height="6" border="0" alt=""></td>
</tr>
<tr>
<td><img name="top1_r8_c2" src="images/2/top1_r8_c2.gif" width="133" height="39" border="0" alt=""></td>
<td><img src="images/2/spacer.gif" width="1" height="39" border="0" alt=""></td>
</tr>
<tr>
<td><img name="top1_r9_c2" src="images/2/top1_r9_c2.gif" width="133" height="119" border="0" alt=""></td>
<td rowspan="2"><img name="top1_r9_c3" src="images/2/top1_r9_c3.gif" width="39" height="140" border="0" alt=""></td>
<td colspan="4" bgcolor="#FFFFFF"><iframe src="scroll.htm" name="I3" width="99%" marginwidth="1" height="110" marginheight="1" scrolling="No" frameborder="0" id="I3"></iframe></td>
<td><img src="images/2/spacer.gif" width="1" height="119" border="0" alt=""></td>
</tr>
<tr>
<td><img name="top1_r10_c2" src="images/2/top1_r10_c2.gif" width="133" height="21" border="0" alt=""></td>
<td colspan="4"><img name="top1_r10_c4" src="images/2/top1_r10_c4.gif" width="526" height="21" border="0" alt=""></td>
<td><img src="images/2/spacer.gif" width="1" height="21" border="0" alt=""></td>
</tr>
</table>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="29"><img src="images/1/spacer.gif" width="29" height="1" border="0" alt=""></td>
<td width="36"><img src="images/1/spacer.gif" width="36" height="1" border="0" alt=""></td>
<td width="151"><img src="images/1/spacer.gif" width="151" height="1" border="0" alt=""></td>
<td width="36"><img src="images/1/spacer.gif" width="36" height="1" border="0" alt=""></td>
<td width="233"><img src="images/1/spacer.gif" width="233" height="1" border="0" alt=""></td>
<td width="42"><img src="images/1/spacer.gif" width="42" height="1" border="0" alt=""></td>
<td width="223"><img src="images/1/spacer.gif" width="223" height="1" border="0" alt=""></td>
<td width="28"><img src="images/1/spacer.gif" width="28" height="1" border="0" alt=""></td>
<td width="20"><img src="images/1/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td colspan="8"><img name="n4a_r1_c1" src="images/1/4a_r1_c1.gif" width="778" height="45" border="0" alt=""></td>
<td><img src="images/1/spacer.gif" width="1" height="45" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="8"><img name="n4a_r2_c1" src="images/1/4a_r2_c1.gif" width="29" height="355" border="0" alt=""></td>
<td colspan="2" rowspan="4" valign="middle" bgcolor="#FFFFFF">
<table width="99%" border="0" cellspacing="0" cellpadding="2">
<% sql="select top 6 id,title from article where boardid=18 and ifshow=1 order by id desc"
set rs=conn.execute(sql)
do while not rs.eof
ntext=rs("title")
if len(ntext)>10 then
ntext=mid(ntext,1,10)&"...."
end if
%>
<tr>
<td width="9%"><div align="center"><img src="images/arrow02.gif" width="4" height="7"></div></td>
<td width="91%"><a href="main/shownews.asp?id=<%=rs("id")%>"><font size="2" class="text"><%=ntext%></font></a></td>
</tr>
<% rs.movenext
loop
rs.close %>
</table>
<br>
<div align="right"><font size="2">更多>> </font></div></td>
<td rowspan="5"><img name="n4a_r2_c4" src="images/1/4a_r2_c4.gif" width="36" height="217" border="0" alt=""></td>
<td rowspan="3" valign="top" background="images/1/4a_r2_c5.gif"> 漢沽區第一幼兒園,始建於1960年,前身為
「天津市漢沽區幼兒園」。1980年,更名為「漢沽區第一幼兒園」。園所佔地面積4799平方米,園舍建築面積2244平方米。全園共有9個教學班,教職工35人,是天津市一級園。<br>
多年來,漢沽一幼堅持「一切為了孩子,服務於家長,服務於社會」的辦園宗旨,堅持走「科學管理,科研興園」之路,始終走在......<br>
<span class="text"><font size="2"> <a href="main/info.asp" target="_blank">更多</a>>></font></span></td>
<td colspan="3"><img name="n4a_r2_c6" src="images/1/4a_r2_c6.gif" width="293" height="18" border="0" alt=""></td>
<td><img src="images/1/spacer.gif" width="1" height="18" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="7"><img name="n4a_r3_c6" src="images/1/4a_r3_c6.gif" width="42" height="337" border="0" alt=""></td>
<td valign="bottom" bgcolor="#FFFFFF"> <table width="99%" border="0" cellspacing="0" cellpadding="2">
<% sql="select top 4 id,title from article where classid=5 and ifshow=1 order by id desc"
set rs=conn.execute(sql)
do while not rs.eof
ntext=rs("title")
if len(ntext)>12 then
ntext=mid(ntext,1,12)&"...."
end if
%>
<tr>
<td width="9%"><div align="center"><img src="images/arrow02.gif" width="4" height="7"></div></td>
<td width="91%"><a href="main/showqh.asp?id=<%=rs("id")%>"><font size="2" class="text"><%=ntext%></font></a></td>
</tr>
<% rs.movenext
loop
rs.close %>
</table>
<br> <div align="right"><font size="2">更多>></font></div></td>
<td rowspan="7"><img name="n4a_r3_c8" src="images/1/4a_r3_c8.gif" width="28" height="337" border="0" alt=""></td>
<td><img src="images/1/spacer.gif" width="1" height="119" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="2"><img name="n4a_r4_c7" src="images/1/4a_r4_c7.gif" width="223" height="43" border="0" alt=""></td>
<td><img src="images/1/spacer.gif" width="1" height="37" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="2"><img name="n4a_r5_c5" src="images/1/4a_r5_c5.gif" width="233" height="43" border="0" alt=""></td>
<td><img src="images/1/spacer.gif" width="1" height="6" border="0" alt=""></td>
</tr>
<tr>
<% dim picurl,gamesurl
sql="select id,picurl,gamesurl from games where ifhead=1 and ifshow=1 order by id desc"
set rs=conn.execute(sql)
picurl=rs("picurl")
gamesurl=rs("gamesurl")
picurl=replace(picurl,"uploadimage","admin/uploadimage")
gamesurl=replace(gamesurl,"uploadimage","admin/uploadimage") %>
<td colspan="2"><img name="n4a_r6_c2" src="images/1/4a_r6_c2.gif" width="187" height="37" border="0" alt=""></td>
<td rowspan="2" bgcolor="#FFFFFF"><div align="center"><a href="<%=gamesurl%>" target="_blank"><img src="<%=picurl%>" width="200" height="120" border="0"></a></div></td>
<td><img src="images/1/spacer.gif" width="1" height="37" border="0" alt=""></td>
</tr>
<% rs.close %>
<tr>
<td rowspan="3"><img name="n4a_r7_c2" src="images/1/4a_r7_c2.gif" width="36" height="138" border="0" alt=""></td>
<td colspan="3" rowspan="2" bgcolor="#FFFFFF"><iframe src="scroll2.htm" name="I4" width="99%" marginwidth="1" height="110" marginheight="1" scrolling="No" frameborder="0" id="I4"></iframe></td>
<td><img src="images/1/spacer.gif" width="1" height="110" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="2"><img name="n4a_r8_c7" src="images/1/4a_r8_c7.gif" width="223" height="28" border="0" alt=""></td>
<td><img src="images/1/spacer.gif" width="1" height="8" border="0" alt=""></td>
</tr>
<tr>
<td colspan="3"><img name="n4a_r9_c3" src="images/1/4a_r9_c3.gif" width="420" height="20" border="0" alt=""></td>
<td><img src="images/1/spacer.gif" width="1" height="20" border="0" alt=""></td>
</tr>
</table>
<% dim length,cc,path,vtop,vip,vips,vtoday,vyesterday,vstarttime,vtodaytime,vsaveips,vmax,vmaxtime
sql="select * from counter where used=1"
rs.open sql,conn,1,2
length=rs("lengh")
path=rs("path")
' 網頁立即過期,防止漏統計
Response.Expires = -1

' 檢查客戶端IP
vip=Request.ServerVariables("Remote_Addr")

'如果已經存在統計數據

vtop=rs("number")
vips=rs("vips")
vtoday=rs("vtoday")
vyesterday=rs("vyesterday")
vstarttime=rs("vstartime")
vtodaytime=rs("vtodaytime")
vsaveips=rs("vsaveips")
vmax=rs("vmax")
vmaxtime=rs("vmaxtime")

'向現有數據中追加值
vtop=vtop+1
if instr(vsaveips,"#" & vip & "#")=false then
vips=vips+1
if cdate(vtodaytime)=date() then
vtoday=vtoday+1
else
vyesterday=vtoday
vtoday=1
vtodaytime=date()
end if
if clng(vtoday)>clng(vmax) then
vmax=vtoday
vmaxtime=date()
end if
vsaveips=left(vsaveips,len(vsaveips)-1)
vsaveips=right(vsaveips,len(vsaveips)-1)
howip=split(vsaveips,"#")

if ubound(howip) < 40 then
vsaveips="#" & vsaveips & "#" & vip & "#"
else
vsaveips=replace("#" & vsaveips,"#" & howip(0) & "#","#") & "#" & vip & "#"
end if

'寫入數據文件

'寫入資料庫

end if

' 關閉數據對象
rs.close

'將數據寫入資料庫
sql="select * from counter where used=1"
rs.open sql,conn,1,2
rs("number")=vtop
rs("vips")=vips
rs("vtoday")=vtoday
rs("vyesterday")=vyesterday
rs("vtodaytime")=vtodaytime
rs("vmax")=vmax
rs("vmaxtime")=vmaxtime
rs("vsaveips")=vsaveips
rs.update
rs.close
set conn=nothing

%>
<table width="778" height="140" border="0" align="center" cellpadding="0" cellspacing="0" background="images/end.gif">
<tr>
<td width="268" height="120">
<div align="center"><span class="ha"><font color="#0000FF" size="2" face="宋體">網站訪問量:</font></span>
<br>
<% cc=length-len(vtop)
for i=1 to cc %><img src="<%=path%>/0.gif"><% next %>
<% for i=1 to len(vtop)%><img src="<%=path%>/<%=mid(vtop,i,1)%>.gif"><% next %>
</div></td><% endtime=timer() %>
<td width="510"> <div align="center" class="ha"><font color="#FFFFFF" size="2" face="宋體"><font color="#FF6600">學校名稱:</font><font color="#0000FF"><%=schoolname%> <font color="#FF6600">電話:</font><%=phone%><br>
<font color="#FF6600">地址:</font><%=address%> <font color="#FF6600">郵政編碼:</font><%=postmode%> <br>
<font color="#FF6600">頁面運行時間:</font><%=FormatNumber((endtime-startime)*1000,3)%><font color="#FF6600">毫秒 </font></font></font></div>
<div align="left"><font color="#0000FF" size="2"></font></div></td>
</tr>
</table>
<map name="Map">
<area shape="rect" coords="16,8,116,40" href="main/info.asp" target="_blank">
<area shape="rect" coords="144,9,242,41" href="main/news.asp" target="_blank">
<area shape="rect" coords="274,9,374,42" href="main/teacher.asp" target="_blank">
<area shape="rect" coords="401,8,503,42" href="main/huodong.asp" target="_blank">
<area shape="rect" coords="534,8,632,41" href="main/jtsh.asp" target="_blank">
<area shape="rect" coords="665,8,762,41" href="bbs/index.asp" target="_blank">
</map>
</body>
</html>

㈡ 用java做一個網頁(注冊頁)

<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>新用戶注冊</title>
<script language="javascript" src="js/send_request.js"></script>
<script language="javascript">
function refreshImage(){
document.getElementById("image").src = "image.jsp";
}
function checkInput(){
var f = document.forms[0];
var usernamePatrn = /^[a-zA-Z]{4,12}$/;
if(!usernamePatrn.exec(f.username.value)){
alert("輸入用戶名不合法,請重新輸入!");
f.username.select;
f.username.focus();
return false;
}
var passwordPatrn = /^(\w){6,12}$/;
if(!passwordPatrn.exec(f.password.value)){
alert("密碼不符合要求,請重新輸入!");
f.passowrd.focus();
return false;
}
if(f.password.value != f.passwordverify.value){
alert("兩次密碼輸入不一樣,請重新輸入!");
f.password.focus();
return false;
}
document.getElementById("info").innerHTML = "正在處理。。。請等待。。。";
send_request("get","private/register1.jsp?userName="+f.username.value+"&password="+f.password.value+
"&checkCode="+f.check.value,null,"text",callback);
}
function callback(){
if(http_request.readyState == 4){
if(http_request.status == 200){
var result = http_request.responseText;
if(result == 1){
alert("注冊成功!點擊確定後進入主界面!");
window.location="mainPage.html";
}
else alert(result);
}
else{
alert("頁面異常");
alert(http_request.status);
}
}
}
</script>
</head>

<body>
<form action="" name="form1"method="post">
<table width="100%">
<tr align="center">
<td align="right">用戶名:</td>
<td align="left"><input type="text" size="12" maxlength="12" id="username" name="username" />
(2-12字元, 必須全為英文字母)</td>
</tr>
<tr>
<td></td>
<td align="left"><label id="info" style="color:#0033FF"></td>
</tr>
<tr>
<td align="right">密碼:</td>
<td align="left"><input type="password" size="12" maxlength="12" id="password" />(4-12字元)</td>
</tr>
<tr>
<td align="right">密碼確認:</td>
<td align="left"><input type="password" size="12" maxlength="12" id="passwordverify" />(4-12字元)</td>
</tr>
<tr>
<td align="right"><img src="image.jsp" id="image" /></td>
<td align="left"><input type="button" value="看不清楚,換個驗證碼" onclick="javascript:refreshImage();" /></td>
</tr>
<tr>
<td align="right">請輸入驗證碼:</td>
<td align="left"><input type="text" size="12" maxlength="12" id="check" name="check" /></td>
</tr>
<tr>
<td align="right"><input type="button" value="提交" onclick="javascript:checkInput();" /></td>
<td align="left"><input type="reset" value="取消" /></td>
</tr>
</table>
</form>
</body>
</html>
ajax的
下面是image.jsp

<%@ page contentType="image/jpeg" import="java.awt.*,java.awt.image.*,java.util.*,javax.imageio.*" %>
<%!

Color getRandColor(Random random,int fc,int bc)
{
if(fc>255) fc=255;
if(bc>255) bc=255;
int r=fc+random.nextInt(bc-fc);
int g=fc+random.nextInt(bc-fc);
int b=fc+random.nextInt(bc-fc);
return new Color(r,g,b);
}
%>
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);

// 設置圖片的長寬
int width=176, height=30;
//設置備選漢字,剔除一些不雅的漢字
String base = "\u7684\u4e00\u4e86\u662f\u6211\u4e0d\u5728\u4eba\u4eec\u6709\u6765\u4ed6\u8fd9\u4e0a\u7740\u4e2a\u5730\u5230\u5927"+
"\u91cc\u8bf4\u5c31\u53bb\u5b50\u5f97\u4e5f\u548c\u90a3\u8981\u4e0b\u770b\u5929\u65f6\u8fc7\u51fa\u5c0f\u4e48\u8d77"+
"\u90fd\u628a\u597d\u8fd8\u591a\u6ca1\u4e3a\u53c8\u53ef\u5bb6\u5b66\u53ea\u4ee5\u4e3b\u4f1a\u6837\u5e74\u60f3\u751f\u540c\u8001\u4e2d\u5341"+
"\u4ece\u81ea\u9762\u524d\u5934\u9053\u5b83\u540e\u7136\u8d70\u5f88\u50cf\u89c1\u4e24\u7528\u5979\u56fd\u52a8\u8fdb\u6210\u56de\u4ec0\u8fb9"+

"\u4f5c\u5bf9\u5f00\u800c\u5df1\u4e9b\u73b0\u5c71\u6c11\u5019\u7ecf\u53d1\u5de5\u5411\u4e8b\u547d\u7ed9\u957f\u6c34\u51e0\u4e49\u4e09\u58f0"+

"\u4e8e\u9ad8\u624b\u77e5\u7406\u773c\u5fd7\u70b9\u5fc3\u6218\u4e8c\u95ee\u4f46\u8eab\u65b9\u5b9e\u5403\u505a\u53eb\u5f53\u4f4f\u542c\u9769"+

"\u6253\u5462\u771f\u5168\u624d\u56db\u5df2\u6240\u654c\u4e4b\u6700\u5149\u4ea7\u60c5\u8def\u5206\u603b\u6761\u767d\u8bdd\u4e1c\u5e2d\u6b21"+

"\u4eb2\u5982\u88ab\u82b1\u53e3\u653e\u513f\u5e38\u6c14\u4e94\u7b2c\u4f7f\u5199\u519b\u5427\u6587\u8fd0\u518d\u679c\u600e\u5b9a\u8bb8"+

"\u5feb\u660e\u884c\u56e0\u522b\u98de\u5916\u6811\u7269\u6d3b\u90e8\u95e8\u65e0\u5f80\u8239\u671b\u65b0\u5e26\u961f\u5148\u529b\u5b8c\u5374"+

"\u7ad9\u4ee3\u5458\u673a\u66f4\u4e5d\u60a8\u6bcf\u98ce\u7ea7\u8ddf\u7b11\u554a\u5b69\u4e07\u5c11\u76f4\u610f\u591c\u6bd4\u9636\u8fde\u8f66"+

"\u91cd\u4fbf\u6597\u9a6c\u54ea\u5316\u592a\u6307\u53d8\u793e\u4f3c\u58eb\u8005\u5e72\u77f3\u6ee1\u65e5\u51b3\u767e\u539f\u62ff\u7fa4\u7a76"+

"\u5404\u516d\u672c\u601d\u89e3\u7acb\u6cb3\u6751\u516b\u96be\u65e9\u8bba\u5417\u6839\u5171\u8ba9\u76f8\u7814\u4eca\u5176\u4e66\u5750\u63a5"+

"\u5e94\u5173\u4fe1\u89c9\u6b65\u53cd\u5904\u8bb0\u5c06\u5343\u627e\u4e89\u9886\u6216\u5e08\u7ed3\u5757\u8dd1\u8c01\u8349\u8d8a\u5b57\u52a0"+

"\u811a\u7d27\u7231\u7b49\u4e60\u9635\u6015\u6708\u9752\u534a\u706b\u6cd5\u9898\u5efa\u8d76\u4f4d\u5531\u6d77\u4e03\u5973\u4efb\u4ef6"+

"\u611f\u51c6\u5f20\u56e2\u5c4b\u79bb\u8272\u8138\u7247\u79d1\u5012\u775b\u5229\u4e16\u521a\u4e14\u7531\u9001\u5207\u661f\u5bfc\u665a\u8868"+

"\u591f\u6574\u8ba4\u54cd\u96ea\u6d41\u672a\u573a\u8be5\u5e76\u5e95\u6df1\u523b\u5e73\u4f1f\u5fd9\u63d0\u786e\u8fd1\u4eae\u8f7b\u8bb2"+

"\u519c\u53e4\u9ed1\u544a\u754c\u62c9\u540d\u5440\u571f\u6e05\u9633\u7167\u529e\u53f2\u6539\u5386\u8f6c\u753b\u9020\u5634\u6b64\u6cbb\u5317"+

"\u5fc5\u670d\u96e8\u7a7f\u5185\u8bc6\u9a8c\u4f20\u4e1a\u83dc\u722c\u7761\u5174\u5f62\u91cf\u54b1\u89c2\u82e6\u4f53\u4f17\u901a\u51b2\u5408"+

"\u7834\u53cb\u5ea6\u672f\u996d\u516c\u65c1\u623f\u6781\u5357\u67aa\u8bfb\u6c99\u5c81\u7ebf\u91ce\u575a\u7a7a\u6536\u7b97\u81f3"+

"\u653f\u57ce\u52b3\u843d\u94b1\u7279\u56f4\u5f1f\u80dc\u6559\u70ed\u5c55\u5305\u6b4c\u7c7b\u6e10\u5f3a\u6570\u4e61\u547c\u6027\u97f3\u7b54"+

"\u54e5\u9645\u65e7\u795e\u5ea7\u7ae0\u5e2e\u5566\u53d7\u7cfb\u4ee4\u8df3\u975e\u4f55\u725b\u53d6\u5165\u5cb8\u6562\u6389\u5ffd\u79cd\u88c5"+

"\u9876\u6025\u6797\u505c\u606f\u53e5\u533a\u8863\u822c\u62a5\u53f6\u538b\u6162\u53d4\u80cc\u7ec6";
//備選漢字的長度
int length = base.length();

//創建內存圖像
BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
// 獲取圖形上下文
Graphics g = image.getGraphics();

//創建隨機類的實例
Random random = new Random();

// 設定圖像背景色(因為是做背景,所以偏淡)
g.setColor(getRandColor(random,200,250));
g.fillRect(0, 0, width, height);

//備選字體
String[] fontTypes = {"\u5b8b\u4f53","\u65b0\u5b8b\u4f53","\u9ed1\u4f53","\u6977\u4f53","\u96b6\u4e66"};
int fontTypesLength = fontTypes.length;

//在圖片背景上增加噪點
g.setColor(getRandColor(random,160,200));
g.setFont(new Font("Times New Roman",Font.PLAIN,14));
for (int i=0;i<6;i++)
{
g.drawString("*********************************************",0,5*(i+2));
}

//取隨機產生的認證碼(6個漢字)

//保存生成的漢字字元串
String sRand="";
for (int i=0;i<4;i++)
{
int start = random.nextInt(length);
String rand=base.substring(start,start+1);
sRand+=rand;

//設置字體的顏色
g.setColor(getRandColor(random,10,150));
//設置字體
g.setFont(new Font(fontTypes[random.nextInt(fontTypesLength)],Font.BOLD,18 + random.nextInt(6)));
//將此漢字畫到圖片上
g.drawString(rand,24*i+ 10 + random.nextInt(8),24);
}

session.setAttribute("rand",sRand);

g.dispose();

ImageIO.write(image, "JPEG", response.getOutputStream());

%>

㈢ MacBook Pro ME665CH/A 支持音頻源碼輸出嗎

貌似有一次裝完win7啥驅動都沒裝的時候,看到插耳機的孔裡面有紅光發出來。不知道是不是所謂的飲品源碼輸出。

㈣ 網頁復制的新問題

很多資料性的網路文章,往往在網頁禁止使用「復制」、「粘貼」命令
破解方法很簡單: 單擊IE瀏覽器的「工具」——「internet選項」——「安全」,將其中的「internet」的安全級別設為最高級別,「確定」後刷新網頁即可。
安全級別最高的時候,一切控制項和腳本均不能運行,再厲害的網頁限制手段統統全部作廢。
===================
寫網址。

㈤ 按鍵精靈怎麼改鍵

按鍵精靈改鍵方法步驟如下:

1、在按鍵精靈界面,點擊要修改熱鍵腳本的【屬性】;

㈥ 如何在 linux 下調試動態鏈接庫

大家都知道在 Linux 可以用 gdb 來調試應用程序,當然前提是用 gcc 編譯程序時要加上
-g 參數。
我這篇文章里將討論一下用 gdb 來調試動態鏈接庫的問題。

首先,假設我們准備這樣的一個動態鏈接庫:
QUOTE:
庫名稱是: ggg
動態鏈接庫文件名是: libggg.so
頭文件是: get.h
提供這樣兩個函數調用介面:
int get ();
int set (int a);
要生成這樣一個動態鏈接庫,我們首先編寫這樣一個頭文件:
[Copy to clipboard]
CODE:
/************關於本文檔********************************************
*filename: get.h
*purpose: 一個動態鏈接庫頭文件示例
*tided by: zhoulifa() 周立發 ()
Linux 愛好者 Linux 知識傳播者 SOHO 族 開發者 最擅長 C 語言
*date time: 2006-11-15 21:11:54
*Note: 任何人可以任意復制代碼並運用這些文檔,當然包括你的商業用途
* 但請遵循 GPL
*Hope:希望越來越多的人貢獻自己的力量,為科學技術發展出力
* 科技站在巨人的肩膀上進步更快!感謝有開源前輩的貢獻!
*感謝 提供原始代碼,
我在他的基礎上整理了此文
*********************************************************************/
int get ();
int set (int a);
然後准備這樣一個生成動態鏈接庫的源文件:
[Copy to clipboard]
CODE:
/************關於本文檔********************************************
*filename: get.cpp
*purpose: 一個動態鏈接庫源文件示例
*tided by: zhoulifa() 周立發 ()
Linux 愛好者 Linux 知識傳播者 SOHO 族 開發者 最擅長 C 語言
*date time:2006-11-15 21:11:54
*Note: 任何人可以任意復制代碼並運用這些文檔,當然包括你的商業用途
* 但請遵循 GPL
*Hope:希望越來越多的人貢獻自己的力量,為科學技術發展出力
* 科技站在巨人的肩膀上進步更快!感謝有開源前輩的貢獻!
*感謝 提供原始代碼,
我在他的基礎上整理了此文
*********************************************************************/
#include <stdio.h>
#include "get.h"

static int x=0;
int get ()
{
printf ("get x=%d\n", x);
return x;
}
int set (int a)
{
printf ("set a=%d\n", a);
x = a;
return x;
}
然後我們用 GNU 的 C/C++ 編譯器來生成動態鏈接庫,編譯命令如下:
QUOTE:
g++ get.cpp -shared -g -DDEBUG -o
libggg.so

這樣我們就准備好了動態鏈接庫了,下面我們編寫一個應用程序來調用此動態鏈接庫,源代碼如下:
[Copy to clipboard]
CODE:
/************關於本文檔********************************************
*filename: pk.cpp
*purpose: 一個調用動態鏈接庫的示例
*tided by: zhoulifa() 周立發 ()
Linux 愛好者 Linux 知識傳播者 SOHO 族 開發者 最擅長 C 語言
*date time:2006-11-15 21:11:54
*Note: 任何人可以任意復制代碼並運用這些文檔,當然包括你的商業用途
* 但請遵循 GPL
*Hope:希望越來越多的人貢獻自己的力量,為科學技術發展出力
* 科技站在巨人的肩膀上進步更快!感謝有開源前輩的貢獻!
*感謝 提供原始代碼,
我在他的基礎上整理了此文
*********************************************************************/
#include <stdio.h>
#include "get.h"
int main (int argc, char** argv)
{
int a = 100;
int b = get ();
int c = set (a);
int d = get ();

printf ("a=%d,b=%d,c=%d,d=%d\n",a,b,c,d);
return 0;
}
編譯此程序用下列命令,如果已經把上面生成的 libggg.so 放到了庫文件搜索路徑指定的文件目錄,比如 /lib 或 /usr/lib 之類的,就用下面這條命令:
QUOTE:
g++ pk.cpp -o app -Wall -g -lggg
否則就用下面這條命令:
QUOTE:
g++ pk.cpp -o app -Wall -g -lggg -L`pwd`
下面我們就開始調試上面命令生成的 app 程序吧。如果已經把上面生成的 libggg.so 放到了庫文件搜索路徑指定的文件目錄,比如 /lib或 /usr/lib 之類的,調試就順利完成,如下

QUOTE:
./app
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation,Inc.
GDB is free software, covered by the GNU
General Public License, and you are
welcome to change it and/or distribute
copies of it under certain conditions.
Type "show ing" to see theconditions.

There is absolutely no warranty for GDB.
Type "show warranty" for details.This GDB was configured as "i486-linux-
gnu"...Using host libthread_db library"/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) b main /* 這是在程序的 main 處設置斷點 */
Breakpoint 1 at 0x804853c: file pk.cpp,line 7.
(gdb) b set /* 這是在程序的 set 處設置斷點 */
Function "set" not defined.
Make breakpoint pending on future shared
library load? (y or [n]) y /* 這里必須選擇 y 調試程序才會跟蹤到動態鏈接庫內部去
*/Breakpoint 2 (set) pending.
(gdb) run /* 開始運行我們的程序,直到遇見斷點時暫停 */
Starting program: /data/example/c/app
Breakpoint 3 at 0xb7f665f8: file get.cpp,line 11.
Pending breakpoint "set" resolved
Breakpoint 1, main (argc=1,argv=0xbf990504) at pk.cpp:7
7 int a = 100;
(gdb) n /* 繼續執行程序的下一行代碼
*/
8 int b = get ();
(gdb) n /* 程序執行到了我們斷點所在的動態鏈接庫了 */
get x=0
9 int c = set (a);(gdb) n
Breakpoint 3, set (a=100) at get.cpp:11
11 printf ("set a=%d\n", a);
(gdb) list /* 查看當前代碼行周圍的代碼,證明我們已經跟蹤到動態鏈接庫的源代碼裡面了 */
6 printf ("get x=%d\n", x);
7 return x;
8 }
9 int set (int a)
10 {
11 printf ("set a=%d\n", a);
12 x = a;
13 return x;
14 }
(gdb) n
set a=100
12 x = a;(gdb) n
13 return x;(gdb) n
14 }
(gdb) n
main (argc=1, argv=0xbf990504) at
pk.cpp:10
10 int d = get ();
(gdb) n
get x=100
11 printf ("a=%d,b=%d,c=%
d,d=%d\n",a,b,c,d);
(gdb) n
a=100,b=0,c=100,d=100
12 return 0;
(gdb) c
Continuing.
Program exited normally.
(gdb) quit /* 程序順利執行結束 */#
如果我們沒有把動態鏈接庫放到指定目錄,比如/lib裡面,調試就會失敗,過程如下:
QUOTE:
# gdb ./app
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation,
Inc.
GDB is free software, covered by the GNU
General Public License, and you arewelcome to change it and/or distribute
copies of it under certain conditions.

Type "show ing" to see theconditions.
There is absolutely no warranty for GDB.
Type "show warranty" for details.
This GDB was configured as "i486-linux-
gnu"...Using host libthread_db library
"/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) b main
Breakpoint 1 at 0x804853c: file pk.cpp,
line 7.
(gdb) b set
Function "set" not defined.
Make breakpoint pending on future shared
library load? (y or [n]) y
Breakpoint 2 (set) pending.
(gdb) run /* 雖然調試操作都一樣,但程序執行失敗 */
Starting program: /data/example/c/app
/data/example/c/app: error while loading
shared libraries: libggg.so: cannot open
shared object file: No such file or
directory
Program exited with code 0177.
(gdb) quit
#
本次實驗的環境是:
CPU:AMD Athlon(tm) 64 Processor 3000+
內存:512M
OS:Ubuntu GNU/Linux 6.06 dapper LTS
gcc:gcc 版本 4.0.3 (Ubuntu 4.0.3-1ubuntu5)

break(b) 行號:在某一行設置斷點
break 函數名:在某個函數開頭設置斷點
break...if...:設置條件斷點
continue(或c):從當前位置開始連續而非單步執行程序
delete breakpoints:刪除所有斷點
delete breakpoints n:刪除序號為n的斷點
disable breakpoints:禁用斷點
enable breakpoints:啟用斷點
info(或i) breakpoints:參看當前設置了哪些斷點
run(或r):從開始連續而非單步執行程序
display 變數名:跟蹤查看一個變數,每次停下來都顯示它的值
undisplay:取消對先前設置的那些變數的跟蹤

㈦ 修改網站視頻源碼地址

在視頻下方由一個:把視頻貼到Blog或BBS上
點一下 下面出來兩個代碼
空間代碼是下面那個 復制就行了

㈧ 我使用的是大連聯通ADSL寬頻,它強行推送廣告,查看源代碼如下,這段代碼經過加密了,誰能告知一個解密的

不是你的問題 是的連接線的問題 這個要電信局的人來了拿測試機測試 才知道 有可能是你的電話線 連接貓的那根線不好 也有可能是電信局 分配你的IP 不好~~也可能是到期了啊~~~另外樓主你要確定是69多少~~~~還有要確定是網通還是電信~~~~也許我OUT了~~~你就是傳說中的雙線?
另外送上:
你連接寬頻時如果出錯的話,就是你無法連到網路上時,系統會按照netcfg.hlp給你提供一些錯誤信息.如下:

600 某操作處於掛起狀態。
601 檢測到一個無效埠句柄。
602 指定埠已經打開。
603 呼叫方緩沖區太小。
604 指定了錯誤的信息。
605 無法設置埠信息。
606 無法連接指定埠。
607 檢測到無效事件。
608 指定了一個不存在的設備。
609 設備類型不存在。
610 緩沖區無效。
611 路由不可用。
612 路由沒有分配。
613 指定了無效的壓縮
614 緩沖區不足。

615 沒有找到埠。
616 某非同步請求處於掛起狀態。
617 埠或設備已經斷開。
618 埠沒有打開。
619 不能建立到遠程計算機的連接,因此用於此連接的埠已關閉。
620 沒有端點。
621 無法打開電話簿文件。
622 無法載入電話簿文件。
623 無法找到電話簿項。
624 無法寫入電話簿文件。
625 在電話簿中發現的無效信息。
626 無法載入字元串。
627 無法找到鍵。
628 在連接完成之前,連接被遠程計算機終止。

629 數據鏈接被遠程計算機終止。
630 由於硬體失敗,埠斷開連接。
631 用戶已斷開埠連接。
632 結構大小不正確。
633 埠已經在使用或沒有為「遠程訪問」撥出配置埠。
634 無法在遠程網路注冊計算機。
635 未知錯誤。
636 錯誤的設備連接到埠。
637 字元串無法轉換。
638 請求超時。
639 沒有可用的非同步網路。
640 發生 NetBIOS 錯誤。
641 伺服器無法分配支持客戶端所需的 NetBIOS 資源。

642 已在遠程網路上注冊了一個 NetBIOS 名稱。
643 伺服器上的網路適配器出現故障。
644 將無法接收網路彈出式消息。
645 內部身份驗證錯誤。
646 不允許此帳戶在一天的這一時間段登錄。
647 本帳戶已禁用。
648 密碼已過期。
649 帳戶沒有「遠程訪問」的許可權。
650 「遠程訪問」伺服器沒有響應。
651 數據機(或其他設備)報告了一個錯誤。
652 設備響應無法識別。
653 沒有在設備 .INF 文件部分發現設備所必需的宏。

654 設備 .INF 文件部分中的命令或響應引用到未定義的宏。
655 在設備 .INF 文件部分未發現 <message> 宏。
656 在設備 .INF 文件部分中的 <defaultoff> 宏含有未定義的宏。
657 無法打開設備 .INF 文件。
658 設備 .INF 文件或媒體 .INI 文件中的設備名太長。
659 媒體 .INI 文件引用了未知的設備名。
660 設備 .INF 文件不包含對該命令的響應。
661 設備 .INF 文件缺少一條命令。
662 試圖設置一個沒有列在設備 .INF 文件部分的宏。

663 媒體 .INI 文件引用了未知的設備類型。
664 無法分配內存。
665 埠不是為「遠程訪問」配置的。
666 數據機(或其他設備)不起作用。
667 無法讀取媒體 .INI 文件。
668 連接已除去。
669 媒體 .INI 文件中的用法參數無效。
670 不能從媒體 .INI 文件中讀取部分名稱。
671 不能從媒體 .INI 文件中讀取設備類型。
672 不能從媒體 .INI 文件中讀取設備名稱。
673 不能從媒體 .INI 文件中讀取使用方法。

674 不能從媒體 .INI 文件中讀取最大連接 BPS 速率。
675 不能從媒體 .INI 文件中讀取最大載波 BPS 速率。
676 線路忙。
677 人工應答而不是數據機應答。
678 遠程計算機沒有響應。
679 無法檢測載波。
680 沒有撥號音。
681 設備報告的常見錯誤。
691 拒絕訪問,因為用戶名和/或密碼在域中無效。
692 埠或連接的設備內的硬體故障。
695 未啟動狀態機器。
696 已啟動狀態機器。
697 響應循環未完成。

699 設備響應引起緩沖區溢出。
700 設備 .INF 文件中的擴展命令太長。
701 設備移動到 COM 驅動程序不支持的 BPS 速率。
703 連接需要用戶信息,但應用程序不允許用戶交互。
704 回撥號碼無效。
705 授權狀態無效。
707 出現與 X.25 協議有關的錯誤。
708 本帳戶已過期。
709 在域中修改密碼的錯誤。
710 與數據機通信時檢測到串口超載錯誤。
711 在此計算機上的配置錯誤阻止此連接。
712 Biplex 埠正在初始化。等幾秒鍾再重撥。

713 沒有活動的 ISDN 線路可用。
714 沒有足夠的 ISDN 通道可用於呼叫。
715 電話線質量太差而產生了太多的錯誤。
716 「遠程訪問 IP」配置不能用。
717 在「遠程訪問 IP」地址的靜態池中沒有可用的 IP 地址。
718 因為遠程計算機沒有及時反應,此連接已被終止。
719 PPP 已被遠程計算機終止。
720 無法建立與遠程計算機的連接。可能需要更改此連接的網路設置。
721 遠程計算機沒響應。
722 PPP 數據包無效。
723 電話號碼(包含前綴及後綴在內)太長。

726 不能同時將 IPX 協議用於多個埠的撥出。
728 找不到連接到「遠程訪問」的 IP 適配器。
729 只有在安裝了 IP 協議之後,才能使用 SLIP。
731 未配置協議。
732 PPP 協商沒有會合。
733 不能完成到遠程計算機的連接。
734 PPP 鏈接控制協議被終止。
735 請求的地址被伺服器拒絕。
736 遠程計算機終止了控制協議。
737 檢測到環回。
738 伺服器沒指定地址。
739 遠程伺服器不能使用加密的密碼。

740 為「遠程訪問」配置的 TAPI 設備無法初始化或沒有正確安裝。
741 本地計算機不支持加密。
742 遠程伺服器不支持加密。
743 遠程伺服器要求加密。
752 處理腳本時遇到語法錯誤。

閱讀全文

與665源碼相關的資料

熱點內容
新科源碼 瀏覽:659
如何判斷伺服器有沒有帶寬 瀏覽:41
天正建築批量刪除命令 瀏覽:94
cad最下面的一排命令都什麼意思 瀏覽:456
pythonimportcpp 瀏覽:850
W10的系統怎麼給U盤加密 瀏覽:370
華為手機代碼編程教學入門 瀏覽:762
和彩雲沒會員怎樣解壓 瀏覽:634
androidimageview保存 瀏覽:387
新買店鋪什麼伺服器 瀏覽:883
文件夾能直接刻錄嗎 瀏覽:493
androidxmpp刪除好友 瀏覽:969
javac哪個前景好 瀏覽:428
中華英才網app為什麼不能搜索了 瀏覽:660
伺服器域名是什麼意思 瀏覽:52
Linux導出mysql命令 瀏覽:159
無詐建鄴是什麼app 瀏覽:228
python中的雙色球 瀏覽:168
python解釋器里如何換行 瀏覽:413
python編寫格式 瀏覽:577