Christmas Snow

圣诞节要到了,今年的冬天格外暖和,到现在也只下了一两场小雪,虽然省去了很多出行的不便,但也少了很多节日的感觉。刚才查了一下天气预报,圣诞这两天多云可能有——小雨——看来很多人的白色圣诞的希望不能实现了。看来要自己想办法了,这两天在drupal.org看到一个Christmas Snow模块,正好拿来装点一下:)

这个模块本身就是把另外一个Christmas Snow的javascript脚本打了个包,使得它能在drupal里通过模块调用从而产生雪花的效果。我在本地机(一台老老的Dell)上测试了一下,正如js脚本作者所说的,对资源要求比较高,至少我的机器CPU基本一直在95%以上,风扇不停的转,呵呵。后来把有关参数调整了一下,减少了雪花的数量,同时只限定在标题栏下雪,这才把CPU占用降到了50%左右。由于我的站点本来就比较慢,所以在上传到这里的时候,又作了进一步限制:只在首页显示效果。同时加入了关闭功能,只要把鼠标放到网页右上角的搜索栏,就可以停止动画了,如果要继续,只要把鼠标移到“非常大米”的站标上就行了:)

我把这个也放到了DrupalChina.org那里,希望大家圣诞快乐,新年快乐!

Comments

发表新评论

此内容将保密,不会被其他人看见。
  • 允许的 HTML 标签: <blockquote> <div> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • You can use BBCode tags in the text, URLs will automatically be converted to links.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Every instance of "<!--tableofcontents-->" in the input text will be replaced with a collapsible mediawiki-style table of contents. Accepts options for title, list style, minimum heading level, and maximum heading level as follows: <!--tableofcontents list: ol; title: Table of Contents; minlevel: 1; maxlevel: 3;-->. All arguments are optional and defaults are shown.
  • Every instance heading tags will be modified to include an id attribute for anchor linking.
  • Images can be added to this post.
  • 网页地址和电子邮件地址将会被自动转换为链接。

更多格式化选项信息