關(guān)于鼠標(biāo)懸停顯示特效的解決辦法_動(dòng)易Cms教程
看到很多朋友在論壇發(fā)帖子問關(guān)于鼠標(biāo)懸停顯示特效的解決辦法,但似乎都沒幾個(gè)得到了具體的解決辦法,那堂主今天就來做個(gè)具體點(diǎn)的講解吧。首先看圖,假如你問的是關(guān)于這個(gè)樣子的特效,那就找對地方了,繼續(xù)向下看吧!!

很多朋友不知道這個(gè)特效上面的“[xsc.bnuep.com] 紅色家園”處的字體應(yīng)該怎么改,急啊,這個(gè)急啊,找遍了模板代碼和CSS也沒有,嘿嘿。都快急瘋了。其實(shí)修改是很簡單的:
首先進(jìn)入你還沒改過來的那個(gè)頁面,查看源文件,查找plus.js這個(gè)文件,記住它存放的文件夾路徑,比如我的是src="/skin/red/plus.js",那我就去skin里的red這個(gè)文件中找到plus.js這個(gè)文件,之后用Macromedia Dreamweaver 8 打開它,找到第25行的 if(!re.test(Msg))pltsTitle="[xsc.bnuep.com]Ãλù¤×÷ÊÒ"; 這里的[xsc.bnuep.com]改成你自己的網(wǎng)站域名。Ãλù¤×÷ÊÒ這個(gè)代碼改成你自己網(wǎng)站的漢字名字,保存再上傳到空間相應(yīng)目錄下覆蓋原文件就可以了!!
用戶thna516 說:將以下代碼另存為一個(gè)JS文件,然后在頁面里調(diào)用就行,效果請看http://www.dogooo.cn
var pltsPop=null;
var pltsoffsetX = 10; // 彈出窗口位于鼠標(biāo)左側(cè)或者右側(cè)的距離;3-12 合適
var pltsoffsetY = 15; // 彈出窗口位于鼠標(biāo)下方的距離;3-12 合適
var pltsPopbg="#EE530D"; //背景色
var pltsPopfg="#ffffff"; //前景色
var pltsTitle="";
document.write('<div id=pltsTipLayer style="display: none;position: absolute; z-index:10001"></div>');
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=-1000;
pltsTipLayer.style.display='';
var Msg=pltsPop.replace(/\n/g,"<br>");
Msg=Msg.replace(/\0x13/g,"<br>");
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("<br>","");}
var attr=(document.location.toString().toLowerCase().indexOf("list.asp")>0?"nowrap":"");
var content =
'<table style="FILTER:alpha(opacity=80) shadow(color=#bbbbbb,direction=135);" id=toolTipTalbe><tr><td cellspacing="1" cellpadding="0" style="border: 1px #039BF5 solid; background-color: #039BF5; FONT-SIZE: 12px; width:100%">'
'<tr id=pltsPoptop><th valign=bottom><font color=#ffffff><b><p id=topleft align=left>↖' pltsTitle '</p><p id=topright align=right style="display:none">' pltsTitle '↗</font></b></font></th></tr>'
- MAC錯(cuò)誤的解決方法
- 如何屏蔽動(dòng)易后臺(tái)導(dǎo)航里的某個(gè)功能菜單?
- 動(dòng)易.NET版本留言自動(dòng)選定欄目方法
- 動(dòng)易SiteFactoty整合Discuz!NT3.0
- 在任意位置獲取根節(jié)點(diǎn)ID標(biāo)簽
- 如何開啟SiteWeaver6.8的支持,反對功能
- Windows 2008安裝動(dòng)易.NET系統(tǒng)之四----動(dòng)易系統(tǒng)安裝篇
- Windows 2008安裝動(dòng)易.NET系統(tǒng)之三----數(shù)據(jù)庫篇
- Windows 2008安裝動(dòng)易.NET系統(tǒng)之二----IIS、目錄環(huán)境配置篇
- 數(shù)據(jù)庫修復(fù),SQL Server 2005內(nèi)部操作不一致的處理
- 如何安裝動(dòng)易.net程序權(quán)限配置
- 為什么提示對Windows系統(tǒng)文件夾下的Temp目錄沒有訪問權(quán)限?
- 相關(guān)鏈接:
- 教程說明:
動(dòng)易Cms教程-關(guān)于鼠標(biāo)懸停顯示特效的解決辦法
。