📄 myshop.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META HTTP-EQUIV="PRAGMA" CONTENT="CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="TUE,04 Dec 2096 21:29:02 GMT">
<title>我的百宝箱</title>
<style type="text/css">
<!--
td, p, input, font, select, option, textarea, form { font-family:"宋体"; font-size: 12px }
a:link { text-decoration: none }
a:visited { text-decoration: none; color:#0000ff}
a:hover { text-decoration: underline }
a:active { text-decoration: none;}
.p9 {font-size: 9pt; line-height: 14pt }
-->
</style>
</head>
<script language="javascript">
var shopObj=new Array("自由头像选择器","系统公告发布器","道具查看器","IP查看器","隐身衣","红外透视器","臭鸡蛋","黄玫瑰","含笑半步颠","情玫瑰","论语","超时空电脑","暴力收税卡","散财神经酒","红卡","黑卡");
var canTouser=new Array(0,0,1,1,0,0,2,2,2,2,2,2,0,1,1,1);
var appletmark="";
function show_shop()
{
appletmark=opener.document.ChatClient.getAppletMark();
var list=document.form1.objlist;
while(list.length>0)
{
list.length--;
list.options[list.length]=null;
}
if(opener!=null)
{
for(i=0;i<16;i++)
{
x=opener.document.ChatClient.getMyShopObj(i);
if(x>0)
{
var opt= new Option(shopObj[i]+"("+x+"件)", ""+i);
list.options[list.length]=opt;
}
}
}
}
function click_use()
{
if(appletmark=="" || appletmark!=opener.document.ChatClient.getAppletMark())
{
alert("本页面已经超时了,请重新打开窗口。");
window.close();
return false;
}
var list=document.form1.objlist;
index=list.selectedIndex;
if(list.options.length==0)
{
alert("你没有道具可以用。");
return;
}
else if(index<0)
{
alert("请选择你要使用的道具。");
return;
}
else
index=eval(list.options[index].value);
if(opener.document.ChatClient.getMyShopObj(index)<1)
{
alert("你的道具“"+shopObj[index]+"”已经用完了。");
show_shop();
return;
}
var toval=0;
var toUser="自己";
if(document.form1.touser[1].checked)
{
toval=1;
toUser=opener.document.ChatClient.getSelUser();
}
if(toval==0 && canTouser[index]==1)
alert("道具“"+shopObj[index]+"”不能对自己使用!");
else if(toval==1 && canTouser[index]==0)
alert("道具“"+shopObj[index]+"”只能给自己使用!");
else if(toval==1 && toUser=="-")
alert("请先选择你要对他使用道具的人。");
else if(toval==1 && opener.document.ChatClient.checkUserExist()==0)
alert(toUser+" 已经离开本房间了,不能对他用道具。");
else if(toval==1 && toUser.substring(0,1)!="*" && index!=3)
alert("“"+toUser+"”不是注册用户,不能对他使用道具。");
else if(confirm("你确定要对“"+toUser+ "”使用道具“"+shopObj[index]+"”吗?"))
{
if(index==1)
{
toUser="";
var tempN=prompt("请输入你要发布的系统公告内容:","");
if(tempN)
{
if(tempN.length>60||tempN.length<2)
alert("系统公告不能多于60个字或少于两个字!");
else
toUser=tempN;
}
else
toUser="";
}
else if(toval==0)
toUser="-";
if(toUser!="")
{
opener.document.ChatClient.useShopObj(index,toUser);
if(index==0)
alert("“"+shopObj[index]+"”已经启用,你可以自由选择头像了。");
else if(index==4||index==5)
{
alert("“"+shopObj[index]+"”已经启用,请在道具菜单中执行相应的功能");
}
window.close();
}
}
}
function click_send()
{
}
</script>
<body bgcolor="#C0C0C0" topmargin="5" leftmargin="5" onload="show_shop()" oncontextmenu="self.event.returnValue=false">
<table border="0" width="100%" cellspacing="4" bgcolor="#B4B4B4" height="100%">
<tr>
<td width="95%"><b>我的百宝箱</b></td>
<td width="5%"><input type="button" value="关 闭" onclick="window.close()"></td>
</tr>
<tr>
<td width="100%" bgcolor="#E2E2E4" colspan="2" height="95%" valign="top">
<form name="form1" onsubmit="return false">
<table border="0" width="100%">
<tr>
<td width="35%" valign="top">道具名称(数量)<br>
<select name="objlist" size="14" style="width:260">
</select> </td>
<td width="65%" valign="top"><br>
<input type="radio" value="0" name="touser" checked>用于自己<br>
<input type="radio" value="1" name="touser">用于被选定的人<br><br>
<input type="button" value="使 用" onclick="click_use()"><br>
<br><br>
<input type="button" value="送 人" disabled></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -