IE與Firefox都能顯示的半透明語法
作者:Enny 日期:2008-08-01 18:19
一般的半透明,方法是在style中加入: filter:alpha(Opacity=XX)
其中XX從0到100,0是完全透明
而firefox中不支持css的filter屬性,要在style中加入:
-moz-opacity:XX 其中的XX是個小數,從0到1,0也是完全透明
例如:
FILTER: alpha(opacity=60); /* IE使用的半透明 */
-moz-opacity: 0.6; /* Firefox使用的半透明 */
IE與Firefox並存: filter:alpha(opacity=60);-moz-opacity:0.6;
還是看不懂的話,copy以下語法到frontpage或是dreamweaver
存檔後用ie以及firefox預覽看看,就明白了
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>IE與Firefox都能顯示的半透明語法</title>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
width:178px;
height:97px;
z-index:1;
left: 8px;
top: 13px;
FILTER: alpha(opacity=60); /* IE使用的半透明 */
-moz-opacity: 0.6; /* Firefox使用的半透明*/
background-color: #0066FF;
}
-->
</style>
</head> <body>
<p>test test test</p>
<p>test test test</p>
<div id="Layer1"></div>
</body>
其中XX從0到100,0是完全透明
而firefox中不支持css的filter屬性,要在style中加入:
-moz-opacity:XX 其中的XX是個小數,從0到1,0也是完全透明
例如:
FILTER: alpha(opacity=60); /* IE使用的半透明 */
-moz-opacity: 0.6; /* Firefox使用的半透明 */
IE與Firefox並存: filter:alpha(opacity=60);-moz-opacity:0.6;
還是看不懂的話,copy以下語法到frontpage或是dreamweaver
存檔後用ie以及firefox預覽看看,就明白了
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>IE與Firefox都能顯示的半透明語法</title>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
width:178px;
height:97px;
z-index:1;
left: 8px;
top: 13px;
FILTER: alpha(opacity=60); /* IE使用的半透明 */
-moz-opacity: 0.6; /* Firefox使用的半透明*/
background-color: #0066FF;
}
-->
</style>
</head> <body>
<p>test test test</p>
<p>test test test</p>
<div id="Layer1"></div>
</body>
標籤: 教學
流量又破表?封鎖Baiduspider少40%
作者:Enny 日期:2007-01-12 11:55
一次清除上百篇spam
作者:Enny 日期:2006-06-10 23:18
利用.htaccess阻擋Spam
作者:Enny 日期:2006-05-11 19:07
終於還是逃不過Trackback Spam的攻擊,不過被Spam攻擊我到是看的很開,這世界上打從有Blog以來,Spam就一直存在,Spam既然存在,Blog的Comment與Trackback是否開放就當然是個兩難的選擇。
在求救Alex以及參拜故狗神之後,得到了二種解決方式
PS. Apache Server才能使用.htaccess
方法一:
Order allow,deny
allow from all
deny from (IP位址)→例如spam來源IP:66.249.72.45,就輸入66.249.72.
方法二:
SetEnvIfNoCase Remote_Addr [IP Address] ban
SetEnvIfNoCase User-Agent [Browser Name] ban
SetEnvIfNoCase Referer [Referer Keyword] ban
<Files *>
Order Allow,Deny
Allow from all
Deny from env=ban
</Files>只要加在.htaccess 最前面就好了,至於有沒有用,嗯....觀察中
(當然,IP、關鍵字、網域這些要自己加進去,雖然麻煩,也沒辦法)
至於為何被Spam?原因很多,大部分是BOT
所以在網頁中(TT就是skin.html)加入<link rel="nofollow">Google
在他們的Google Blog上宣示過一個新的對策,未來只要在任何連接的tag裡面加上rel="nofollow",Google就不會連過去了
Google表示,這個nofollow並不會變成「負分」,也就是被設定nofollow的網站將不會從Google獲得任何排名的積分,也不會因此被扣分。
而Google在宣佈之前,也已經與MSN與Yahoo的搜尋事業獲得共識了,將一起配合。

在求救Alex以及參拜故狗神之後,得到了二種解決方式
PS. Apache Server才能使用.htaccess
方法一:
Order allow,deny
allow from all
deny from (IP位址)→例如spam來源IP:66.249.72.45,就輸入66.249.72.
方法二:
SetEnvIfNoCase Remote_Addr [IP Address] ban
SetEnvIfNoCase User-Agent [Browser Name] ban
SetEnvIfNoCase Referer [Referer Keyword] ban
<Files *>
Order Allow,Deny
Allow from all
Deny from env=ban
</Files>只要加在.htaccess 最前面就好了,至於有沒有用,嗯....觀察中
(當然,IP、關鍵字、網域這些要自己加進去,雖然麻煩,也沒辦法)
至於為何被Spam?原因很多,大部分是BOT
所以在網頁中(TT就是skin.html)加入<link rel="nofollow">Google
在他們的Google Blog上宣示過一個新的對策,未來只要在任何連接的tag裡面加上rel="nofollow",Google就不會連過去了Google表示,這個nofollow並不會變成「負分」,也就是被設定nofollow的網站將不會從Google獲得任何排名的積分,也不會因此被扣分。
而Google在宣佈之前,也已經與MSN與Yahoo的搜尋事業獲得共識了,將一起配合。
紀錄天數的Java Script小程式
作者:Enny 日期:2006-05-08 04:29
很常見的一個小程式,使用方式也非常簡單喔
Date(2005,8-1,18);
2005是年份、8是月份、18是日期。-1不要刪除
如果要改成倒數計時,就把a=(now.getTime()-spday.getTime())改為a=(spday.getTime()-now.getTime())即可
範例:
<a href="http://www.eqq.us/tt/index.php" target="_blank">E's Blog</a>至今已邁入第
<script language="JavaScript">
var now=new Date();var spday=new Date(2005,8-1,18);
a=(now.getTime()-spday.getTime())/(24*60*60*1000);a=Math.ceil(a);
document.write("<b>"+a+"</b>");
</script>天
<a href="http://www.eqq.us/tt/index.php" target="_blank">E's Blog</a>至今已邁入第
<script language="JavaScript">
var now=new Date();var spday=new Date(2005,8-1,18);
a=(now.getTime()-spday.getTime())/(24*60*60*1000);a=Math.ceil(a);
document.write("<b>"+a+"</b>");
</script>天
原始碼:本網誌至今已有
<script language="JavaScript">
var now=new Date();var spday=new Date(2005,8-1,18);
a=(now.getTime()-spday.getTime())/(24*60*60*1000);a=Math.ceil(a);
document.write("<b>"+a+"</b>");
</script>天
修改起始日期以及顯示文字<script language="JavaScript">
var now=new Date();var spday=new Date(2005,8-1,18);
a=(now.getTime()-spday.getTime())/(24*60*60*1000);a=Math.ceil(a);
document.write("<b>"+a+"</b>");
</script>天
Date(2005,8-1,18);
2005是年份、8是月份、18是日期。-1不要刪除
如果要改成倒數計時,就把a=(now.getTime()-spday.getTime())改為a=(spday.getTime()-now.getTime())即可
國外空間-瀏覽器自動跳轉編碼問題
作者:Enny 日期:2006-04-20 17:01
- 1










