锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品亚洲永久免费精品,亚洲激情在线观看,亚洲成A人片77777国产http://www.tkk7.com/caoyinghui/zh-cnTue, 13 May 2025 10:25:42 GMTTue, 13 May 2025 10:25:42 GMT60css+div甯冨眬http://www.tkk7.com/caoyinghui/archive/2011/09/26/359507.htmlshine_pandashine_pandaMon, 26 Sep 2011 06:10:00 GMThttp://www.tkk7.com/caoyinghui/archive/2011/09/26/359507.htmlhttp://www.tkk7.com/caoyinghui/comments/359507.htmlhttp://www.tkk7.com/caoyinghui/archive/2011/09/26/359507.html#Feedback0http://www.tkk7.com/caoyinghui/comments/commentRss/359507.htmlhttp://www.tkk7.com/caoyinghui/services/trackbacks/359507.html<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>2鍒楀彸渚у浐瀹氬乏渚ц嚜閫傚簲瀹藉害錛屾湭鐭ラ珮搴︿笖搴曢儴騫抽綈+澶撮儴+瀵艱埅+灝鵑儴鈥斺?lt;a >鏍囧噯涔嬭礬www.aa25.cn</a></title> <link href="layout.css" rel="stylesheet" type="text/css" /> <meta name="Keywords" content="鏍囧噯涔嬭礬,www.aa25.cn,緗戦〉鏍囧噯甯冨眬,DIV+CSS" /> <meta name="" content="鏍囧噯涔嬭礬,www.aa25.cn,緗戦〉鏍囧噯甯冨眬,DIV+CSS" /> <meta name="author" content"脳脳脳,鏈夐棶棰樿鍒皐ww.68css.cn緗戠珯鐣欒█" /> <meta name="Description" content="鏈緗戦〉鏍囧噯甯冨眬妯℃澘鏄敱鏍囧噯涔嬭礬錛坵ww.aa25.cn錛夊埗浣滃畬鎴愶紝濡傛灉鎮(zhèn)ㄨ杞澆錛岃淇濈暀鐗堟潈" /> </head> <body> <div id="container"> <div id="header">This is the Header</div> <br class="clearfloat" /> <div id="menu">This is the Menu</div> <br class="clearfloat" /> <div id="mainContent"> <div id="sidebar">This is the sidebar<br /> </div> <div id="content">2鍒楀彸渚у浐瀹氬乏渚ц嚜閫傚簲瀹藉害錛屾湭鐭ラ珮搴︿笖搴曢儴騫抽綈+澶撮儴+瀵艱埅+灝鵑儴鈥斺?lt;a >鏍囧噯涔嬭礬www.aa25.cn</a><br /> <br /> 銆銆鏈緥鍜屼緥21宸笉澶氾紝涓涓槸鍥哄畾瀹藉害錛屼竴涓槸鑷傚簲錛屽悓鏍鋒槸鏈煡楂樺害銆?lt;br /> <br /> 銆銆姝や緥涓渶瑕佽鏄庝竴鐐圭殑鏄細(xì)褰揷ontent璁懼畾楂樺害鍚庯紝3鍍忕礌浼?xì)璺戝埌content澶栦晶錛屽弽涔嬶紝鍦╟ontent鍐呴儴銆傝繖鏍鳳紝鎴戜滑鐢?important淇鍦╥e涓嬪悜宸﹀嫻姩2鍍忕礌錛屽姞涓?鍍忕礌鐨刡ug姝eソ鏄?鍍忕礌錛屾墍浠ュ湪鐏嫄鍜孖E涓嬫樉紺烘槸涓鏍風(fēng)殑錛岃繖鏄ぇ瀹跺繀欏繪敞鎰忕殑涓鐐廣傝屽綋content璁懼畾楂樺害鍚庯紝濡?00px錛岄偅涔堝湪IE6涓嬶紝褰撻珮搴﹁秴榪?00px鏃訛紝瀹冧細(xì)鑷姩鎶奵onent鎾戦珮錛岃岀伀鐙愬幓涓嶄細(xì)銆傛墍浠ョ敤!important淇鍦↖E涓嬭瀹氶珮搴﹀間嬌瀹冪殑3鍍忕礌璺戝埌澶栦晶錛岀伀鐙愪笅鍥犱笉瀛樺湪3鍍忕礌闂錛屾墍浠ラ珮搴﹁嚜鍔ㄣ?lt;br /> <br /> <br /> 銆銆鎬諱箣錛屽疄鐜扮殑鏂規(guī)硶鏄縐嶅鏍風(fēng)殑錛岃繖鍙槸鏈漢鍦ㄥ涔?fàn)杩嚱E嬩腑鎬葷粨鐨勪竴鐐圭粡楠岋紝鏉冨綋鎶涚爾寮曠帀錛屽笇鏈涜兘瀵規(guī)偍鏈夋墍甯姪錛屽綋鐒舵?zhèn)ㄦ湁鏇村ソ鐨勫姙娉曞拰甯冨眬錛屾榪庝竴鍧楁潵瀛︿範(fàn)錛屼氦嫻侊紝璁﹚eb鏍囧噯鍦ㄤ腑鍥藉緱鍒版洿濂界殑鍙戝睍銆傚悓鏃跺笇鏈涙?zhèn)ňlх畫(huà)鍏蟲(chóng)敞鏍囧噯涔嬭礬(www.aa25.cn)<br /> <br /> 銆銆濡傛灉鎮(zhèn)ㄨ瀹炵幇鏈煡楂樺害搴曢儴騫抽綈錛岃鍙傝?3渚?lt;br /> </div> </div> <br class="clearfloat" /> <div id="footer">This is the footer<span style="display:none"><script language="javascript" type="text/javascript" src="http://js.users.51.la/1967272.js"></script></span></div> </div> </body> </html>

聽(tīng)

css

body { font-family:Verdana; font-size:14px; margin:0;}

#container {margin:0 auto; width:100%;}
#header { height:100px; background:#9c6; margin-bottom:5px;}
#menu { height:30px; background:#693; margin-bottom:5px;}
#mainContent { background:url(bg.gif) right 0 repeat-y; overflow:auto;zoom:1; margin-bottom:5px;}
#sidebar { float:right; width:200px;background:#cf9;}
#content { margin-right:205px !important; margin-right:202px; height:auto !important; height:100px; background:#ffa;}
#footer { height:60px; background:#9c6;}
.clearfloat { clear:both; height:0; font-size: 1px; line-height: 0px;}
聽(tīng)

宸叉湁 0 浜哄彂琛ㄧ暀璦錛岀寷鍑?>>榪欓噷<<-鍙備笌璁ㄨ


ITeye鎺ㄨ崘





]]>
榪愯鍛戒護(hù)澶ф葷粨http://www.tkk7.com/caoyinghui/archive/2011/09/23/359508.htmlshine_pandashine_pandaFri, 23 Sep 2011 01:56:00 GMThttp://www.tkk7.com/caoyinghui/archive/2011/09/23/359508.htmlhttp://www.tkk7.com/caoyinghui/comments/359508.htmlhttp://www.tkk7.com/caoyinghui/archive/2011/09/23/359508.html#Feedback0http://www.tkk7.com/caoyinghui/comments/commentRss/359508.htmlhttp://www.tkk7.com/caoyinghui/services/trackbacks/359508.html

winver-媯(gè)鏌indows鐗堟湰

聽(tīng)

銆銆wmimgmt.msc鎵撳紑windows綆$悊浣撶郴緇撴瀯(WMI)

聽(tīng)

銆銆wupdmgrwindows鏇存柊紼嬪簭

聽(tīng)

銆銆wscriptwindows鑴氭湰瀹夸富璁劇疆

聽(tīng)

銆銆write鍐欏瓧鏉?/p>

聽(tīng)

銆銆winmsd-緋葷粺淇℃伅

聽(tīng)

銆銆wiaacmgr-鎵弿浠拰鐓х浉鏈哄悜瀵?/p>

聽(tīng)

銆銆winchatXP鑷甫灞鍩熺綉鑱婂ぉ

聽(tīng)

銆銆mem.exe鏄劇ず鍐呭瓨?shù)娇鐢ㄦ儏鍐?/p>

聽(tīng)

銆銆Msconfig.exe-緋葷粺閰嶇疆瀹炵敤紼嬪簭

聽(tīng)

銆銆mplayer2-綆鏄搘idnows media player

聽(tīng)

銆銆mspaint鐢誨浘鏉?/p>

聽(tīng)

銆銆mstsc榪滅▼妗岄潰榪炴帴

聽(tīng)

銆銆mplayer2-濯掍綋鎾斁鏈?/p>

聽(tīng)

銆銆magnify鏀懼ぇ闀滃疄鐢ㄧ▼搴?/p>

聽(tīng)

銆銆mmc鎵撳紑鎺у埗鍙?/p>

聽(tīng)

銆銆mobsync鍚屾鍛戒護(hù)

聽(tīng)

銆銆dxdiag-媯(gè)鏌irectX淇℃伅

聽(tīng)

銆銆drwtsn32 緋葷粺鍖葷敓

聽(tīng)

銆銆devmgmt.msc- 璁懼綆$悊鍣?/p>

聽(tīng)

銆銆dfrg.msc-紓佺洏紕庣墖鏁寸悊紼嬪簭

聽(tīng)

銆銆diskmgmt.msc-紓佺洏綆$悊瀹炵敤紼嬪簭

聽(tīng)

銆銆dcomcnfg-鎵撳紑緋葷粺緇勪歡鏈嶅姟

聽(tīng)

銆銆ddeshare-鎵撳紑DDE鍏變韓璁劇疆

聽(tīng)

銆銆dvdplayDVD鎾斁鍣?/p>

聽(tīng)

銆銆net stop messenger-鍋滄淇′嬌鏈嶅姟

聽(tīng)

銆銆net start messenger寮濮嬩俊浣挎湇鍔?/p>

聽(tīng)

銆銆notepad鎵撳紑璁頒簨鏈?/p>

聽(tīng)

銆銆nslookup-緗戠粶綆$悊鐨勫伐鍏峰悜瀵?/p>

聽(tīng)

銆銆ntbackup-緋葷粺澶囦喚鍜岃繕鍘?/p>

聽(tīng)

銆銆narrator-灞忓箷鈥滆榪頒漢鈥?/p>

聽(tīng)

銆銆ntmsmgr.msc縐誨姩瀛樺偍綆$悊鍣?/p>

聽(tīng)

銆銆ntmsoprq.msc-縐誨姩瀛樺偍綆$悊鍛樻搷浣滆姹?/p>

聽(tīng)

銆銆netstat -an(TC)鍛戒護(hù)媯(gè)鏌ユ帴鍙?/p>

聽(tīng)

銆銆syncapp鍒涘緩涓涓叕鏂囧寘

聽(tīng)

銆銆sysedit緋葷粺閰嶇疆緙栬緫鍣?/p>

聽(tīng)

銆銆sigverif-鏂囦歡絳懼悕楠岃瘉紼嬪簭

聽(tīng)

銆銆sndrec32-褰曢煶鏈?/p>

聽(tīng)

銆銆shrpubw鍒涘緩鍏變韓鏂囦歡澶?/p>

聽(tīng)

銆銆secpol.msc-鏈湴瀹夊叏絳栫暐

聽(tīng)

銆銆syskey-緋葷粺鍔犲瘑錛屼竴鏃﹀姞瀵嗗氨涓嶈兘瑙e紑錛屼繚鎶indows xp緋葷粺鐨勫弻閲嶅瘑鐮?/p>

聽(tīng)

銆銆services.msc-鏈湴鏈嶅姟璁劇疆

聽(tīng)

銆銆Sndvol32-闊抽噺鎺у埗紼嬪簭

聽(tīng)

銆銆sfc.exe緋葷粺鏂囦歡媯(gè)鏌ュ櫒

聽(tīng)

銆銆sfc /scannow-windows鏂囦歡淇濇姢

聽(tīng)

銆銆tsshutdn-60縐掑掕鏃跺叧鏈哄懡浠?/p>

聽(tīng)

銆銆tourstartxp綆浠?瀹夎瀹屾垚鍚庡嚭鐜扮殑婕父xp紼嬪簭)

聽(tīng)

銆銆taskmgr浠誨姟綆$悊鍣?/p>

聽(tīng)

銆銆eventvwr-浜嬩歡鏌ョ湅鍣?/p>

聽(tīng)

銆銆eudcedit-閫犲瓧紼嬪簭

聽(tīng)

銆銆explorer-鎵撳紑璧勬簮綆$悊鍣?/p>

聽(tīng)

銆銆packager-瀵硅薄鍖呰紼嬪簭

聽(tīng)

銆銆perfmon.msc璁$畻鏈烘ц兘鐩戞祴紼嬪簭

聽(tīng)

銆銆progman紼嬪簭綆$悊鍣?/p>

聽(tīng)

銆銆regedit.exe娉ㄥ唽琛?/p>

聽(tīng)

銆銆rsop.msc-緇勭瓥鐣ョ粨鏋滈泦

聽(tīng)

銆銆regedt32-娉ㄥ唽琛ㄧ紪杈戝櫒

聽(tīng)

銆銆rononce -p 15縐掑叧鏈?/p>

聽(tīng)

銆銆regsvr32 /u *.dll鍋滄dll鏂囦歡榪愯

聽(tīng)

銆銆regsvr32 /u zipfldr.dll鍙栨秷ZIP鏀寔

聽(tīng)

銆銆cmd.exeCMD鍛戒護(hù)鎻愮ず絎?/p>

聽(tīng)

銆銆chkdsk.exe-Chkdsk紓佺洏?gòu)個(gè)鏌?/p>

聽(tīng)

銆銆certmgr.msc璇佷功綆$悊瀹炵敤紼嬪簭

聽(tīng)

銆銆calc-鍚姩璁$畻鍣?/p>

聽(tīng)

銆銆charmap鍚姩瀛楃鏄犲皠琛?/p>

聽(tīng)

銆銆cliconfg-SQL SERVER 瀹㈡埛绔綉緇滃疄鐢ㄧ▼搴?/p>

聽(tīng)

銆銆Clipbrd鍓創(chuàng)鏉挎煡鐪嬪櫒

聽(tīng)

銆銆conf-鍚姩netmeeting

聽(tīng)

銆銆compmgmt.msc-璁$畻鏈虹鐞?/p>

聽(tīng)

銆銆cleanmgr-鍨冨溇鏁寸悊

聽(tīng)

銆銆ciadv.msc绱㈠紩鏈嶅姟紼嬪簭

聽(tīng)

銆銆osk鎵撳紑灞忓箷閿洏

聽(tīng)

銆銆odbcad32-ODBC鏁版嵁婧愮鐞嗗櫒

聽(tīng)

銆銆oobe/msoobe /a媯(gè)鏌P鏄惁嬋媧?/p>

聽(tīng)

銆銆lusrmgr.msc鏈満鐢ㄦ埛鍜岀粍

聽(tīng)

銆銆logoff-娉ㄩ攢鍛戒護(hù)

聽(tīng)

銆銆iexpress-鏈ㄩ┈鎹嗙粦宸ュ叿錛岀郴緇熻嚜甯?/p>

聽(tīng)

銆銆Nslookup-IP鍦板潃渚︽祴鍣?/p>

聽(tīng)

銆銆fsmgmt.msc-鍏變韓鏂囦歡澶圭鐞嗗櫒

聽(tīng)

銆銆utilman杈呭姪宸ュ叿綆$悊鍣?/p>

聽(tīng)

銆銆gpedit.msc-緇勭瓥鐣?/p>

聽(tīng)



宸叉湁 0 浜哄彂琛ㄧ暀璦錛岀寷鍑?>>榪欓噷<<-鍙備笌璁ㄨ


ITeye鎺ㄨ崘





]]>
java鐗堜縿緗楁柉鏂瑰潡http://www.tkk7.com/caoyinghui/archive/2011/09/08/359509.htmlshine_pandashine_pandaThu, 08 Sep 2011 09:30:00 GMThttp://www.tkk7.com/caoyinghui/archive/2011/09/08/359509.htmlhttp://www.tkk7.com/caoyinghui/comments/359509.htmlhttp://www.tkk7.com/caoyinghui/archive/2011/09/08/359509.html#Feedback0http://www.tkk7.com/caoyinghui/comments/commentRss/359509.htmlhttp://www.tkk7.com/caoyinghui/services/trackbacks/359509.html

package com.shine;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import javax.swing.*;
import javax.swing.Timer;

public class Tetris extends JFrame {
    public Tetris() {
        Tetrisblok a = new Tetrisblok();
        addKeyListener(a);
        add(a);
    }

    public static void main(String[] args) {
        Tetris frame = new Tetris();
        JMenuBar menu = new JMenuBar();
        frame.setJMenuBar(menu);
        JMenu game = new JMenu("娓告垙");
        JMenuItem newgame = game.add("鏂版父鎴?);
        JMenuItem pause = game.add("鏆傚仠");
        JMenuItem goon = game.add("緇х畫(huà)");
        JMenuItem exit = game.add("閫鍑?);
        JMenu help = new JMenu("甯姪");
        JMenuItem about = help.add("鍏充簬");
        menu.add(game);
        menu.add(help);
        frame.setLocationRelativeTo(null);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(220, 275);
        frame.setTitle("Tetris鍐呮祴鐗?);
        // frame.setUndecorated(true);
        frame.setVisible(true);
        frame.setResizable(false);

    }
}

// 鍒涘緩涓涓縿緗楁柉鏂瑰潡綾?
class Tetrisblok extends JPanel implements KeyListener {

    // blockType 浠h〃鏂瑰潡綾誨瀷
    // turnState浠h〃鏂瑰潡鐘舵?
    private int blockType;
    private int score = 0;

    private int turnState;

    private int x;

    private int y;

    private int i = 0;

    int j = 0;
    int flag = 0;
    // 瀹氫箟宸茬粡鏀句笅鐨勬柟鍧梮=0-11,y=0-21;
    int[][] map = new int[13][23];

    // 鏂瑰潡鐨勫艦鐘?絎竴緇勪唬琛ㄦ柟鍧楃被鍨嬫湁S銆乑銆丩銆丣銆両銆丱銆乀 7縐?絎簩緇?浠h〃鏃嬭漿鍑犳 絎笁鍥涚粍涓?鏂瑰潡鐭╅樀
    private final int shapes[][][] = new int[][][] {
    // i
            { { 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 },
                    { 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0 },
                    { 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 },
                    { 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0 } },
            // s
            { { 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                    { 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 },
                    { 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                    { 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 } },
            // z
            { { 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                    { 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 },
                    { 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                    { 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 } },
            // j
            { { 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0 },
                    { 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                    { 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 },
                    { 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 } },
            // o
            { { 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                    { 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                    { 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                    { 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } },
            // l
            { { 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0 },
                    { 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                    { 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 },
                    { 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 } },
            // t
            { { 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                    { 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 },
                    { 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                    { 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0 } } };

    // 鐢熸垚鏂版柟鍧楃殑鏂規(guī)硶
    public void newblock() {
        blockType = (int) (Math.random() * 1000) % 7;
        turnState = (int) (Math.random() * 1000) % 4;
        x = 4;
        y = 0;
        if (gameover(x, y) == 1) {

            newmap();
            drawwall();
            score = 0;
            JOptionPane.showMessageDialog(null, "GAME OVER");
        }
    }

    // 鐢誨洿澧?
    public void drawwall() {
        for (i = 0; i < 12; i++) {
            map[i][21] = 2;
        }
        for (j = 0; j < 22; j++) {
            map[11][j] = 2;
            map[0][j] = 2;
        }
    }

    // 鍒濆鍖栧湴鍥?
    public void newmap() {
        for (i = 0; i < 12; i++) {
            for (j = 0; j < 22; j++) {
                map[i][j] = 0;
            }
        }
    }

    // 鍒濆鍖栨瀯閫犳柟娉?
    Tetrisblok() {
        newblock();
        newmap();
        drawwall();
        Timer timer = new Timer(1000, new TimerListener());
        timer.start();
    }

    // 鏃嬭漿鐨勬柟娉?
    public void turn() {
        int tempturnState = turnState;
        turnState = (turnState + 1) % 4;
        if (blow(x, y, blockType, turnState) == 1) {
        }
        if (blow(x, y, blockType, turnState) == 0) {
            turnState = tempturnState;
        }
        repaint();
    }

    // 宸︾Щ鐨勬柟娉?
    public void left() {
        if (blow(x - 1, y, blockType, turnState) == 1) {
            x = x - 1;
        }
        ;
        repaint();
    }

    // 鍙崇Щ鐨勬柟娉?
    public void right() {
        if (blow(x + 1, y, blockType, turnState) == 1) {
            x = x + 1;
        }
        ;
        repaint();
    }

    // 涓嬭惤鐨勬柟娉?
    public void down() {
        if (blow(x, y + 1, blockType, turnState) == 1) {
            y = y + 1;
            delline();
        }
        ;
        if (blow(x, y + 1, blockType, turnState) == 0) {
            add(x, y, blockType, turnState);
            newblock();
            delline();
        }
        ;
        repaint();
    }

    // 鏄惁鍚堟硶鐨勬柟娉?
    public int blow(int x, int y, int blockType, int turnState) {
        for (int a = 0; a < 4; a++) {
            for (int b = 0; b < 4; b++) {
                if (((shapes[blockType][turnState][a * 4 + b] == 1) && (map[x
                        + b + 1][y + a] == 1))
                        || ((shapes[blockType][turnState][a * 4 + b] == 1) && (map[x
                                + b + 1][y + a] == 2))) {

                    return 0;
                }
            }
        }
        return 1;
    }

    // 娑堣鐨勬柟娉?
    public void delline() {
        int c = 0;
        for (int b = 0; b < 22; b++) {
            for (int a = 0; a < 12; a++) {
                if (map[a][b] == 1) {

                    c = c + 1;
                    if (c == 10) {
                        score += 10;
                        for (int d = b; d > 0; d--) {
                            for (int e = 0; e < 11; e++) {
                                map[e][d] = map[e][d - 1];

                            }
                        }
                    }
                }
            }
            c = 0;
        }
    }

    // 鍒ゆ柇浣犳寕鐨勬柟娉?
    public int gameover(int x, int y) {
        if (blow(x, y, blockType, turnState) == 0) {
            return 1;
        }
        return 0;
    }

    // 鎶婂綋鍓嶆坊鍔爉ap
    public void add(int x, int y, int blockType, int turnState) {
        int j = 0;
        for (int a = 0; a < 4; a++) {
            for (int b = 0; b < 4; b++) {
                if (map[x + b + 1][y + a] == 0) {
                    map[x + b + 1][y + a] = shapes[blockType][turnState][j];
                }
                ;
                j++;
            }
        }
    }

    // 鐢繪柟鍧楃殑鐨勬柟娉?
    public void paintComponent(Graphics g) {
        super.paintComponent(g);
        // 鐢誨綋鍓嶆柟鍧?
        for (j = 0; j < 16; j++) {
            if (shapes[blockType][turnState][j] == 1) {
                g.fillRect((j % 4 + x + 1) * 10, (j / 4 + y) * 10, 10, 10);
            }
        }
        // 鐢誨凡緇忓浐瀹氱殑鏂瑰潡
        for (j = 0; j < 22; j++) {
            for (i = 0; i < 12; i++) {
                if (map[i][j] == 1) {
                    g.fillRect(i * 10, j * 10, 10, 10);

                }
                if (map[i][j] == 2) {
                    g.drawRect(i * 10, j * 10, 10, 10);

                }
            }
        }
        g.drawString("score=" + score, 125, 10);
        g.drawString("鎶靛埗涓嶈壇娓告垙錛?, 125, 50);
        g.drawString("鎷掔粷鐩楃増娓告垙銆?, 125, 70);
        g.drawString("娉ㄦ剰鑷垜淇濇姢錛?, 125, 90);
        g.drawString("璋ㄩ槻鍙楅獥涓婂綋銆?, 125, 110);
        g.drawString("閫傚害娓告垙鐩婅剳錛?, 125, 130);
        g.drawString("娌夎糠娓告垙浼よ韓銆?, 125, 150);
        g.drawString("鍚堢悊瀹夋帓鏃墮棿錛?, 125, 170);
        g.drawString("浜彈鍋ュ悍鐢熸椿銆?, 125, 190);
    }

    // 閿洏鐩戝惉
    public void keyPressed(KeyEvent e) {
        switch (e.getKeyCode()) {
        case KeyEvent.VK_DOWN:
            down();
            break;
        case KeyEvent.VK_UP:
            turn();
            break;
        case KeyEvent.VK_RIGHT:
            right();
            break;
        case KeyEvent.VK_LEFT:
            left();
            break;
        }

    }

    // 鏃犵敤
    public void keyReleased(KeyEvent e) {
    }

    // 鏃犵敤
    public void keyTyped(KeyEvent e) {
    }

    // 瀹氭椂鍣ㄧ洃鍚?
    class TimerListener implements ActionListener {
        public void actionPerformed(ActionEvent e) {

            repaint();
            if (blow(x, y + 1, blockType, turnState) == 1) {
                y = y + 1;
                delline();
            }
            ;
            if (blow(x, y + 1, blockType, turnState) == 0) {

                if (flag == 1) {
                    add(x, y, blockType, turnState);
                    delline();
                    newblock();
                    flag = 0;
                }
                flag = 1;
            }
            ;
        }
    }
}
聽(tīng)杞嚜CSDN

宸叉湁 0 浜哄彂琛ㄧ暀璦錛岀寷鍑?>>榪欓噷<<-鍙備笌璁ㄨ


ITeye鎺ㄨ崘





]]>
UBB杞琀TML鍜孒TML杞琔BBhttp://www.tkk7.com/caoyinghui/archive/2011/08/31/359510.htmlshine_pandashine_pandaWed, 31 Aug 2011 06:09:00 GMThttp://www.tkk7.com/caoyinghui/archive/2011/08/31/359510.htmlhttp://www.tkk7.com/caoyinghui/comments/359510.htmlhttp://www.tkk7.com/caoyinghui/archive/2011/08/31/359510.html#Feedback0http://www.tkk7.com/caoyinghui/comments/commentRss/359510.htmlhttp://www.tkk7.com/caoyinghui/services/trackbacks/359510.html

function htmlToubb(h,u){
	str = pattern(document.getElementById(h).value);
	document.getElementById(u).value=str;
}

function ubbTohtml(u,h){
	str = up(document.getElementById(u).value);
	document.getElementById(h).value=str;
}

function pattern(str){
	str = str.replace(/<br[^>]*>/ig,'\n');
	str = str.replace(/<p[^>\/]*\/>/ig,'\n');
	str = str.replace(/\son[\w]{3,16}\s?=\s*([\'\"]).+?\1/ig,'');
	str = str.replace(/<hr[^>]*>/ig,'[hr]');
	str = str.replace(/<(sub|sup|u|strike|b|i|pre)>/ig,'[$1]');
	str = str.replace(/<\/(sub|sup|u|strike|b|i|pre)>/ig,'[/$1]');
	str = str.replace(/<(\/)?strong>/ig,'[$1b]');
	str = str.replace(/<(\/)?em>/ig,'[$1i]');
	str = str.replace(/<(\/)?blockquote([^>]*)>/ig,'[$1blockquote]');
	str = str.replace(/<img[^>]*smile=\"(\d+)\"[^>]*>/ig,'[s:$1]');
	str = str.replace(/<img[^>]*src=[\'\"\s]*([^\s\'\"]+)[^>]*>/ig,'[img]'+'$1'+'[/img]');
	str = str.replace(/<a[^>]*href=[\'\"\s]*([^\s\'\"]*)[^>]*>(.+?)<\/a>/ig,'[url=$1]'+'$2'+'[/url]');
	str = str.replace(/<[^>]*?>/ig, '');
	str = str.replace(/&amp;/ig, '&');
	str = str.replace(/&lt;/ig, '<');
	str = str.replace(/&gt;/ig, '>');
	return str;
}

function up(str){
	str = str.replace(/</ig,'&lt;');
	str = str.replace(/>/ig,'&gt;');
	str = str.replace(/\n/ig,'<br />');
	str = str.replace(/\[code\](.+?)\[\/code\]/ig, function($1, $2) {return phpcode($2);});
	str = str.replace(/\[hr\]/ig,'<hr />');
	str = str.replace(/\[\/(size|color|font|backcolor)\]/ig,'</font>');
	str = str.replace(/\[(sub|sup|u|i|strike|b|blockquote|li)\]/ig,'<$1>');
	str = str.replace(/\[\/(sub|sup|u|i|strike|b|blockquote|li)\]/ig,'</$1>');
	str = str.replace(/\[\/align\]/ig,'</p>');
	str = str.replace(/\[(\/)?h([1-6])\]/ig,'<$1h$2>');
	str = str.replace(/\[align=(left|center|right|justify)\]/ig,'<p align="$1">');
	str = str.replace(/\[size=(\d+?)\]/ig,'<font size="$1">');
	str = str.replace(/\[color=([^\[\<]+?)\]/ig, '<font color="$1">');
	str = str.replace(/\[backcolor=([^\[\<]+?)\]/ig, '<font style="background-color:$1">');
	str = str.replace(/\[font=([^\[\<]+?)\]/ig, '<font face="$1">');
	str = str.replace(/\[list=(a|A|1)\](.+?)\[\/list\]/ig,'<ol type="$1">$2</ol>');
	str = str.replace(/\[(\/)?list\]/ig,'<$1ul>');
	str = str.replace(/\[s:(\d+)\]/ig,function($1,$2){ return smilepath($2);});
	str = str.replace(/\[img\]([^\[]*)\[\/img\]/ig,'<img src="$1" border="0" />');
	str = str.replace(/\[url=([^\]]+)\]([^\[]+)\[\/url\]/ig, '<a href="$1">'+'$2'+'</a>');
	str = str.replace(/\[url\]([^\[]+)\[\/url\]/ig, '<a href="$1">'+'$1'+'</a>');
	return str;
}
聽(tīng)

宸叉湁 0 浜哄彂琛ㄧ暀璦錛岀寷鍑?>>榪欓噷<<-鍙備笌璁ㄨ


ITeye鎺ㄨ崘





]]>
Win7涓嬫棤娉曟樉紺篊ourier New瀛椾綋http://www.tkk7.com/caoyinghui/archive/2011/08/05/359511.htmlshine_pandashine_pandaFri, 05 Aug 2011 11:30:00 GMThttp://www.tkk7.com/caoyinghui/archive/2011/08/05/359511.htmlhttp://www.tkk7.com/caoyinghui/comments/359511.htmlhttp://www.tkk7.com/caoyinghui/archive/2011/08/05/359511.html#Feedback0http://www.tkk7.com/caoyinghui/comments/commentRss/359511.htmlhttp://www.tkk7.com/caoyinghui/services/trackbacks/359511.htmlPL/SQL 鎴朥E涓繘琛岃緗椂鍙戠幇錛屾壘涓嶅埌Courier New

瀛椾綋銆傞噸瑁呬篃娌′綔鐢ㄣ?/p>

鏍規(guī)湰鍘熷洜鏄病鏈夊皢聽(tīng)Courier New 璁劇疆涓衡滄樉紺衡?/p>




宸叉湁 0 浜哄彂琛ㄧ暀璦錛岀寷鍑?>>榪欓噷<<-鍙備笌璁ㄨ


ITeye鎺ㄨ崘





]]>
UE鍦╓in7涓嬫坊鍔犲彸閿彍鍗?/title><link>http://www.tkk7.com/caoyinghui/archive/2011/07/30/359512.html</link><dc:creator>shine_panda</dc:creator><author>shine_panda</author><pubDate>Sat, 30 Jul 2011 02:39:00 GMT</pubDate><guid>http://www.tkk7.com/caoyinghui/archive/2011/07/30/359512.html</guid><wfw:comment>http://www.tkk7.com/caoyinghui/comments/359512.html</wfw:comment><comments>http://www.tkk7.com/caoyinghui/archive/2011/07/30/359512.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/caoyinghui/comments/commentRss/359512.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/caoyinghui/services/trackbacks/359512.html</trackback:ping><description><![CDATA[ <p> </p> <p>Windows Registry Editor Version 5.00</p> <p>聽(tīng)</p> <p>[HKEY_CLASSES_ROOT\*\shell]</p> <p>[HKEY_CLASSES_ROOT\*\shell\UltraEdit]</p> <p>@="UltraEdit-32"</p> <p>[HKEY_CLASSES_ROOT\*\shell\UltraEdit\Command]</p> <p>@="C:\\Program Files (x86)\\IDM Computer Solutions\\UltraEdit\\Uedit32.exe %1"</p> <div><br></div> <div><br></div> <div>C:\\Program Files (x86)\\IDM Computer Solutions\\UltraEdit\\Uedit32.exe榪欎釜鏀逛負(fù)瀹為檯璺緞</div> <div><br></div> <br/><br/> <span style="color:red;"> <a style="color:red;">宸叉湁 <strong>0</strong> 浜哄彂琛ㄧ暀璦錛岀寷鍑?>><strong>榪欓噷</strong><<-鍙備笌璁ㄨ</a> </span> <br/><br/><br/> <span style="color:#E28822;">ITeye鎺ㄨ崘</span> <br/> <ul><li><a href='/clicks/433' target='_blank'><span style="color:red;font-weight:bold;">鈥旇蔣浠朵漢鎵嶅厤璇█浣庢媴淇?璧寸編甯﹁柂璇葷爺錛佲?</span></a></li></ul> <br/><br/><br/> <img src ="http://www.tkk7.com/caoyinghui/aggbug/359512.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/caoyinghui/" target="_blank">shine_panda</a> 2011-07-30 10:39 <a href="http://www.tkk7.com/caoyinghui/archive/2011/07/30/359512.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://plladay.com" target="_blank">久久久精品2019免费观看</a>| <a href="http://aqddv.com" target="_blank">青青青视频免费观看</a>| <a href="http://qestest.com" target="_blank">亚洲一区免费在线观看</a>| <a href="http://djyvp32.com" target="_blank">亚洲尹人九九大色香蕉网站</a>| <a href="http://linmh.com" target="_blank">久久免费美女视频</a>| <a href="http://zhaoav7.com" target="_blank">亚洲天堂久久精品</a>| <a href="http://yes5555.com" target="_blank">亚洲国产精品免费观看</a>| <a href="http://gnebs.com" target="_blank">亚洲小说图区综合在线</a>| <a href="http://426366.com" target="_blank">我想看一级毛片免费的</a>| <a href="http://dstbxg.com" target="_blank">国产成人高清亚洲一区91</a>| <a href="http://by4471.com" target="_blank">亚洲精品人成无码中文毛片</a>| <a href="http://7t53.com" target="_blank">国产va免费精品</a>| <a href="http://fanhaogo.com" target="_blank">亚洲今日精彩视频</a>| <a href="http://changfafangzhi.com" target="_blank">69pao强力打造免费高清</a>| <a href="http://nzzys.com" target="_blank">精品亚洲AV无码一区二区三区</a>| <a href="http://www4jbd.com" target="_blank">性做久久久久久免费观看</a>| <a href="http://yx6768.com" target="_blank">亚洲精品久久久久无码AV片软件</a>| <a href="http://0551dfcy.com" target="_blank">国产一区二区三区免费在线观看</a>| <a href="http://918989b.com" target="_blank">免费看一级高潮毛片</a>| <a href="http://youyou8tv.com" target="_blank">国产国拍亚洲精品mv在线观看</a>| <a href="http://njjngs.com" target="_blank">亚洲精品视频在线观看免费</a>| <a href="http://hivzx.com" target="_blank">亚洲色偷偷综合亚洲AV伊人蜜桃</a>| <a href="http://adcadm.com" target="_blank">免费成人午夜视频</a>| <a href="http://aaaaa123.com" target="_blank">成全高清在线观看免费</a>| <a href="http://71caoxee.com" target="_blank">亚洲的天堂av无码</a>| <a href="http://xjkakatong.com" target="_blank">国产精品色午夜视频免费看</a>| <a href="http://sky233.com" target="_blank">黄桃AV无码免费一区二区三区</a>| <a href="http://chuoche.com" target="_blank">亚洲成人午夜在线</a>| <a href="http://26uuyy.com" target="_blank">女人18毛片水真多免费看</a>| <a href="http://gdporun.com" target="_blank">皇色在线免费视频</a>| <a href="http://www-554949.com" target="_blank">亚洲国产美女精品久久</a>| <a href="http://kingco-glaze.com" target="_blank">国产美女无遮挡免费视频网站</a>| <a href="http://jack-fx.com" target="_blank">黄桃AV无码免费一区二区三区</a>| <a href="http://am33318.com" target="_blank">亚洲一级黄色大片</a>| <a href="http://f2dai.com" target="_blank">久久久久一级精品亚洲国产成人综合AV区 </a>| <a href="http://lswqn.com" target="_blank">国产成人精品男人免费</a>| <a href="http://yuezhaoming.com" target="_blank">国产V片在线播放免费无码 </a>| <a href="http://bjmyhfc.com" target="_blank">亚洲第一永久AV网站久久精品男人的天堂AV </a>| <a href="http://fense1.com" target="_blank">中文字幕免费在线看线人动作大片</a>| <a href="http://hylaowu.com" target="_blank">亚洲国产天堂在线观看</a>| <a href="http://9156892.com" target="_blank">色www永久免费视频</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>