`
zyn010101
  • 浏览: 325087 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

码农的浪漫(js写的'老婆生日快乐'特效)

阅读更多
一直被老婆抱怨不懂浪漫,老婆的生日又来了,老婆指着闺蜜空间上贴的老公做的胡萝卜心形浪漫晚餐告诉我:必须送她一份用心的礼物。我绞尽脑汁想出这么一法子,还是得用我们码农的独特方式,经过一天多的努力,终于做完了,来给大家晒一下,一共三个特效 1,六个字单列从右侧飞入;2,六个字闪烁;3,六个字连续从右侧飞入(类似电子字幕的滚动特效)下面有附件,大家轻拍。基本原理,生成一个20行20列的table,400个小格子当屏幕,按照每个字的形状生成0,1数组,如果单元格需要显示,填入心形图片,否则填充透明图片,动画的时候一帧即为1个长度为400的数据,一共5*6+120*20+210*6帧*400个0和1,:










目前只在ie8下测试通过,



  <title> 老婆,生日快乐! </title>&lt;meta name="Generator" content="EditPlus"&gt;
&lt;meta name="Author" content=""&gt;
&lt;meta name="Keywords" content=""&gt;
&lt;meta name="Description" content=""&gt;
&lt;!-- &lt;bgsound src="生日快乐歌.mp3" loop="-1"&gt;--&gt;<table id="t">
<tr>
<td class="td" width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
</tr>
<tr>
<td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
</tr>
<tr>
<td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
</tr>
<tr>
<td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
</tr>
<tr>
<td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
</tr>
<tr>
<td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
</tr>
<tr>
<td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
</tr>
<tr>
<td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
</tr>
<tr>
<td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
</tr>
<tr>
<td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
</tr>
<tr>
<td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
</tr>
<tr>
<td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
</tr>
<tr>
<td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
</tr>
<tr>
<td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
</tr>
<tr>
<td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
</tr>
<tr>
<td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
</tr>
<tr>
<td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
</tr>
<tr>
<td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
</tr>
<tr>
<td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
</tr>
<tr>
<td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
  <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
    <td width="20px" height="20px"> <img width="20px" height="20px" src="b.jpg">
</td>
</tr>
</table>&lt;script&gt;
  //定时器
function Sleeper()

{

  var self = this;
  self.step    = 0;
  self.actions = [];
  self.ts = [];
  self.push = function(func,t) {
    self.actions.push(func);
    self.ts.push(t);
    return self;
  }
  self.run_next = function() {

    if (self.step &lt; self.actions.length) {

      var action = self.actions[self.step];

      action();
   ++self.step;
  setTimeout(self.run_next, self.ts[self.step]);
    

    

    }

  }

  self.run = function() {

    self.run_next();

  }

  return self;

}
//汉字排列
var lao ='0,0,0,0,0,0,0,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0';
var  po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A = le.split(',');
var laoA = lao.split(',');
var poA = po.split(',');

var colArr = new Array();

//把汉字的0、1排列换算成纵向的数组,为横向滚动做准备
function leftScroll(zi){
var a1=new Array(20);
var a2=new Array(20);
var a3=new Array(20);
var a4=new Array(20);
var a5=new Array(20);
var a6=new Array(20);
var a7=new Array(20);
var a8=new Array(20);
var a9=new Array(20);
var a10=new Array(20);
var a11=new Array(20);
var a12=new Array(20);
var a13=new Array(20);
var a14=new Array(20);
var a15=new Array(20);
var a16=new Array(20);
var a17=new Array(20);
var a18=new Array(20);
var a19=new Array(20);
var a20=new Array(20);
for(var i=0;i&lt;20;i++){
a1[i]=zi[i*20+0];
a2[i]=zi[i*20+1];
a3[i]=zi[i*20+2];
a4[i]=zi[i*20+3];
a5[i]=zi[i*20+4];
a6[i]=zi[i*20+5];
a7[i]=zi[i*20+6];
a8[i]=zi[i*20+7];
a9[i]=zi[i*20+8];
a10[i]=zi[i*20+9];
a11[i]=zi[i*20+10];
a12[i]=zi[i*20+11];
a13[i]=zi[i*20+12];
a14[i]=zi[i*20+13];
a15[i]=zi[i*20+14];
a16[i]=zi[i*20+15];
a17[i]=zi[i*20+16];
a18[i]=zi[i*20+17];
a19[i]=zi[i*20+18];
a20[i]=zi[i*20+19];
}
colArr.push(a1);
colArr.push(a2);
colArr.push(a3);
colArr.push(a4);
colArr.push(a5);
  colArr.push(a6);
colArr.push(a7);
colArr.push(a8);
colArr.push(a9);
colArr.push(a10);
  colArr.push(a11);
colArr.push(a12);
colArr.push(a13);
colArr.push(a14);
colArr.push(a15);
  colArr.push(a16);
colArr.push(a17);
colArr.push(a18);
colArr.push(a19);
colArr.push(a20);
}

//老婆生日快乐六个子各自闪烁3次,5*6帧
function addShan(s){
s.push(new Function(getfunctionStr('laoA')),250);
s.push(new Function(getClearStr()),250);
s.push(new Function(getfunctionStr('laoA')),250);
s.push(new Function(getClearStr()),250);
s.push(new Function(getfunctionStr('laoA')),250);

s.push(new Function(getClearStr()),1500);
s.push(new Function(getfunctionStr('poA')),250);
s.push(new Function(getClearStr()),250);
s.push(new Function(getfunctionStr('poA')),250);
s.push(new Function(getClearStr()),250);
s.push(new Function(getfunctionStr('poA')),250);

s.push(new Function(getClearStr()),1500);
s.push(new Function(getfunctionStr('shengA')),250);
s.push(new Function(getClearStr()),250);
s.push(new Function(getfunctionStr('shengA')),250);
s.push(new Function(getClearStr()),250);
s.push(new Function(getfunctionStr('shengA')),250);

s.push(new Function(getClearStr()),1500);
s.push(new Function(getfunctionStr('riA')),250);
s.push(new Function(getClearStr()),250);
s.push(new Function(getfunctionStr('riA')),250);
s.push(new Function(getClearStr()),250);
s.push(new Function(getfunctionStr('riA')),250);

s.push(new Function(getClearStr()),1500);
s.push(new Function(getfunctionStr('kuaiA')),250);
s.push(new Function(getClearStr()),250);
s.push(new Function(getfunctionStr('kuaiA')),250);
s.push(new Function(getClearStr()),250);
s.push(new Function(getfunctionStr('kuaiA')),250);

s.push(new Function(getClearStr()),1500);
s.push(new Function(getfunctionStr('leA')),250);
s.push(new Function(getClearStr()),250);
s.push(new Function(getfunctionStr('leA')),250);
s.push(new Function(getClearStr()),250);
s.push(new Function(getfunctionStr('leA')),250);
}

var nArr = new Array();
function loop(){
var s = new Sleeper();
//每个字的纵列单列从右飞到左侧,一共210*6帧
for(var i=0;i&lt;nArr.length;i++){
if(i&gt;0 &amp;&amp; (i%210==0)){
s.push(new Function(getClearStr()),1500);
}
s.push(new Function(getfunctionStr('nArr['+i+']')),100);
// s.push(new Function(getClearStr()),100);
}

addShan(s);
s.push(new Function(getClearStr()),1500);
for(var i=0;i&lt;colArr.length;i++){
s.push(new Function(getZi(i)),280);
}





s.run();
}
 
//清除图片 
function getClearStr(){
return "for(var i=0;i&lt;400;i++){ cells[i].firstChild.src='b.jpg';}";
}
//根据字的0,1排列更新画面
function getfunctionStr(arr){
return "for(var i=0;i&lt;400;i++){if("+arr+"[i]==1){cells[i].firstChild.src='h.gif';}else{ cells[i].firstChild.src='b.jpg'}}";
}

function getZi(n){
return "for(var i=0;i&lt;400;i++){ var yu = i%20; var shang = parseInt(i/20); if(yu+"+n+"&gt;=19){ if(colArr[yu+"+n+"-19][shang]==1){ cells[i].firstChild.src='h.gif';}else{cells[i].firstChild.src='b.jpg'; } }}";
}

//获取一个字的第n列的第m帧的0,1排列
function getLeft(zi,colIndex,zhenIndex){
var leftArr = new Array(400);

for(var i=0;i&lt;400;i++){
leftArr[i]=0;
var shang = parseInt(i/20);
var yu = i%20;
if(yu==(19-zhenIndex) ){
leftArr[i] = zi[shang*20+colIndex];
}else if(yu&lt;(19-zhenIndex)){
if(yu&lt;(colIndex)){
leftArr[i] = zi[i];
}
   
}
}
nArr.push(leftArr);
}

leftScroll(laoA);
leftScroll(poA);
leftScroll(shengA);
leftScroll(riA);
leftScroll(kuaiA);
leftScroll(leA);

for(var i=0;i&lt;20;i++){
for(var ii=0;ii&lt;(20-i);ii++){
getLeft(laoA,i,ii);
}
}
for(var i=0;i&lt;20;i++){
for(var ii=0;ii&lt;(20-i);ii++){
getLeft(poA,i,ii);
}
}
for(var i=0;i&lt;20;i++){
for(var ii=0;ii&lt;(20-i);ii++){
getLeft(shengA,i,ii);
}
}
for(var i=0;i&lt;20;i++){
for(var ii=0;ii&lt;(20-i);ii++){
getLeft(riA,i,ii);
}
}
for(var i=0;i&lt;20;i++){
for(var ii=0;ii&lt;(20-i);ii++){
getLeft(kuaiA,i,ii);
}
}
for(var i=0;i&lt;20;i++){
for(var ii=0;ii&lt;(20-i);ii++){
getLeft(leA,i,ii);
}
}

loop();


  &lt;/script&gt;



  • 大小: 44.3 KB
  • 大小: 38.2 KB
  • 大小: 39.8 KB
  • 大小: 39.5 KB
  • 大小: 27.1 KB
3
0
分享到:
评论
5 楼 nannan408 2014-07-24  
对你的浪漫还是要支持下,但这 代码 。。
4 楼 justjavac 2013-11-18  
http://www.zhihu.com/question/21082867/answer/17128890
3 楼 airball 2013-11-16  
不负码农之名。
2 楼 zyn010101 2013-11-16  
cgs1999 写道
心意很好 ,不过忍不住还是要说两句,这抓图效果太差 ,代码也比较菜 ,考虑优化一下相关的代码

已经把老婆哄高兴了,哈哈
1 楼 cgs1999 2013-11-16  
心意很好 ,不过忍不住还是要说两句,这抓图效果太差 ,代码也比较菜 ,考虑优化一下相关的代码

相关推荐

    码农杂志第2期

    图灵写给程序员的免费电子杂志《码农》,第二期,欢迎下载

    码农杂志第1期

    《码农》杂志是针对程序员和IT从业者推出的一份免费电子读物,旨在分享最新的技术趋势、实用的编程技巧以及行业内的深度洞察。第一期的发布标志着这个平台为程序员提供了丰富的学习资源和交流空间。 在《码农》杂志...

    码农杂志第3期

    图灵写给程序员的免费电子杂志《码农》,第三期,欢迎下载

    码农第一期

    码农的草帽底下,是一颗充满创造力的自由不羁的头脑。 他们遵从最佳实践而痛恨陈规教条,他们欣赏天才而不迷信权威,他们喜欢思考而不轻易苟同。他们是技术人,却追求人文理想;他们敢于呐喊,说出自己的观点和...

    《码农》1-4期

    该文件包含了图灵社区出版的《码农》第一期到第四期的杂志。上面介绍了各种算法,访谈和IT行业的方方面面,致力于IT行业的可以看看。 码农的草帽底下,是一颗充满创造力的自由不羁的头脑。 他们遵从最佳实践而...

    码农 杂志1-3期

    1. 编程语言:《码农》可能会深入探讨当前流行的编程语言,如Java、Python、C++、JavaScript等,包括它们的最新版本特性、应用场景、学习资源以及最佳实践。对于初学者,可能会有基础语法和进阶技巧的介绍;对于经验...

    码农杂志第6期

    2. **编程语言**:《码农》可能深入探讨一种或多种主流编程语言的新特性、优化技巧或最佳实践,例如Java、Python、JavaScript、Go等。了解这些内容可以提升程序员的编码效率和代码质量。 3. **框架与库**:在软件...

    码农杂志第7期

    图灵写给程序员的免费电子杂志《码农》,第七期,欢迎下载

    简洁自适应个人码农主页源码_简洁自适应个人码农主页源码_

    【简洁自适应个人码农主页源码】是一个专为个人码农设计的静态网页源代码,旨在提供一个简单、响应式且高效的展示平台。这款源码的特点在于其纯HTML结构,这意味着它不依赖JavaScript或其他复杂的客户端脚本语言,...

    码农那种周刊知识整理.zip

    码农那种周刊知识整理.zip,码农周刊整理

    码农翻身.xmind

    码农翻身,自己的xmind类型的读书笔记,大家如果需要可以自行下载。当前文件对应我博客中的读书笔记内容

    《码农翻身》第二章 Java帝国.emmx

    你最爱的Java 搞懂了这几点,你就学会了Web编程 Spring本质系列(1) -- 依赖注入 Spring本质系列(2) -- AOP 三层架构和MVC那点事儿 Java帝国之拨云见日识回调 ...小张的Duck Typing ...给小白的Java

    靠谱的码农简历模板

    简洁美观的简历模板 可恶的100字 可恶的100字 可恶的100字 可恶的100字 可恶的100字 可恶的100字 可恶的100字

    高仿码农网整站源码下载,价值8000元的商业级别源码,资源销售平台源码,资源站必备

    高仿码农网整站源码下载,价值8000元的商业级别源码,资源销售平台源码,资源站必备 所属栏目:VIP源码 数 据 库 :MySql 语言编码:PHP 源码大小:893.8M 适用系统:Windows/Linux 源码简介 系统功能介绍:支持...

    码农常用编程字体集合

    码农常用编程字体大集合,otf和ttf两种字体格式,包含网上最为推崇的Inconsolata的两种字体格式、Lucida、Monaco、DejaVuSansMono、Consolas、Edlo、Envy code、Ubuntu font family等字体

Global site tag (gtag.js) - Google Analytics