snox's blog

技术 - 设计 - 生活 - 新知

导航

QQ秀物品图层显示

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>QQx秀图层显示</title>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<style>
    <!--
    td
{font-size:12px;font-family:"Arail";text-align:center;}

    .id_style
{
        font-size
:14px;
        font-weight
:bold;
        background-color
: lightslategray;
        color
: white;
    
}

    .layer_style
{
        font-family
: "Courier New", "Times New Roman", Times, serif;
        font-size
:12px;
        background-color
: lightgrey;
        color
: black;
    
}

    .foot_style
{
        font-family
:"Courier New", "Times New Roman", Times, serif;
        font-size
:11px;
        color
: #666666;
        text-align
:center;
        background-color
: #F8F8F8;
        padding
:4px;
        width
:97%;
    
}

    A:visited
{TEXT-DECORATION:none; color:#000033;}
    A:link
{text-decoration:none; color:#000033;}
    A:hover
{TEXT-DECORATION:underline; color:#630C09;}
    -->
</style>
</HEAD>

<BODY>
<script>
    
<!--
        
var start_id,step,dis_num;
        
var i,j,k;
        
var temp_str, temp_link;

        
var start_time, end_time;

        start_time 
= new Date();
        
        
function Request(strName)
        
{
                
var strHref = window.document.location.href;
                
var intPos = strHref.indexOf("?");
                
var strRight = strHref.substr(intPos + 1);

                
var arrTmp = strRight.split("&");
                
for(var i = 0; i < arrTmp.length; i++)
                
{
                        
var arrTemp = arrTmp[i].split("=");

                        
if(arrTemp[0].toUpperCase() == strName.toUpperCase()) return arrTemp[1];
                }

                
return "";
        }


        start_id 
= parseInt(Request("id"));
        step 
= parseInt(Request("step"));
        dis_num 
= parseInt(Request("dis_num"));
        opacity 
= parseInt(Request("opacity"));
        
//=================================================
        if (isNaN(start_id) || (start_id < 0))
        
{
            start_id 
= 1;
        }


        
if (isNaN(step))
        
{
            step 
= 8;
            temp_link 
= "";
        }

        
else
        
{
            temp_link 
= "&step="+step;
        }


        
if (isNaN(dis_num))
        
{
            dis_num 
= 16;
        }

        
else
            temp_link 
= "&dis_num="+step;

        
if (isNaN(opacity))
        
{
            opacity 
= 20;
        }

        
else
            temp_link 
= "&opacity="+opacity;
        
//=================================================
        
        
//
        document.write("<table bgcolor=#F2F2F2 cellpadding=3 cellspacing=1 border=0 align=center width=97%>");
        document.write(
"<tr><td bgcolor=#FCFCFC>共显示 " + dis_num + " 个,每行显示 " + step + " 个, 查找区间 " + start_id + " → " + (start_id+dis_num-1+ " </td>");        
        document.write(
"<td bgcolor=#FFFFFF> 可执行操作: <a href=?id="+(start_id-dis_num)+temp_link+">上一页</a> ");
        document.write(
" <a href=?id="+(start_id+dis_num)+temp_link+">下一页</a></td></tr>");
        document.write(
"</table><br>");
        
        document.write(
"<table bgcolor=#F2F2F2 cellpadding=3 cellspacing=1 border=0 align=center width=97% style=\"table-layout: fixed;\">");
        
for (i=start_id; i<(start_id+dis_num);i+=step )
        
{
            document.write(
"<tr bgcolor=#000066><td colspan="+step+" height=\"1px\"></td></tr>")
            
            document.write(
"<tr bgcolor=#FFFFFF class=\"id_style\">");
            
            j 
= 0;
            
do
            
{
                document.write(
"<td>"+(i+j)+"</td>");
                j
++;
            }

            
while (j<step);
            document.write(
"</tr>");

            j 
= 0;
            document.write(
"<tr bgcolor=#F8F8F8>");
            
do
            
{
                
                document.write(
"<td class=\"layer_style\">");
                
for (k=1; k<26; k++)
                
{
                    document.write(
"<img width=0 height=0 src=http://qqshow-item.tencent.com/"+(i+j)+"/"+k+"/00/ onerror=' this.outerHTML=\"\";' onload='this.outerHTML=\","+k+"\";'>");
                }

                j
++;
            }

            
while (j<step);
            document.write(
"</tr>");

            j 
= 0;
            document.write(
"<tr bgcolor=#FFFFFF>");
            
do
            
{
                document.write(
"<td><img width=84 height=84 src=http://qqshow-item.tencent.com/"+(i+j)+"/00/00/ style=\"FILTER: alpha(opacity="+opacity+");\"></td>");
                j
++;
            }

            
while (j<step);
            document.write(
"</tr>");

            
//document.write("<tr bgcolor=#336699><td colspan="+step+" height=\"1px\"></td></tr>")
        }

        document.write(
"<tr bgcolor=#000066><td colspan="+step+" height=\"1px\"></td></tr>")
        document.write(
"</table>");

        end_time 
= new Date();

        document.write(
"<br><div class=\"foot_style\">CopyRight &copy; www.wezu.net. Some Rights Received. Execute "+(end_time-start_time)+" ms. Now: "+(end_time)+"</div>");
    
-->
</script>
</BODY>
</HTML>

posted on 2005-02-03 17:12  Snox Abbey  阅读(466)  评论(0)    收藏  举报