語法展示:: http://home.graffiti.net/edsfghyt/
請用IE6.0或更新版本觀看語法特效展示
將以下程式碼複製,貼在<body>及</body>標籤之間。
<div style="position:absolute;top:1;display:none;font:bold italic 20pt Verdana;color:#FF0000;" align="right">紫蓮の翼 http://blog.pixnet.net/como0925</div>
<script language="JavaScript">
<!--
var IW= 0;
var IH= 0;
var PX= 0;
var PY= 0;
var ZIN= 0;
var us= null;
var IMGW= 35;
var IMGH= 95;
var LSAFETY= 0;
var TSAFETY= 0;
function marking()
{
if (navigator.appVersion.indexOf("Mac") == -1)
{
oldIW= IW;
oldIH= IH;
oldPX= PX;
oldPY= PY;
if ((document.body.clientHeight != oldIH)||(document.body.clientWidth != oldIW)||(document.body.scrollLeft != oldPX)||(document.body.scrollTop != oldPY)) {
alldivs= document.all.tags("DIV");
if (us == null){
for (i=0; i<alldivs.length; i++)
{
us= alldivs(i);
}
}
if(window != window.top){
var ourDoc= "";
var ourDocWidth= 0;
var ourDocHeight= 0;
var ourDocTest= 0;
for(i=0;i<window.top.frames.length; i++){
if((window.top.frames[i].document.body.clientWidth * window.top.frames[i].document.body.clientHeight)>ourDocTest)
{
ourDoc= window.top.frames[i];
ourDocTest= window.top.frames[i].document.body.clientWidth * window.top.frames[i].document.body.clientHeight;
}
}
}
if((ourDoc)&&(ourDoc != self)){
us.style.display= "none";
}
if(((ourDoc)&&(ourDoc == self))||(!ourDoc)){
if (us != null){
us.style.display= "none";
IH= document.body.clientHeight;
IW= document.body.clientWidth;
PX= document.body.scrollLeft;
PY= document.body.scrollTop;
us.style.top= (IH+PY-(IMGH+TSAFETY));
us.style.left=(IW+PX-(IMGW+LSAFETY));
for (i=0; i<alldivs.length; i++){
templay= alldivs(i);
if (templay.style.zIndex > ZIN)
us.style.zindex= (templay.style.zIndex + 1);
}
us.onmouseover= neat_mouseover;
us.onmouseout= neat_mouseout;
us.style.display= "";
}
}
}
}
}
function neat_mouseover(){
if(us != null){
window.status="additional text goes here";
return true;
}
}
function neat_mouseout(){
if(us != null){
window.status="";
return true;
}
}
setInterval("marking()",100);
-->
</script>
在 font:bold italic 20pt Verdana; 中修改文字的大小 |
在 color:#FF0000; 中修改文字的顏色 |
自行修改顯示的文字 |
留言列表