caoyinghui

          2011年8月31日

          css+div布局

          <!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列右側(cè)固定左側(cè)自適應(yīng)寬度,未知高度且底部平齊+頭部+導航+尾部——<a >標準之路www.aa25.cn</a></title>
          <link href="layout.css" rel="stylesheet" type="text/css" />
          <meta name="Keywords" content="標準之路,www.aa25.cn,網(wǎng)頁標準布局,DIV+CSS" />
          <meta name="" content="標準之路,www.aa25.cn,網(wǎng)頁標準布局,DIV+CSS" />
          <meta name="author" content"×××,有問題請到www.68css.cn網(wǎng)站留言" />
          <meta name="Description" content="本套網(wǎng)頁標準布局模板是由標準之路(www.aa25.cn)制作完成,如果您要轉(zhuǎn)載,請保留版權(quá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列右側(cè)固定左側(cè)自適應(yīng)寬度,未知高度且底部平齊+頭部+導航+尾部——<a >標準之路www.aa25.cn</a><br />
                <br />
                本例和例21差不多,一個是固定寬度,一個是自適應(yīng),同樣是未知高度。<br />
                <br />
                此例中需要說明一點的是:當content設(shè)定高度后,3像素會跑到content外側(cè),反之,在content內(nèi)部。這樣,我們用!important修正在ie下向左多浮動2像素,加上3像素的bug正好是5像素,所以在火狐和IE下顯示是一樣的,這是大家必須注意的一點。而當content設(shè)定高度后,如100px,那么在IE6下,當高度超過100px時,它會自動把conent撐高,而火狐去不會。所以用!important修正在IE下設(shè)定高度值使它的3像素跑到外側(cè),火狐下因不存在3像素問題,所以高度自動。<br />
                <br />
                <br />
            總之,實現(xiàn)的方法是多種多樣的,這只是本人在學習過程中總結(jié)的一點經(jīng)驗,權(quán)當拋磚引玉,希望能對您有所幫助,當然您有更好的辦法和布局,歡迎一塊來學習,交流,讓web標準在中國得到更好的發(fā)展。同時希望您繼續(xù)關(guān)注標準之路(www.aa25.cn)<br />
          <br />
            如果您要實現(xiàn)未知高度底部平齊,請參考23例<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>
          

          ?

          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;}
          ?

          已有 0 人發(fā)表留言,猛擊->>這里<<-參與討論


          ITeye推薦



          posted @ 2011-09-26 14:10 shine_panda 閱讀(185) | 評論 (0)編輯 收藏

          運行命令大總結(jié)

          winver-檢查Windows版本

          ?

            wmimgmt.msc打開windows管理體系結(jié)構(gòu)(WMI)

          ?

            wupdmgrwindows更新程序

          ?

            wscriptwindows腳本宿主設(shè)置

          ?

            write寫字板

          ?

            winmsd-系統(tǒng)信息

          ?

            wiaacmgr-掃描儀和照相機向?qū)?/p>

          ?

            winchatXP自帶局域網(wǎng)聊天

          ?

            mem.exe顯示內(nèi)存使用情況

          ?

            Msconfig.exe-系統(tǒng)配置實用程序

          ?

            mplayer2-簡易widnows media player

          ?

            mspaint畫圖板

          ?

            mstsc遠程桌面連接

          ?

            mplayer2-媒體播放機

          ?

            magnify放大鏡實用程序

          ?

            mmc打開控制臺

          ?

            mobsync同步命令

          ?

            dxdiag-檢查DirectX信息

          ?

            drwtsn32 系統(tǒng)醫(yī)生

          ?

            devmgmt.msc- 設(shè)備管理器

          ?

            dfrg.msc-磁盤碎片整理程序

          ?

            diskmgmt.msc-磁盤管理實用程序

          ?

            dcomcnfg-打開系統(tǒng)組件服務(wù)

          ?

            ddeshare-打開DDE共享設(shè)置

          ?

            dvdplayDVD播放器

          ?

            net stop messenger-停止信使服務(wù)

          ?

            net start messenger開始信使服務(wù)

          ?

            notepad打開記事本

          ?

            nslookup-網(wǎng)絡(luò)管理的工具向?qū)?/p>

          ?

            ntbackup-系統(tǒng)備份和還原

          ?

            narrator-屏幕“講述人”

          ?

            ntmsmgr.msc移動存儲管理器

          ?

            ntmsoprq.msc-移動存儲管理員操作請求

          ?

            netstat -an(TC)命令檢查接口

          ?

            syncapp創(chuàng)建一個公文包

          ?

            sysedit系統(tǒng)配置編輯器

          ?

            sigverif-文件簽名驗證程序

          ?

            sndrec32-錄音機

          ?

            shrpubw創(chuàng)建共享文件夾

          ?

            secpol.msc-本地安全策略

          ?

            syskey-系統(tǒng)加密,一旦加密就不能解開,保護windows xp系統(tǒng)的雙重密碼

          ?

            services.msc-本地服務(wù)設(shè)置

          ?

            Sndvol32-音量控制程序

          ?

            sfc.exe系統(tǒng)文件檢查器

          ?

            sfc /scannow-windows文件保護

          ?

            tsshutdn-60秒倒計時關(guān)機命令

          ?

            tourstartxp簡介(安裝完成后出現(xiàn)的漫游xp程序)

          ?

            taskmgr任務(wù)管理器

          ?

            eventvwr-事件查看器

          ?

            eudcedit-造字程序

          ?

            explorer-打開資源管理器

          ?

            packager-對象包裝程序

          ?

            perfmon.msc計算機性能監(jiān)測程序

          ?

            progman程序管理器

          ?

            regedit.exe注冊表

          ?

            rsop.msc-組策略結(jié)果集

          ?

            regedt32-注冊表編輯器

          ?

            rononce -p 15秒關(guān)機

          ?

            regsvr32 /u *.dll停止dll文件運行

          ?

            regsvr32 /u zipfldr.dll取消ZIP支持

          ?

            cmd.exeCMD命令提示符

          ?

            chkdsk.exe-Chkdsk磁盤檢查

          ?

            certmgr.msc證書管理實用程序

          ?

            calc-啟動計算器

          ?

            charmap啟動字符映射表

          ?

            cliconfg-SQL SERVER 客戶端網(wǎng)絡(luò)實用程序

          ?

            Clipbrd剪貼板查看器

          ?

            conf-啟動netmeeting

          ?

            compmgmt.msc-計算機管理

          ?

            cleanmgr-垃圾整理

          ?

            ciadv.msc索引服務(wù)程序

          ?

            osk打開屏幕鍵盤

          ?

            odbcad32-ODBC數(shù)據(jù)源管理器

          ?

            oobe/msoobe /a檢查XP是否激活

          ?

            lusrmgr.msc本機用戶和組

          ?

            logoff-注銷命令

          ?

            iexpress-木馬捆綁工具,系統(tǒng)自帶

          ?

            Nslookup-IP地址偵測器

          ?

            fsmgmt.msc-共享文件夾管理器

          ?

            utilman輔助工具管理器

          ?

            gpedit.msc-組策略

          ?



          已有 0 人發(fā)表留言,猛擊->>這里<<-參與討論


          ITeye推薦



          posted @ 2011-09-23 09:56 shine_panda 閱讀(174) | 評論 (0)編輯 收藏

          java版俄羅斯方塊

          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("繼續(xù)");
                  JMenuItem exit = game.add("退出");
                  JMenu help = new JMenu("幫助");
                  JMenuItem about = help.add("關(guān)于");
                  menu.add(game);
                  menu.add(help);
                  frame.setLocationRelativeTo(null);
                  frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                  frame.setSize(220, 275);
                  frame.setTitle("Tetris內(nèi)測版");
                  // frame.setUndecorated(true);
                  frame.setVisible(true);
                  frame.setResizable(false);
          
              }
          }
          
          // 創(chuàng)建一個俄羅斯方塊類
          class Tetrisblok extends JPanel implements KeyListener {
          
              // blockType 代表方塊類型
              // turnState代表方塊狀態(tài)
              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;
              // 定義已經(jīng)放下的方塊x=0-11,y=0-21;
              int[][] map = new int[13][23];
          
              // 方塊的形狀 第一組代表方塊類型有S、Z、L、J、I、O、T 7種 第二組 代表旋轉(zhuǎn)幾次 第三四組為 方塊矩陣
              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 } } };
          
              // 生成新方塊的方法
              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;
                      }
                  }
              }
          
              // 初始化構(gòu)造方法
              Tetrisblok() {
                  newblock();
                  newmap();
                  drawwall();
                  Timer timer = new Timer(1000, new TimerListener());
                  timer.start();
              }
          
              // 旋轉(zhuǎn)的方法
              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;
              }
          
              // 把當前添加map
              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);
                      }
                  }
                  // 畫已經(jīng)固定的方塊
                  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);
              }
          
              // 鍵盤監(jiān)聽
              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) {
              }
          
              // 定時器監(jiān)聽
              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;
                      }
                      ;
                  }
              }
          }
          ?轉(zhuǎn)自CSDN

          已有 0 人發(fā)表留言,猛擊->>這里<<-參與討論


          ITeye推薦



          posted @ 2011-09-08 17:30 shine_panda 閱讀(175) | 評論 (0)編輯 收藏

          UBB轉(zhuǎn)HTML和HTML轉(zhuǎn)UBB

          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;
          }
          
          ?

          已有 0 人發(fā)表留言,猛擊->>這里<<-參與討論


          ITeye推薦



          posted @ 2011-08-31 14:09 shine_panda 閱讀(694) | 評論 (0)編輯 收藏

          <2011年8月>
          31123456
          78910111213
          14151617181920
          21222324252627
          28293031123
          45678910

          導航

          統(tǒng)計

          常用鏈接

          留言簿

          隨筆檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 伊金霍洛旗| 玉山县| 北安市| 皋兰县| 南乐县| 诸暨市| 都匀市| 鄂托克旗| 岑溪市| 新化县| 沙田区| 金门县| 镇远县| 张掖市| 吉木萨尔县| 姜堰市| 正定县| 河东区| 大庆市| 富顺县| 潢川县| 荔浦县| 平潭县| 黄浦区| 平山县| 中江县| 福州市| 阿拉善左旗| 集贤县| 永川市| 衡阳市| 简阳市| 大埔县| 宾阳县| 滦南县| 达州市| 康保县| 闽侯县| 伊川县| 潼南县| 永德县|