WordPress 表情符号 测试

edwin-wang.com

难道 WordPress 表情符号一定要安装插件吗???哈哈非也 😀 我们来看看2.8的 /wp-includes/functions.php 中的定义:

if ( !isset( $wpsmiliestrans ) ) {
  $wpsmiliestrans = array(
  ':mrgreen:' => 'icon_mrgreen.gif',
  ':neutral:' => 'icon_neutral.gif',
  ':twisted:' => 'icon_twisted.gif',
    ':arrow:' => 'icon_arrow.gif',
    ':shock:' => 'icon_eek.gif',
    ':smile:' => 'icon_smile.gif',
      ':???:' => 'icon_confused.gif',
     ':cool:' => 'icon_cool.gif',
     ':evil:' => 'icon_evil.gif',
     ':grin:' => 'icon_biggrin.gif',
     ':idea:' => 'icon_idea.gif',
     ':oops:' => 'icon_redface.gif',
     ':razz:' => 'icon_razz.gif',
     ':roll:' => 'icon_rolleyes.gif',
     ':wink:' => 'icon_wink.gif',
      ':cry:' => 'icon_cry.gif',
      ':eek:' => 'icon_surprised.gif',
      ':lol:' => 'icon_lol.gif',
      ':mad:' => 'icon_mad.gif',
      ':sad:' => 'icon_sad.gif',
        '8-)' => 'icon_cool.gif',
        '8-O' => 'icon_eek.gif',
        ':-(' => 'icon_sad.gif',
        ':-)' => 'icon_smile.gif',
        ':-?' => 'icon_confused.gif',
        ':-D' => 'icon_biggrin.gif',
        ':-P' => 'icon_razz.gif',
        ':-o' => 'icon_surprised.gif',
        ':-x' => 'icon_mad.gif',
        ':-|' => 'icon_neutral.gif',
        ';-)' => 'icon_wink.gif',
         '8)' => 'icon_cool.gif',
         '8O' => 'icon_eek.gif',
         ':(' => 'icon_sad.gif',
         ':)' => 'icon_smile.gif',
         ':?' => 'icon_confused.gif',
         ':D' => 'icon_biggrin.gif',
         ':P' => 'icon_razz.gif',
         ':o' => 'icon_surprised.gif',
         ':x' => 'icon_mad.gif',
         ':|' => 'icon_neutral.gif',
         ';)' => 'icon_wink.gif',
        ':!:' => 'icon_exclaim.gif',
        ':?:' => 'icon_question.gif',
  );
}

图片全在/wp-includes/images/smiles 下边,大家也可以尝试着修改成自己喜欢的笑脸。 全局的噢,okay,这样子,大家可以在正文和回复中照常使用啦,注意噢,回复也可以的啦~ 😮 注意噢,在文本和表情间加个空格噢~

:-) Smile 笑脸 Shortcut: ‘:smile:’ , ‘:-)’ , ‘:)’
:-D Biggrin 咧嘴笑 Shortcut: ‘:grin:’ , ‘:-D’ , ‘:D’
:-( Sad 忧伤 Shortcut: ‘:sad:’ , ‘:-(’ , ‘:(’
:-o Surprised 吃惊 Shortcut: ‘:eek:’ , ‘:-o’ , ‘:o’
8-O eek 惊讶 Shortcut: ‘:shock:’ , ‘8-O’ , ‘8O’
:-? Confused 困惑 Shortcut: ‘:???:’ , ‘:-?’ , ‘:?’
8-) Cool 耍酷 Shortcut: ‘:cool:’ , ‘8-)’ , ‘8)’
:lol: LOL 大笑 Shortcut: ‘:lol:’
:-x Mad 抓狂 Shortcut: ‘:mad:’ , ‘:-x’ , ‘:x’
:-P Razz 冷笑 Shortcut: ‘:razz:’ , ‘:-P’ , ‘:P’
:oops: Red Face 红脸 Shortcut: ‘:oops:’
:cry: Cry 哭泣 Shortcut: ‘:cry:’
:evil: Evil 恶魔 Shortcut: ‘:evil:’
:twisted: Twisted 痛苦 Shortcut: ‘:twisted:’
:roll: Roll Eyes 转眼珠 Shortcut: ‘:roll:’
;-) Wink 眨眼 Shortcut: ‘:wink:’ , ‘;-)’ , ‘;)’
:!: Exclaim 感叹 Shortcut: ‘:!:’
:?: Question 疑问 Shortcut: ‘:?:’
:idea: Idea 好主意 Shortcut: ‘:idea:’
:arrow: Arrow 右箭头 Shortcut: ‘:arrow:’
:-| Neutral 自然的表情 Shortcut: ‘:neutral:’ , ‘:-|’ , ‘:|’
:mrgreen: Mr Green 绿脸先生 Shortcut: ‘:mrgreen:’

HTML 5 肃然起敬~Firefox 3.5~直接播放媒体文件

前几天跟风更新了下Firefox 3.5,原本是由于老插件无法兼容的问题一直在犹豫,仔细研究了下,还好都找到了更新或者替代的。 前面无意在FF中打开个ogg文件,居然跳出个播放器开始下载播放,莫名一击,没有装这个播放器噢。然后查了下,HTML 5 的 Video 播放,太炫了。Firefox 3.5 最重要的更新,对 HTML 5 的支持。

HTML 5 play OGG file. (Firefox 3.5)

来尝试下下面这段code:


 

默认就有 Play 按钮、进度条、时间和音量等控件,Flash Player可以放弃啦。单击右键弹出菜单,可以像保存图片一样保存视频。

 

 

大家可以测试下下边这段视频的播放噢: http://upload.wikimedia.org/wikipedia/commons/5/58/Video_xo.ogv

 
You must have an HTML5 capable browser.