Oct 12
最近在做一个flash的转盘/轮盘游戏,问题很多,起初的中奖方法是用flash来计算得奖几率,只把中奖信息发给后台程序。
这样的程序是不安全的,最后改用由后台程序运算,得出结果来让flash来显示。
但是这样问题又来了,flash得到数据后转盘的指针的指向问题,我就用圆周率来计算,让他精确的指到我定义的12个点上,但是很明显,这样指定后,后台运行中的中奖几率无论怎样都会被平均成1/12,相当的高啊。
目前想的是不让她转动,直接得出结果。
看来得想想别的法子才行。
Oct 12
在谷歌的站长论坛内,谷歌员工Susan Moskwa发表了一篇关于近期谷歌PR不更新的帖子。
原文如下:
引用
We've been telling people for a long time that they shouldn't focus on PageRank so much; many site owners seem to think it's the most important metric for them to track, which is simply not true. We removed it because we felt it was silly to tell people not to think about it, but then to show them the data, implying that they should look at it.  :-)

大致是在告诉人们,PR并不是拿来衡量一个网站好坏的指标,而我们却把它变得如此重要,这和他们的意图很矛盾,所以拿掉了PR的数据。
其实这个消息发布于09年,而后来的PR值却并没有被取消,而且有过小范围的更新。
这样的话,那就让人摸不着头了。
Tags: ,
Oct 11
开了几段android的开发视频,发现这系统较之wm于MAC OS那是牛逼多了,进行了几例程序的开发,更加的喜欢上了这个小Linux系统。
习惯了flash的as的我,拿到android的文档后,发现这玩意简直太简单了,当然,很高级的东西那肯定是搞不出的。
无非是对构造函数的传值,对UI控件的监听,然后调取系统的各个类。
有一种是在编写PC机程序的感觉。相比bada的开发,这个更简单。但是配置要求就要好点。
继承AppWidgetProvider类的Android Widget小应用:
Tags: ,
Oct 10
关于Groupon这个web2.0下的团购先行者,造就了无数中国山寨团购网的成功。
这种典型的欧美风格网站在国内,被无数的国人所喜爱。
鲜明的色彩对比、较多的矢量图标,现在也被国人青睐。
而无数的山寨企业对苹果IPHONE的仿制,也使得图标菜单更为人们所喜欢,几乎是见到一个精致的图标就想点击一下。
Groupon带来的不只是一个购物网站,更多的是一种新的风格和观点。
而国人顽固的思想却可以在这之中不知不觉的被改变着。
Tags: ,
Oct 9
苹果系统的菜单效果很出色,连WIN7也开始使用大图标作为下面的状态的菜单了。
点击在新窗口中浏览此图片
今天借助伟大的jQuery库,咱也找了个这玩意耍耍。

// Bearjia jQuery

$(document).ready(function() {

/* =Reflection Nav
-------------------------------------------------------------------------- */  

    // Append span to each LI to add reflection

    $("#nav-reflection li").append("<span></span>");  

    // Animate buttons, move reflection and fade

    $("#nav-reflection a").hover(function() {
        $(this).stop().animate({ marginTop: "-10px" }, 200);
        $(this).parent().find("span").stop().animate({ marginTop: "18px", opacity: 0.25 }, 200);
    },function(){
        $(this).stop().animate({ marginTop: "0px" }, 300);
        $(this).parent().find("span").stop().animate({ marginTop: "1px", opacity: 1 }, 300);
    });

/* =Shadow Nav
-------------------------------------------------------------------------- */

    // Append shadow image to each LI

    $("#nav-shadow li").append('<img class="shadow" src="images/icons-shadow.jpg" width="81" height="27" alt="" />');

    // Animate buttons, shrink and fade shadow

    $("#nav-shadow li").hover(function() {
      var e = this;
        $(e).find("a").stop().animate({ marginTop: "-14px" }, 250, function() {
          $(e).find("a").animate({ marginTop: "-10px" }, 250);
        });
        $(e).find("img.shadow").stop().animate({ width: "80%", height: "20px", marginLeft: "8px", opacity: 0.25 }, 250);
    },function(){
      var e = this;
        $(e).find("a").stop().animate({ marginTop: "4px" }, 250, function() {
          $(e).find("a").animate({ marginTop: "0px" }, 250);
        });
        $(e).find("img.shadow").stop().animate({ width: "100%", height: "27px", marginLeft: "0px", opacity: 1 }, 250);
    });

// End jQuery

});

演示地址:http://adrianpelletier.com/sandbox/jquery_hover_nav/
下载地址:http://adrianpelletier.com/sandbox/jquery_hover_nav/demo.zip
分页: 19/53 第一页 上页 14 15 16 17 18 19 20 21 22 23 下页 最后页 [ 显示模式: 摘要 | 列表 ]