Google
      
发新话题
打印

[站长必备] 本论坛提示您 代码

本主题由 阳光雨露掌门 于 2007-12-13 14:52 移动

本论坛提示您 代码

本论坛提示您 代码演示
yanshi.jpg (7.91 KB)
22/7/2007 14:25



1.解压文件后修改下面代码中红色的部份为自己论坛名,然后以附件的形式上传到自己的论坛. 复制内容到剪贴板 代码:
//鼠标提示 Begin

function imgzoom(o){var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';return false;}
function Download(ForumNo,TopicNo,ReplyNo){
document.Download.forum.value=ForumNo;
document.Download.topic.value=TopicNo;
document.Download.reply.value=ReplyNo;
document.Download.submit();
}

var pltsPop=null;
var pltsoffsetX = 8;
var pltsoffsetY = 10;
var pltsPopbg="#FFFFEE"; //这里是背景色
var pltsPopfg="#ffffff"; //这里是前景色
var pltsTitle="";
document.write('
');
function pltsinits()
{
    document.onmouseover   = plts;
    document.onmousemove = moveToMouseLoc;
}
function plts()
{  var o=event.srcElement;
    if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt=""};
    if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""};
    pltsPop=o.dypop;
    if(pltsPop!=null&&pltsPop!=""&&typeof(pltsPop)!="undefined")
    {
        pltsTipLayer.style.left=-100;
        pltsTipLayer.style.display='';
        var Msg=pltsPop.replace(/\n/g,"
");
        Msg=Msg.replace(/\0x13/g,"
");
        var re=/\{(.[^\{]*)\}/ig;
        if(!re.test(Msg))pltsTitle="提示语";
        else{
          re=/\{(.[^\{]*)\}(.*)/ig;
            pltsTitle=Msg.replace(re,"$1")+" ";
          re=/\{(.[^\{]*)\}/ig;
          Msg=Msg.replace(re,"");
          Msg=Msg.replace("
","");}
          var attr=(document.location.toString().toLowerCase().indexOf("list.asp")>0?"nowrap":"");
               var content =
              '




'+
              '



↖'+pltsTitle+'
'+pltsTitle+'↗'+
              '

'+Msg+''+
              '


↙'+pltsTitle+'
'+pltsTitle+'↘'+
              '';
               pltsTipLayer.innerHTML=content;
               toolTipTalbe.style.width=Math.min(pltsTipLayer.clientWidth,document.body.clientWidth/2.2);
               moveToMouseLoc();
               return true;
       }
    else
    {
            pltsTipLayer.innerHTML='';
              pltsTipLayer.style.display='none';
               return true;
    }
}

function moveToMouseLoc()
{
        if(pltsTipLayer.innerHTML=='')return true;
        var MouseX=event.x;
        var MouseY=event.y;
        //window.status=event.y;
        var popHeight=pltsTipLayer.clientHeight;
        var popWidth=pltsTipLayer.clientWidth;
        if(MouseY+pltsoffsetY+popHeight>document.body.clientHeight)
        {
                  popTopAdjust=-popHeight-pltsoffsetY*1.5;
                  pltsPoptop.style.display="none";
                  pltsPopbot.style.display="";
        }
         else
        {
                   popTopAdjust=0;
                  pltsPoptop.style.display="";
                  pltsPopbot.style.display="none";
        }
        if(MouseX+pltsoffsetX+popWidth>document.body.clientWidth)
        {
                popLeftAdjust=-popWidth-pltsoffsetX*2;
                topleft.style.display="none";
                botleft.style.display="none";
                topright.style.display="";
                botright.style.display="";
        }
        else
        {
                popLeftAdjust=0;
                topleft.style.display="";
                botleft.style.display="";
                topright.style.display="none";
                botright.style.display="none";
        }
        pltsTipLayer.style.left=MouseX+pltsoffsetX+document.body.scrollLeft+popLeftAdjust;
        pltsTipLayer.style.top=MouseY+pltsoffsetY+document.body.scrollTop+popTopAdjust;
          return true;
}
pltsinits();
document.write("
");

document.write(".tableBorder1{border: 1px #6699ee solid;background-color: #6699ee;FONT-SIZE: 12px}.TableBody1{background-color: #FFFFFF;}#loader {BORDER-RIGHT: #6699ee 3px solid; BORDER-TOP: #6699ee 3px solid; DISPLAY: none; FONT-SIZE: 12px; Z-INDEX: 2; FILTER: Alpha(opacity=90); LEFT: 0px; BORDER-LEFT: #6699ee 3px solid; BORDER-BOTTOM: #6699ee 3px solid; POSITION: absolute; BACKGROUND-COLOR: #fff}");

document.write("
");
//鼠标提示 End
2.在后台>基本设置>搜索引擎优化>其他头部信息:>加入下面代码(地址你是以附件形式上传到论坛的附件地址) 复制内容到剪贴板 代码:<script language="JavaScript" src="地址"></script>4027
网络文学互动社区
http://lianlian.5d6d.com
欢迎您的加盟,这里是文学爱好者的家园!!

TOP

发新话题
?>