圣诞节即将到来。预祝大家Marry Christmas~ 人人有个好心情。
圣诞雪人插件
找来一个几年前用过的圣诞雪人Flash,觉得非常适合为博客营造一种温馨的圣诞气氛,拿来给大家分享。并在原来的基础上改进了一下:
- 居中显示
- 兼容Firefox
- 同时也包装成一个wordpress插件。方便不想修改代码的博友用。
wp-christmas插件
Description » This plugin create Christmas snowman Wish everyone a Merry Christmas! And have beautiful falling snow flakes on the blogs.| 一对雪人祝大家圣诞快乐! 飘着小雪。
插件主页 » http://liucheng.name/1166/
Download
下载后解压,然后上传后 wp-content/plugins 目录。在后台激活,就能用了。后台有详细的参数设置。可以选择在不同的页面下显示(首页、目录、标签等页面)。
预览 » http://liucheng.name/1166/ 或 http://liucheng.name/entrez/ (Preview in English Version)
通用版
不喜欢用插件的,或不是用WP博客的博友也无所谓。这里有一个通用的版本。只是一句代码而已。
<div id="MagicFace" Style="POSITION:absolute;Z-INDEX:99;visibility:hidden;"><script language="JavaScript" src="http://liucheng.yun.im/wp-content/plugins/wp-christmas/wp-christmas.js"></script></div>
把这句代码放在<body></body>之间。切记!!
如果是wordpress博客,推荐放在footer.php的</body>之前。
再要细分一点,只想在首页显示,你可以改为:
<?php
if( is_home() ){
print '<div id="MagicFace" Style="POSITION:absolute;Z-INDEX:99;visibility:hidden;"><script language="JavaScript" src="http://liucheng.yun.im/wp-content/plugins/wp-christmas/wp-christmas.js"></script></div>';
}
?>
有其它要求,想要放在不同的页面,又不懂代码的,留言就行。
一起过圣诞节吧!
最新更新:
加入飘着小雪的功能.!! 后台开启. 可以设置只在某一文章显示!! 效果见本页。





呵呵~~很有意思!!
[回复]
整个新年的就更有意思~
[回复]
哈哈。找得到好的素材会弄一个的。
[回复]
圣诞节啊。。。好陌生的概念
[回复]
不会吧。圣诞节都已经流行了好多年了。难道只是广东而已~~
[回复]
这么早就发放圣诞礼物啦,到时候来你这里取
[回复]
[回复]
好几年没过圣诞了,lc同学扮演一回圣诞老人吧
[回复]
要扮圣诞老人,我还不够老
[回复]
还是算了吧,最恨那种无聊又拖速度的flash了,何况一旦订阅之后就再也不看首页了~
[回复]
要在文章页面显示flash也是行的。
[回复]
不知道对静态网页至不支持,哈!!
[回复]
哈哈。都支持的。
[回复]
好素材 狂顶!!
[回复]
嘿嘿~
[回复]
不错,
,我下载来用用。
[回复]
[回复]
下雪很有圣诞的感觉啊
[回复]
这个只有十秒的背景音乐很棒
[回复]
看上去不错呢,下雪动画不容易发觉,如果博客背景是黑色的话更好
[回复]
的确是,都是白色背景。看不清雪花了。
[回复]
哈哈,~~捧走啦~~
[回复]
哈哈,挺有意思的阿
[回复]
Great plugin!!
English letters while the boy and girl hug each other ???
[回复]
thanks. that means:
Let us spend the Christmas together.
or
Enjoy this Christmas with you.
[回复]
English version?
[回复]
感觉像QQ魔法表情。
哈哈。
不错不错。
[回复]
会不会做Flash啊~~
[回复]
Love the plugin, just wish I could get it in English saying Merry Christmas above the snowmen
[回复]
OK~ May be update tonight at beijing time.
[回复]
OK~ May be update tonight at beijing time.
[回复]
Hi,
i think it will be a better idea to make the Text customable, in order that all can write what they want... Some want this in english, i want the text in albanian etc...
Thanks for the plugin
[回复]
Hello I suuport this idea. This way everybody can translate the plugin for himself. I'd love to add it some of my European sites in different languages ;)
Thank you!
[回复]
这个插件很可爱啊~~
马上用来试试~~
不知道那些能不能自定义?
[回复]
flash哦。没办法自定义了。除非你改flash
[回复]
应该记录一下cookies 第一次的时候播放 然后就不用播放了 老是播放效果不好哦
[回复]
哈哈。那是...
有好有不好了。
找找这部分的资料先。学会了我就加进去。
[回复]
Hi there! I'd like to get the .pot file, so I can translate the wishes to other European languages. Thank you!
[回复]
it's flash, no .pot file. but you can edit the flash file.
[回复]
OK, where do I download the source?
[回复]
you can use "Sothink SWF Quicker" sofeware edite .swf file direct.
[回复]
Sounds like a good idea... But is it for Macs also?
[回复]
i think so. http://download.cnet.com/1770-20_4-0.html?query=Sothink+SWF+Quicker&searchtype=downloads&filter=platform=Mac%7C&filterName=platform=Mac%7C
[回复]
European Language? is not English?
[回复]
English is ONE OF dozens languages used in Europe
Did you know that there are 3 sets of characters used in Europe? See here for more:
http://en.wikipedia.org/wiki/European_languages
[回复]
恩,蛮好玩的。
[回复]
我又来支持博主了。呵呵。
[回复]
貌似不错 哦
用柳城开发的插件很久了
第一次在这里留言
这里很热闹哦
[回复]
哈哈,, 还好啦.. SEO的生意如何?
[回复]
感觉你JS里绕来绕去貌似都是没必要的啊...
比如说你那个setTimeout里就是想执行
document.getElementById("MagicFace").visibility = 'hidden';
结果你上面的function绕啊绕,居然还用一个只执行一次的循环,纯属浪费服务器性能。
[回复]
还有那个下雪的代码WP也出新版的了,不用那么多小图片的了。JS文件也只有9K多。
[回复]
还有你JS传参时Flash的大小也没定义对
这个Flash实际的大小是540*390
[回复]
[回复]
我才拿过来用没几天。这么快就有新版本了。看看去先。
谢谢你的提醒。
[回复]
你是说let it snow插件么?没更新啊。我看了另外的snow插件。也没有9k的啊。不知道你说的是那个?
[回复]
我博客上我刚发布了For Emlog的插件。里面的snow.js就是WP新出的下雪脚本。里面的flash.js就是被我精简过的显示flash的脚本,这两个是通用的,你可以直接拿过来用。
顺带我里面还用了cookies控制只有第一次访问才显示flash,你也可以修改修改你的插件。
[回复]
更新了。找了一个4k的snow.js。
[回复]
噢。你那这句啊。 认真看了看,好像是有这个问题。 不过也没有到浪费服务器性能这么夸张的。
我再测试测试。
[回复]
提前祝圣诞快乐
[回复]
Hi,
i see that the file is in flash (.swf) and not editable throught localization (.po/.mo).
It will be very nice from you tu provide us the editable .flv file. So can we edit the file in our language. So everyone can make it own custom. Coz the .swf files are not editable.
Thanks a lot in advance and hoppe that we will get the file as soon as possible
Regards
[回复]
Hi,
you can use "Sothink SWF Quicker" sofeware edite .swf file direct.
[回复]
我就弄个下雪的就可以了!嘿嘿
[回复]
不错,支持一下。
[回复]
我的怎么是圆点不是雪花?
还有这回复表情是能过什么插件实现的?
[回复]
表情是custom smiles插件。
雪花嘛,你长级到最新版啊。在后台有得设置的了。
[回复]
我就是昨天下载的。
那我在下载一次。
[回复]
不是可以直接后台更新么?
let it another snow.选这个`
[回复]
嗯,老饕 的建议不错,如果试着弄一个,估计这个插件会很火
[回复]
Er.. 是有在弄了~~ 不过就是一个Flash... 过几天放出来~
[回复]
做得不错哟,我那也飘着雪呢
[回复]
恩... 看了.. 我另外又找了一个轻巧得多的下雪效果.. 效果也多样~
[回复]
呵呵,很漂亮的插件呢 ~ 收藏下 ~
[回复]
[回复]
怎么回事呢,我下载后解压缩是一本活色生香.txt,不是插件。
[回复]
知道怎么回事了,被电信劫持了,我开了自由门下载好了。
[回复]
电信也会这个? 不会吧. 确定不是中木马?
[回复]
2.9下貌似开启了没效果
[回复]
不会吧!! 我有2.9测试过的了~~ 现在?
[回复]
呵呵,好可爱的圣诞娃娃
博客logo也很有味道
[回复]
nice plugin for christmas. xia xia
[回复]
为什么下载下来 插接 单独运行那个PHP文件 会报错呢?还有 就是 怎么下雪?![[可爱]](http://liucheng.name/wp-includes/images/smilies/icon_ka.gif)
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in C:\wamp\www\wp-christmas\wp-christmas.php on line 150
Fatal error: Call to undefined function add_action() in C:\wamp\www\wp-christmas\wp-christmas.php on line 233
[回复]
你不是用wordpress吧。这是WP插件。
[回复]
可是我想放在别 的程序上啊,,,能实现不?放.net上
[回复]
你自己把其中的js拿去用就是了。
[回复]
有意思,下一个回去弄弄,谢谢。
[回复]
还是插件来的方便 我用上了 那俩雪人挺可爱的
[回复]
有意思。谢谢哈。平安夜快乐,圣诞快乐哈
[回复]
有礼物派吗。呵呵...
[回复]