基于Ajax的五子棋演示

今天到sf.net上看到MagicAjax的新版本,以前没用过它,看名字象是挺不错,看了一下例子发现使用它开发确实简单,具体应用可以看它的demo。
<ajax:AjaxPanel id="AjaxPanel1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 8px" runat="server"
     CssClass="panelClass">
..........在此之间,可以放.net的web组件
</ajax:AjaxPanel>

为了测试它的功能,用它写了个五子棋的小程序;见图和代码(包含完整工程和magicajax源码):


下载地址:
/Files/Chinasf/ajaxFiveStones.rar
posted @ 2005-12-21 16:44 萧寒 阅读(5307) 评论(9)  编辑 收藏 所属分类: .NET WebForms

  回复  引用  查看    
#1楼 2005-12-21 20:58 | neuhawk      
MagicAjax是个好东西.

  回复  引用  查看    
#2楼 2005-12-21 21:45 | 铱星      
刷新挺严重的
  回复  引用  查看    
#3楼 [楼主]2005-12-21 23:57 | 萧寒      
@ neuhawk
MagicAjax 对web组件得透明支持,确实让我觉得不错。

@ 铱星

确实,到fireFox下,由于css得一些定义不是标准得,看起来有问题;刷新也很明显;
而Opera 9则效果不错,和ie6水平差不多。

制作这个是完全采用MagicAjax 得‘傻瓜式’开发,每次回调其实是把整个棋盘得区域进行刷新;

我想,加入自己写段脚本实现,效率肯定比它好,但是比较麻烦;各有所失了。
  回复  引用    
#4楼 2005-12-22 08:43 | 高祥 [未注册用户]
to all
很早在51.js的压缩包中就有用javascript写的五子棋游戏了,需要的可以去下载一下。
  回复  引用  查看    
#5楼 2005-12-26 16:23 | 孔夫子      
楼上!!?Opera最新是8.5吧,你的9哪搞得啊?
  回复  引用  查看    
#6楼 [楼主]2005-12-26 18:59 | 萧寒      
Opera 9 你去google 搜索一下吧;
 
 

版本信息

版本 9.0
编制 8031
平台 Win32
系统 Windows 2000
 
Java Sun Java Runtime Environment version 1.4
XHTML+语音 插件未装入

路径

首选项 C:\Documents and Settings\Administrator\Application Data\Opera\Opera\profile\opera6.ini
保存的窗口 C:\Documents and Settings\Administrator\Application Data\Opera\Opera\profile\opera.win
书签 C:\Documents and Settings\Administrator\Application Data\Opera\Opera\profile\opera6.adr
 
Opera 目录 C:\Documents and Settings\Administrator\Application Data\Opera\Opera\profile\
缓存 C:\Documents and Settings\Administrator\Application Data\Opera\Opera\profile\cache4\
邮件目录 C:\Documents and Settings\Administrator\Application Data\Opera\Opera\mail\
帮助文档 http://help.opera.com/
 
插件路径 D:\s.常用软件\[传说黑客用的浏览器].Opera\Opera\Opera\program\plugins
用户 JavaScript 文件

第三方

  • This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. Copyright © 1998-2001 The OpenSSL Project. All rights reserved.
  • This product includes cryptographic software written by Eric Young. Copyright © 1995-1998 Eric Young
  • This product includes software developed by the University of California, Berkeley and its contributors
  • Zlib compression library, developed by Jean-loup Gailly and Mark Adler
  • James Clark
  • Eberhard Mattes
  • Number-to-string and string-to-number conversions are covered by the following notice:
    The author of this software is David M. Gay.

    Copyright (c) 1991, 2000, 2001 by Lucent Technologies.

    Permission to use, copy, modify, and distribute this software for any purpose without fee is hereby granted, provided that this entire notice is included in all copies of any software which is or includes a copy or modification of this software and in all copies of the supporting documentation for such software.

    THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED WARRANTY. IN PARTICULAR, NEITHER THE AUTHOR NOR LUCENT MAKES ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
  • expat is covered by the following license:
    Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • The Elektrans
  • Nice Graphics™ by Pål Syvertsen, Flott Altså

Opera 软件公司非常感谢以上个人和团体,及其开发的软件代码。


  回复  引用  查看    
#7楼 2006-01-16 13:38 | Boler Guo      
试了一下,刷新是挺严重的~
  回复  引用    
#8楼 2006-04-15 16:14 | chenlila [未注册用户]
楼主帮帮忙运行一下程序,实在看不懂呀
楼主帮帮忙运行一下程序,实在看不懂呀
楼主帮帮忙运行一下程序,实在看不懂呀
楼主帮帮忙运行一下程序,实在看不懂呀
楼主帮帮忙运行一下程序,实在看不懂呀

  回复  引用  查看    
#9楼 2006-04-19 01:11 | S.F.      
@ chenlila

可以把你不懂的地方列出来,我帮你解释一下.

标题  
姓名  
主页
Email (只有博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
该文被作者在 2005-12-22 09:32 编辑过


相关链接: