这个页面是怎么弄的呀
发布网友
发布时间:2022-05-06 08:26
我来回答
共2个回答
热心网友
时间:2022-06-29 16:49
这里是代码,你慢慢研究一下
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="http://bbs.role8.com:80/yuanxiao/">
<title>元宵节快乐</title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="random.js"></script>
<script type="text/javascript">
function copyUrl()
{
if(document.myfrm.friendName.value=="")
{
alert("请输入您的大名!");
return false;
}
else{
var url = window.location.href;
var i = url.indexOf("?");
if(i!=-1)
{
url=url.substring(0,i);
}
if(document.myfrm.blessing.value=="元宵节快乐!")
{
//alert(document.myfrm.blessing.value);
url += "?friendName="+encodeURL(document.myfrm.friendName.value);
}
else{
url += "?friendName="+encodeURL(document.myfrm.friendName.value)+"&blessing="+encodeURL(document.myfrm.blessing.value);
}
var ie = document.all && !window.opera;
if (ie) {
window.clipboardData.setData("text", url);
alert("已成功复制地址!");
}
window.location=url;
return false;
//document.myfrm.submit();
}
}
function encodeURL(st)
{
var regexp = /%20/g;
return encodeURIComponent(st).replace(regexp,"+");
}
var ans = document.getElementsByName("textfield");
function display() {
var ss="";
for(var s=0;s<ans.length;s++){
if(ans[s].value=="")
{
ss="加油,请答完题!";
}
if(ss!="")
{
alert(ss);
return false;
}
}
var all = document.getElementsByTagName("span");
for (var i = 0; i < all.length; i++) {
var elem = all[i];
if (elem.className=="answer") {
elem.style.display = "inline";
}
}
writescore();
}
function checkanswer()
{
var count=0;
for(var j =0;j<ans.length;j++)
{
if(ans[j].value==array[ram[j]].answer)
{
count=count+1;
}
}
document.getElementById("first").style.display="none";
document.getElementById("second").style.display="inline";
return count;
}
function writescore()
{
var score=checkanswer();
var msg = "";
if(score==ans.length)
{
msg="<br/>哇!恭喜您全答对了!您真是太聪明了。";
}
else if(score==0)
{
msg="<br/>太可惜了,你的成绩是0分。";
}
else
{
msg="<br/>不错,您答对了"+score+"道题,正确率"+score+"0%。";
}
var di=document.getElementById("ms");
ms.innerHTML=msg;
}
function sx()
{
window.location.reload();
}
</script>
</head>
<body>
<script type="text/javascript" src="http://bbs.role8.com/yuanxiaohistory/history/js/history.jsp"></script>
<table width="995" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="297" align="center" valign="top" background="images/yx08_bg_top.gif" class="no_bg"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="85"></td>
</tr>
<tr>
<td height="24" align="center" class="td_01">这是您的朋友 <span class="td1"></span> 为您送上的 “元宵节” 祝福。</td>
</tr>
<tr>
<td height="180" align="center" valign="bottom" class="td1 td_04 td_01"><span class="td2"></span> 在此元宵佳节为您送上衷心的祝福</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" valign="top" background="images/yx08_bg_001.gif"><table width="995" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="581" align="right"><img src="images/yx08_left_01.gif" /></td>
<td width="414" rowspan="3" align="left" valign="top">
<table width="340" border="0" cellpadding="0" cellspacing="0">
<script type="text/javascript">
writeRiddle();
</script>
<tr>
<td height="50" align="left" valign="bottom"> <div id="first"><img src="images/yx08_right_an.gif" onclick="display()"style="cursor:pointer"/></div><div id="second" style="display:none"><img src="images/yx08_right_an.gif" onclick="sx()"style="cursor:pointer"/></div></td>
</tr>
<tr>
<td height="80" align="center" background="images/yx08_right_01.gif"class="no_bg"><table width="260" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="bottom"><div style="background-color:#DE6715; height:50;width:230" id="ms"><br>快来答题吧,展现下你的身手!</div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="80" valign="top" ><a href="http://bbs.role8.com" ><img src="images/yx08_right_02.gif" width="300" height="29" border="0"/></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="right"valign="top"><img src="images/yx08_left_02.gif" /></td>
</tr>
<tr>
<td align="right" valign="top"><img src="images/yx08_left_03.gif" /></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top" background="images/yx08_bg_001.gif"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="2" align="left" valign="top"><img src="images/yx08_yun_01.gif" width="123" height="67" /></td>
<td align="center" class="td1 td_04 td_01">请记得常和您的朋友 <span class="td2"></span> 联系哦!<br /></td>
<td rowspan="2" align="right" valign="top"><img src="images/yx08_yun_02.gif" width="121" height="67" /></td>
</tr>
<tr>
<td align="center" class="td1 td_04 td_01">
元宵节快乐!</td>
</tr>
</table></td>
</tr>
<tr>
<td height="259" align="center" valign="top" background="images/yx08_bg_bottom.gif"><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30"> </td>
</tr>
<tr>
<td align="center">
<form method="get" name="myfrm">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="14" height="30" align="left"><img src="images/yx08_xing_01.gif" /></td>
<td width="85" align="left" class="td1">请输入您的名字</td>
<td width="146" align="left"><input name="friendName" type="text" class="textfield1" id="friendName" /></td>
<td width="135" align="left" class="td1">也为您的朋友送去祝福</td>
</tr>
<tr>
<td height="30" align="left"><img src="images/yx08_xing_01.gif" /></td>
<td align="left" class="td1">给朋友的祝福语</td>
<td colspan="2" align="left"><input name="blessing" type="text" class="textfield1" id="blessing" size="40" value="元宵节快乐!"/></td>
</tr>
<tr>
<td align="left"> </td>
<td height="50" colspan="3" align="left"><img src="images/yx08_bottom_an.gif" width="318" height="35" onclick="copyUrl()" style="cursor:pointer"/></td>
</tr>
</table>
</form>
</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
热心网友
时间:2022-06-29 16:49
晕,你查看源文件干什么!!! 内个是动态页面到网页上显示的是静态HTML语言,根本没有用。
这可以用JSP 和VB 等脚本 编辑的。如果你不懂的话很难看懂的。最好还是先学习下网站编程。