myway 发表于 2007-4-27 11:38:07

***游戏类***双人对抗游戏:围格子

把下列代码加到网页的<body></body>标签之间 从google下载我的照片管理软件
要完成此效果需要两个步骤

第一步:把如下代码加入到<head>区域中

<script>

function showmenu(bmenu) {

document.all.idfinder.style.display = (bmenu) ? "none" : "block"

document.all.idmenu.style.display = (bmenu) ? "block" : "none"

idml.classname = (bmenu) ? "con" : "coff"

idrl.classname = (bmenu) ? "coff" : "con"

return false

}

</script>

<style>

<!--

a.con {text-decoration:none;font-weight:bolder}

#article {font: 12pt verdana, geneva, arial, sans-serif;background: white; color: black;

padding: 10pt 15pt 0 5pt}

#article p.start {text-indent: 0pt}

#article p {margin-top:0pt;font-size:10pt;text-indent:12pt}

#article #author {margin-bottom:5pt;text-indent:0pt;font-style: italic}

#pagelist p {padding-top:10pt}

#article h3 {font-weight:bold}

#article dl, ul, ol {font-size: 10pt}

-->

</style>

<script>

<!--

function addlist(url,desc) {

if ((navigator.appname=="netscape") || (parseint(navigator.appversion)>=4)) {

var

w=window.open("","_idhtml_list_","top=0,left=0,width=475,height=150,history=no,menubar=no,status=

no,resizable=no")

var d=w.document

if (!w._init) {

d.open()

d.write("<title>loading...</title><em>loading...</em>")

d.close()

d.location.replace("/assist/listing.asp?url="+escape(url)+"&desc="+escape(desc))

w.opener=self   

window.status="personal assistant (adding): " + desc

} else {

window.status=w.addoption(url,desc)   

w.focus()

}

}

else

alert("your browser does not support the personal assistant.")

return false

}

// -->

</script>



<style>

#board {font-family: arial}

.dot {position: absolute; width: 5px; height: 5px; font-size: 0pt; background: black}

#line {position: absolute; font-size: 0pt; height: 5px}

.p1 {position: absolute; font-size: 0pt;background: navy}

.p2 {position: absolute; font-size: 0pt;background: red}

.p1b {position: absolute; font-size: 8pt; color: navy;text-align: center; font-weight: bold}

.p2b {position: absolute; font-size: 8pt; color: red; text-align: center; font-weight: bold}

</style>

<style type="text/css">

<!--

body {font-family: "宋体"; font-size: 9pt; margin-top: 0px; margin-left: 0px; margin-right:


0px}

a { color: black; font-size: 13px; font-weight: 400; text-decoration: none }

a:hover { color: red; font-size: 13px; font-weight: 400; text-decoration: underline }

a:active   { font: 9pt "宋体"; cursor: hand; color: #ff0033 }



-->

</style>

<meta http-equiv="content-type" content="text/html; charset=gb2312">

<script language="javascript">

<!-- begin

var timerrunning = false;

var timezone = "greenwich mean time";

var adjust = 0;



function timecheck(tzone, diff) {

if (timerrunning) {

cleartimeout(updatetime);

timerrunning = false; }

gmtoffset=eval(diff+adjust);

timezone = tzone;

checkdatetime();

}



function checkdatetime () {

var today = new date();

var year = today.getyear() + 1900;

var month = today.getmonth()+1;

var date = today.getdate();

var day = today.getday();

var hour = today.gethours();

var minute = today.getminutes();

var second = today.getseconds();



var lastsat = date - (day+1);

while (lastsat < 32) lastsat+=7;

if (lastsat > 31) lastsat+=-7;

var firstsat = date - (day+1);

while (firstsat > 0) firstsat+=-7;

if (firstsat < 1) firstsat+=7;

if ((((month == 4) && (date >= firstsat)) || month > 4) &&

(month < 11 || ((month == 10) && day <= lastsat))) adjust += 60;

youroffset = (new date()).gettimezoneoffset();

youroffset = youroffset + adjust;



var xx = navigator.appname

var xy = navigator.appversion;

xy = xy.substring(0,1);

if ((xy == 4) && (xx == "netscape")) youroffset = youroffset+adjust;

if ((((month == 4) && (date > 20)) || month > 4) && (month < 11 || ((month == 10) &&

day < 30))) adjust -= 60;



ourdifference = eval(gmtoffset - youroffset);

var half = eval(ourdifference % 60);

ourdifference = math.round(ourdifference / 60);

hour = eval(hour - ourdifference);

var m = new array("",

"jan","feb","mar",

"apr","may","jun",

"jul","aug","sept",

"oct","nov","dec");

var leap = eval(year % 4);



if ((half == -30) || (half == 30)) minute += 30;

if (minute > 59) minute -= 60, hour++;

if (minute < 0) minute += 60, hour--;

if (hour > 23) hour -= 24, date += 1;

if (((month == 4) || (month == 6) ||

(month == 9) || (month == 11)) && (date==31)) date = 1, month ++;

if (((month == 2) && (date > 28)) && (leap != 0)) date = 1, month ++;

if ((month == 2) && (date > 29)) date = 1, month++;

if (hour < 0) hour += 24, date --;

if ((date == 32) && (month == 12)) month = m, date = 1, year++;

if (date == 32) date = 1, month++;

if ((date < 1) && (month == 1)) month= m, date = 31, year--;

if (date < 1) date = 31, month --;

if (((month == 4) || (month == 6) ||

(month== 9) || (month == 11)) && (date == 31)) date = 30;

if ((month == 2) && (date > 28)) date = 29;

if (((month == 2) && (date > 28)) && (leap != 0)) date=28;

for (i=1; i<13; i++) {

if (month == i) {

month = m; break;

   }

}



var datetime = hour;

datetime = ((datetime < 10) ? "0":"") + datetime;

datetime = "   " + datetime;

datetime += ((minute < 10) ? ":0" : ":") + minute;

datetime += ((second < 10) ? ":0" : ":") + second;

datetime += (hour >= 12) ? " pm, " : " am, ";

datetime += month + " " + date + ", " + year;



document.clock.zonetime.value = datetime;

document.clock.zonename.value = timezone;

updatetime=settimeout("checkdatetime()", 900);

timerrunning = true;

}

// end -->

</script>


第二步:把如下代码加入到<body>区域中

<table cellpadding="0" cellspacing="0" border="0" width="509">

<tr>

    <td width="10"></td>

    <td valign="top" width="499" id="article"><p class="start" style="text-align: left"><font

    size="+2" style="font-weight:bold;font-size: 14pt"><b>看谁围的框子









--------------------------------------

拥有三人行论坛管理系列软件,一个人就可以管理一个论坛的更新维护。还能使您的论坛有千人在线的真实火暴效果,让您不在为论坛因没有人气而留不住会员而烦恼,使您的论坛早日成为一流的论坛。详情请登陆网站:http://www.cnsrx.cn 三人行论坛管理软件,站长必备的专业好工具。(您使用的是免费版本,购买收费版本后,将不带广告。业务QQ:247216 44985227)
页: [1]
查看完整版本: ***游戏类***双人对抗游戏:围格子