⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smiley.html

📁 个人博客
💻 HTML
字号:
<html>
<head>
<meta HTTP-EQUIV=Expires CONTENT=0>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<TITLE>多功能编辑器</TITLE>
<Link rel="stylesheet" type="text/css" href="pop.css">
<style type="text/css">
				.Disactive { border-right: 1px solid; border-top: 1px solid; border-left: 1px solid; width: 1%; cursor: hand; border-bottom: 1px solid; background-color: #dedbd6; text-align: center; }
				.Active { cursor: hand; background-color: #ffffcc; text-align: center; }
				.MainTable { border-right: #e8e8e8 5px solid; border-top: #e8e8e8 5px solid; border-left: #e8e8e8 5px solid; border-bottom: #e8e8e8 5px solid; }
				.Sample { border-right: 1px solid; border-top: 1px solid; font-size: 24px; border-left: 1px solid; border-bottom: 1px solid; background-color: #dedbd6; }
				.Empty { border-right: 1px solid; border-top: 1px solid; border-left: 1px solid; width: 1%; cursor: default; border-bottom: 1px solid; background-color: #dedbd6; }
</style>
<script language="javascript">
<!--
var oSample ;
var code;
var n
function insertsmilie(smilieface){
	if (self.opener.Dvbbs_Composition){
	self.opener.Dvbbs_Composition.document.body.innerHTML+=smilieface;
	}
	else if (self.opener.frmAnnounce.Body){
	self.opener.frmAnnounce.Body.value+=smilieface;
	}
}

function insertChar(td)
{
	window.returnValue = td.innerHTML+"*"+td.title || "" ;
	//window.close();
}

function over(td)
{
	oSample.innerHTML = td.innerHTML ;
	td.className = 'Active' ;
	code.innerHTML = td.title;
}
function out(td)
{
	oSample.innerHTML = "&nbsp;" ;
	td.className = 'Disactive' ;
	code.innerHTML = "";
}

function CloseWindow()
{
	window.returnValue = null ;
	window.close() ;
}

function pageopen(id){

location.reload("smiley.html?star="+id+"")
}
//-->
</script>
</head>
<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0" bgcolor="menu" >
<table cellpadding="0" cellspacing="10" width="100%" height="100%">
<tr><td rowspan="2" width="90%"><INPUT name=SmileStar value=1 type=hidden>
<table class="MainTable" cellpadding="2" cellspacing="1" align="center" border="1" width="100%" height="100%">
<script language="javascript">
<!--
var aImages='emot/|||em01.gif|||em02.gif|||em03.gif|||em04.gif|||em05.gif|||em06.gif|||em07.gif|||em08.gif|||em09.gif|||em10.gif|||em11.gif|||em12.gif|||em13.gif|||em14.gif|||em15.gif|||em16.gif|||em17.gif|||em18.gif|||em19.gif|||em20.gif|||em21.gif|||em22.gif|||em23.gif|||em24.gif|||em25.gif|||em26.gif|||em27.gif|||em28.gif|||em29.gif|||em30.gif|||em31.gif|||em32.gif|||em33.gif|||em34.gif|||em35.gif|||em36.gif|||em37.gif|||em38.gif|||em39.gif|||em40.gif|||em41.gif|||em42.gif|||em43.gif|||em44.gif|||em45.gif|||em46.gif|||em47.gif|||em48.gif|||em49.gif|||';
var star=location.search.toLowerCase().replace("?star=","");
if(star.length==0)star=1;
var str=document.getElementById('SmileStar').value
var sBasePath = '' ;
aImages		  = aImages.split("|||");
var cols      = 8 ;
showmain(star)
function showmain(star){
star=Math.floor(star);
var ImgCount=aImages.length-2
var i = 24*star-24+1 ;
while (i <24*star)
{
	document.write("<TR>") ;
	for(var j = 0 ; j < cols ; j++) 
	{
		if (aImages[i])
		{
			if (i<10)
			{ii='0'+i}
			else
			{ii=i}
			//document.write("<TD title=[em"+ii+"] class='Disactive' align=center onclick='insertChar(this)' onmouseover='over(this);' onmouseout='out(this)'>") ;
			document.write("<TD title=[em"+ii+"] class='Disactive' align=center onclick=\"insertsmilie('[em" + ii + "]')\" style=\"CURSOR: hand\" onmouseover='over(this);' onmouseout='out(this)'>") ;
			insertsmilie
			document.write("<img src='" + aImages[0] + aImages[i] + "' border='0'>") ;
		}
		else
			document.write("<TD width='10%' class='Empty'>&nbsp;") ;
		document.write("</TD>") ;
		i++ ;
	}
	document.write("</TR>") ;
}
if (ImgCount>24){
document.write("<TR>") ;
document.write("<TD height=20 colspan="+cols+">") ;
pagecount('red',24,ImgCount,star)
}

//分页
function pagecount(alertcolor,PageSize,TopicNum,star){
PageSize=Math.floor(PageSize);
TopicNum=Math.floor(TopicNum);
star=Math.floor(star);
var n,p;
if ((star-1)%10==0) 
{
	p=(star-1) /10
}
else
{
	p=(((star-1)-(star-1)%10)/10)
}
if(TopicNum%PageSize==0) 
{
	n=TopicNum/PageSize;
}
else
{
	n=(TopicNum-TopicNum%PageSize)/PageSize+1;
}
document.write ('<table border="0" cellpadding="0" cellspacing="3" width="100%" >');
document.write ('<tr><td valign="middle" width="50%">');
document.write ('总文件数: <b>'+TopicNum+' </b>&nbsp;&nbsp;分页:');
if (star==1)
{
	document.write ('<font face=webdings color="'+alertcolor+'">9</font>');
}
else
{
	document.write ('<a href="#" onclick=pageopen(1) title="首页"><font face=webdings>9</font></a> ');
}
if (p*10 > 0)
{
	document.write ('<a onclick=pageopen('+p*10+') href="#" title="上十页"><font face=webdings>7</font></a> ');
}
document.write ('<b>');
for (var i=p*10+1;i<p*10+11;i++)
{
	if (i==star)
	{
		document.write (' <font color="'+alertcolor+'">'+i+'</font> ');
	}
	else
	{
		document.write (' <a href="#" onclick=pageopen('+i+') >'+i+'</a> ');
	}
	if (i==n) break;
}
document.write ('</b>');
if (i<n)
{
	document.write ('<a onclick=pageopen('+i+') href="#" title="下十页"><font face=webdings>8</font></a>   ');
}
if (star==n)
{
	document.write ('<Font face=webdings color="'+alertcolor+'">:</font>');
}
else
{
	document.write (' <a onclick=pageopen('+n+') href="#" title="尾页"><font face=webdings>:</font></a>  ');
}
document.write ('</td></tr></table>');
}

document.write("</TD>") ;
document.write("</TR>") ;
}
//-->
</script>
</table>
</td>
<td valign="top" width="10%" align="center">
<table class="MainTable" align="center" cellspacing="2">
<tr><td id="SampleTD" width="80" height="80" align="center" class="Sample">&nbsp;
</td></tr></table>
<div id=code></div>
</td>
</tr>
<tr><td align=center height=1><BUTTON onclick=window.close();>关闭</BUTTON></td></tr>
</table>
</body>
</html>
<script language="javascript">
<!--
oSample = document.getElementById("SampleTD") ;
code = document.getElementById("code") ;
//-->
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -