2007-9-28 11:04 PM S!u`K!`=)
- 語法 ;)

吾知p0過未*v*

語法-  日記內容半透明,一指變回實色

把日記內容變半透明狀態,而mouse指住時,被指住的日記則變回實色(不透明)

使用方法:;
將個code放入website stats`
再修改不透明度`
opcty = 15;  (未指日記時的不透明度)
msvropcty = 100; (指住日記時的不透明度, 100就是 100%不透明)


[quote]<script language="javascript">
//Firefox Version by Edw @ forum.scriptshelf.com
//http://forum.scriptshelf.com/viewtopic.php?t=883 (v2.1.3)
//Sets blog opacity (0-100)
opcty = 15;
//Sets rollover opacity
msvropcty = 100;
//for Firefox
mozopcty = opcty/100;
mozmsvropcty = msvropcty/100;

if (document.all){
tables = document.getElementsByTagName('table');
for(var j=0;j<tables.length;j++){
if(tables[j].className.match(/\bblogbody\b/)){
tables[j].style.filter = "alpha(opacity=" + opcty + ")";
if(msvropcty > 99){
tables[j].onmouseover = function(){this.style.filter = "none";}}
else{
tables[j].onmouseover = function(){this.style.filter = "alpha(opacity=" + msvropcty + ")";}}
tables[j].onmouseout = function(){this.style.filter = "alpha(opacity=" + opcty + ")";}
}}}else{
document.write('<style>table.blogbody{opacity: ');
document.write(mozopcty)
document.write(';}</style>');
tables = document.getElementsByTagName('table');
for(var j=0;j<tables.length;j++){
if(tables[j].className.match(/\bblogbody\b/)){
tables[j].onmouseover = function(){this.style.opacity = mozmsvropcty;}
tables[j].onmouseout = function(){this.style.opacity = mozopcty;}
}}}
//--></script>[/quote]

頁: [1]
查看完整版本: - 語法 ;)


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.