Flash Mp3播放器-简单,漂亮!
January 28, 2007 on 1:47 am | 电脑网络 | 2条评论朋友给我发来一个简单的Flash MP3播放器,颇有现代或苹果的风格。可惜发现直接用EMBED标签不能用,必须使用OBJECT标签。这样以来MSN Space,某些网站或论坛就不接受了。
经过研究发现一个办法:
先到http://blogcy.com/go/ 输入你的音乐地址
获得一个短URL例如:http://blogcy.com/go/?music
然后把现面的音乐地址替换成为你刚刚得到的URL。
如果你直接把”音乐地址”替换为mp3的地址,那么程序可能会错误地调用mp3插件来播放flash,在这种情况下,你就要自己定义OBJECT,而不能只使用EMBED标签了。
接着在自定义HTML中加入:
<embed src=”http://blogcy.com/music/player2.swf?musicURL=音乐地址” quality=high type=”application/x-shockwave-flash” width=305 height=90 pluginspage=”http://www.macromedia.com/go/getflashplayer”>
就可以得到一个好看的Flash MP3播放器了!如下:
By CY | 来自BlogCY
缩短URL服务
January 26, 2007 on 12:01 am | 电脑网络 | 暂无评论下载了安装了一个程序叫做 PHP Short URL Script,利用这个程序自己就可以提供缩短URL服务了。程序安装过程很简单,但需要mysql数据库。虽然是英文的,但可以自己翻译成中文,把language目录下的语言文件作些修改就可以了。
例如您原来的网址是:
http://dfhlDKHF.com/sfnkvnka/sfkkfvvsdVDSV/
safaf/asfasf124rtf/zhenshibuzouyuna/mp3/ffa
这个程序可以把上面的网址变成:
http://你的网站/?lala
如果要自定义首页,把template\default 目录下的layout.tpl.html删掉,自己创建一个。把下面的代码放在你想要表格出现的地方就可以了!
{foreach from=$system_messages item=item}
<div class="s6l_system">
<div class="s6l_index">{$item.title}</div>
<div class="s6l_code"><br />{$item.message}</div>
</div>
{/foreach} {foreach from=$error_messages item=item}
<div class="s6l_system">
<div class="s6l_index">{$item.title}</div>
<div class="s6l_code"><br />{$item.message}</div>
</div>
{/foreach} {include file=$detail_template} {foreach from=$debug_messages
item=item}
<div class="s6l_system">
<div class="s6l_index">{$item.title}</div>
<div class="s6l_code"><br />{$item.message}</div>
</div>
{/foreach}
不想自己安装或主机不支持,那就用这个缩短URL服务。
By CY | 来自BlogCY
MSN Space 进阶技巧教程
April 21, 2005 on 11:32 am | 电脑网络 | 16条评论
下面整理了一下网上收集的MSN Space的技巧及玩意。 我的MSN Space- Random Ideas
*Msn Space 教学链接整理 来源: 能量魔法 |
*爬山虎的Space技巧提高篇1.0 来源:爬山虎的世界 |
“我行我秀”技术咨询区问题整理1.0 来源:爬山虎的世界 |
*综合教学问题发问版 来源: 能量魔法 |
*msnspace Q&A 来源:Msn Space必读 |
*八度教你玩转MSN SPACES…目錄… 来源:在八度空間中迷失方向™ |
*阿达的实弹射击场 来源:幻灭的阿达——实弹射击场 |
*MSN SPACES技巧大集合 来源:在八度空间中迷失方向™ |
*实弹射击——玩转Spaces 来源:幻灭的阿达–百无聊赖的颓废生活 |
*Space技术基础框架总结及进阶方法 来源:爬山虎的世界 |
*美化您的网志 来源:牛角村 |
*blog教程册子 来源:♪ 玉笛谁家听落梅 ♣ |
============================
其他 :
(自己没空间怎么办?-msn space)
By CY | 来自BlogCY
大量80*15图标按钮及制作程序
April 14, 2005 on 5:45 pm | 电脑网络 | 2条评论80 * 15 图标,又叫 "antipixel buttons" 或者徽章,在博客当中非常流行,也可作为一种个性展示。下面是一些这方面的资源。
What are the "80×15 brilliant buttons"?
The "80×15 brilliant buttons", also known as "antipixel buttons" or "badges", are the very popular buttons especially used by bloggers.
例子:
图标分类: 源自Steal These Buttons
生日– 博客– 博客工具– 联系– 各种目录– feeds– 食物– 游戏– 地理位置– 主机– 幽默
– memes– 音乐– 导航– 操作系统– 其他– 政治– 程序– 体育– validated– 愿望表– 网站–
你还可以使用使用80 * 15 图标制作器,图标全部自动生成。
我的徽章:
By CY | 来自BlogCY
集成WYSIWYG编辑器FCKeditor到MT等程序中
April 13, 2005 on 11:27 am | 电脑网络 | 4条评论今天才下载了FCKeditor _2.0 rc3 一个功能f非常强大的所见即所得开源html编辑器(WYSIWYG )。除了支持各种常用的功能外,还支持表格,文本域,添加图片表情,等等。。。(点这里看Demo)
还有一点,就是安装过程非常简单。
以Movable Type 3.15为例子的傻瓜安装过程。
[请注意,未必适用于其他MT版本!3.2建议步骤看下面]
首先到这里下载FCkeditor 2.0 rc3,解压,上传。
不过要注意两点
1. 在你的网站的根目录下的建立一个fckeditor目录,必须把编辑器传到这个目录下。
2. _docs _packager _samples _testcases 这四个目录里的文件不必上传。
然后进入 ../cgi-bin/mt/tmpl/cms 下,修改 edit_entry.tmpl 这个文件
在文件开头,<TMPL_INCLUDE NAME="header.tmpl"> 的下方加入下面的代码:
<head>
<script type="text/javascript" src="http://你的网站/fckeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( ‘text’ ) ;
oFCKeditor.Height = "600" ;
oFCKeditor.Width = "577" ;
oFCKeditor.ReplaceTextarea() ;
}
</script>
</head>
大功告成了!
如果你希望你的访客在给你留言的时候也能使用FKeditor。首先别忘了打开MT的评论功能,然后修改Individual Entry Archive这个模版。
<script type="text/javascript" src="http://你的网站/fckeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( ‘text’ ) ;
oFCKeditor.Height = "450" ;
oFCKeditor.Width = "95%" ;
oFCKeditor.ReplaceTextarea() ;
}
</script>
最后保存重建,搞定!
至于在其他的论坛或blog程序中集成FCKeditor,你只要把 var oFCKeditor = new FCKeditor( ‘text’ ) ; 中的text改称你要替换的文本域的代号。
比如一下这个文本域的代号就是 “text”
<textarea tabindex="2" id="text" name="text" rows="10" cols="50"></textarea>
如果你希望了解更多,自己进一步自定义FCKeditor,可以参照_doc的中的文档。
------
以上步骤可能不适用于MT 3.2, 但是你也可试一试。:-)
如果不行,请看下面的步骤 by DDK
http://blog.cyberlynx.idv.tw/archives/000059.html 小人物記事本
参考原作者:
http://weblog.leidenuniv.nl/users/klaassenplf/archives/2005/06/10/tutorial_wysiwyg_under_movable_type_3x.html
在http://www.fckeditor.net/download/default.html下载的2.2版FCKeditor
1. 从自己网站下面将/cgi-bin/tmpl/cms 目录底下的header.tmpl以及edit_entry.tmpl两个文件抓下来修改
2. 首先用记事本打开header.tmpl,在<head>…..</head>中间加入:
<script type="text/javascript"
src="<TMPL_VAR NAME=STATIC_URI>FCKeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( ‘text’ ) ;
oFCKeditor.BasePath = ‘<TMPL_VAR NAME=STATIC_URI>FCKeditor/’ ;
oFCKeditor.Width = 580 ;
oFCKeditor.Height = 400 ;
oFCKeditor.CheckBrowser = true ;
oFCKeditor.ReplaceTextarea() ;
pFCKeditor = new FCKeditor( ‘text_more’ ) ;
pFCKeditor.BasePath = ‘<TMPL_VAR NAME=STATIC_URI>FCKeditor/’ ;
pFCKeditor.Width = 580 ;
pFCKeditor.Height = 400 ;
pFCKeditor.CheckBrowser = true ;
pFCKeditor.ReplaceTextarea() ;
qFCKeditor = new FCKeditor( ‘excerpt’ ) ;
qFCKeditor.BasePath = ‘<TMPL_VAR NAME=STATIC_URI>FCKeditor/’ ;
qFCKeditor.ToolbarSet = "MTExcerpt" ;
qFCKeditor.Width = 580 ;
qFCKeditor.Height = 200 ;
qFCKeditor.CheckBrowser = true ;
qFCKeditor.ReplaceTextarea() ;
}
</script>
3. 修改完后令存新文件:header_edit_entry.tmpl
4. 接着打开edit_entry.tmpl文件,将标头
<TMPL_INCLUDE NAME="header.tmpl">
修改成
<TMPL_INCLUDE NAME="header_edit_entry.tmpl">
5. 用搜寻功能找到<div class="field-buttons">,刪除其下
<script type="text/javascript">….</</script>中间的代码。
用意是將MT內建预设的內文编辑介面删除
6. 再用搜寻功能找到下一个<div class="field-buttons">,也將下面的
<script type="text/javascript">….</</script>删除。
这里是将延伸内问的部分
7. 打开FCKeditor目录底下的fckconfig.js文件,这里将修改预设载入的FCKeditor工具条。找到FCKConfig.ToolbarSets["Default"]
这段代码,用原始作者建议的代码覆盖。
FCKConfig.ToolbarSets["Default"] = [
[’Source’],
[’Cut’,'Copy’,'Paste’,'PasteText’,'PasteWord’,'-’],
[’Undo’,'Redo’,'-’,'Find’,'Replace’,'-’,'SelectAll’,'RemoveFormat’],
[’Bold’,'Italic’,'Underline’,'StrikeThrough’,'-’,'Subscript’,'Superscript’],
[’OrderedList’,'UnorderedList’,'-’,'Outdent’,'Indent’],
[’JustifyLeft’,'JustifyCenter’,'JustifyRight’,'JustifyFull’],
[’Link’,'Unlink’,'Anchor’],
[’Image’,'Table’,'Rule’,'Smiley’,'SpecialChar’,'UniversalKey’] ,
[’Form’,'Checkbox’,'Radio’,'TextField’,'Textarea’,'Select’,'Button’,'ImageButton’,'HiddenField’],
‘ /’,
[’Style’,'FontFormat’,'FontName’,'FontSize’],
[’TextColor’,'BGColor’],
[’About’]
] ;
8. 接着上面的步骤继续贴上这段
FCKConfig.ToolbarSets["MTExcerpt"] = [
[’Source’],
[’Bold’,'Italic’,'Underline’,'-’,'OrderedList’,'UnorderedList’,'-’,'Link’,'Unlink’,'-’,'About’]
] ;
9. 将预设的image以及linkBrowser关闭
FCKConfig.LinkBrowser = false ;
FCKConfig.ImageBrowser = false ;
10. 至此,将edit_entry.tmpl以及header_edit_entry.tmpl两个文件传回原是目录,并在mt-static目录下面新增一个FCKeditor目录然后将里面的资料全部上传。
11. 登陆网站,到文章编辑介面应该就可以看到FCKeditor的编辑介面了!
By CY | 来自BlogCY
CY's Blog Ver.3 Jan/07 since Apr/04 | Entries and comments feeds. | Theme designed by Borja Fernandez, Hacked by CY. ^Top^




