Posted by admin | Posted in CSS, Javascript | Posted on 21-04-2010
0
1
2
3
4
5
6
7
8
9
10
| <script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("flash/banner_01.swf", "bannerflash", "980", "130", "9.0.0", "expressInstall.swf");
swfobject.embedSWF("flash/banner_02.swf", "preview", "700", "250", "9.0.0", "expressInstall.swf");
</script>
上面請放在</head>前
<div id="bannerflash"> </div> |
這樣子flash 就能顯示 , html又簡單!
div 請直接設定大小!
Posted by admin | Posted in Javascript, PHP | Posted on 09-03-2010
0
今天才知道原來的FCK 已經改名字..
http://ckeditor.com/
1
2
3
4
5
6
7
8
9
10
11
12
13
| <textarea cols="80" id="editor1" name="editor1" rows="10">test</textarea>
<?php
// Include CKEditor class.
include_once "ckeditor/ckeditor.php";
// Create class instance.
$CKEditor = new CKEditor();
// Path to CKEditor directory, ideally instead of relative dir, use an absolute path:
// $CKEditor->basePath = '/ckeditor/'
// If not set, CKEditor will try to detect the correct path.
$CKEditor->basePath = 'ckeditor/';
// Replace textarea with id (or name) "editor1".
$CKEditor->replace("editor1");
?> |
Posted by admin | Posted in Javascript | Posted on 29-10-2009
0
Dreamweaver的JS製作彈出式選單在IE7的Bug
自從更新IE7~IE8觀看時,選單名稱如有中文字會變成』直列』的顯示
選單的字都亂了..
上網找了一下! 更新方式
更新方式:
1. 開啟 mm_menu.js 來編輯。
2. 找到第 136 列。
3. 將 var itemProps = 』;
修改成 var itemProps = ‘white-space:nowrap;’;