主题:  请问鼠标停在连接上的时候马上出现注释怎么实现啊?

顺子

职务:普通成员
等级:4
金币:10.0
发贴:1867
注册:2000/10/14 21:55:00
#12003/6/6 15:04:25
请问鼠标停在连接上的时候马上出现注释怎么实现啊?

我的意思是不是用title属性,如何实现阿?

多谢了!



我佛山人

职务:版主
等级:4
金币:16.0
发贴:2269
注册:2002/8/7 15:09:27
#22003/6/6 15:10:31
引用:

我的意思是不是用title属性,如何实现阿?



???

用title就可以实现啊?



顺子

职务:普通成员
等级:4
金币:10.0
发贴:1867
注册:2000/10/14 21:55:00
#32003/6/6 15:19:35
是啊,用title可以实现,但这个注释不是马上就出来,要等一小会才出来,而且如果要是title的内容是从数据库中查出来的话,要等的时候就更长,title不可以阿!

以前看见过通过javascritp控制图层实现的注释,而且这种注释是马上出现的,没有等待时间,不知道谁有这段代码阿,多谢了!



我佛山人

职务:版主
等级:4
金币:16.0
发贴:2269
注册:2002/8/7 15:09:27
#42003/6/6 16:20:15
论坛




{ 在指尖上绽放的花朵 }

职务:普通成员
等级:5
金币:14.0
发贴:3209
注册:2002/7/25 21:24:11
#52003/6/6 21:01:36
贴这样一个东西好了~~

作用是,快速显示title 里面的文字。

/*fader.js
 * by www.1studio.net
 * Copyright (c) 2001. All Rights Reserved.
 * License to use is granted if and only if this entire copyright notice
 * is included.
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
*/

//3.0 added more browser checks:
NS4 = (document.layers);
IE4 = (document.all);

appVer = navigator.appVersion;
IEmac = (IE4 && appVer.indexOf("Mac") != -1);
IE4mac = (IEmac && appVer.indexOf("MSIE 4") != -1);
IE40mac = (IE4mac && appVer.indexOf("4.0;") != -1);
IE45mac = (IE4mac && appVer.indexOf("4.5;") != -1);
NSpre401 = (NS4 && (parseFloat(appVer) <= 4.01));
NSpre403 = (NS4 && (parseFloat(appVer) <= 4.03));

//3.0 added next 2 line for backward compatibility
FDRjustFlip = (window.FDRjustFlip) ? FDRjustFlip : false;
FDRhdlineCount = (window.FDRhdlineCount) ? FDRhdlineCount : 1;

FDRfinite = (FDRmaxLoops > 0);
FDRisOver = false;
FDRloadCount = 0;

//3.0 set blendTimer to null for IE40mac
blendTimer = null;

if (!window.prefix) prefix = "";
window.onload = FDRcountLoads;

//3.0 modified NS-only code to account for flipper and lack of NS onload/onerror handlers
if (NS4) {
	if(FDRjustFlip || NSpre403) {
		totalLoads = 1;
		FDRfadeImg = new Object();
		FDRfadeImg.width = FDRboxWid - (FDRborWid*2);;
	}
	else {
		totalLoads = 2;
		FDRfadeImg = new Image();
		FDRfadeImg.onload = FDRcountLoads;
		FDRfadeImg.onerror = FDRcountLoads;
		FDRfadeImg.src = FDRgifSrc;
	}
}

//3.0 added event argument for NS
function FDRcountLoads(e) {
	if (IE4) {
		setTimeout("FDRinit()",1);
	}
	else {
//3.0 check for event type
		if(e.type == "error") FDRjustFlip = true; 
		FDRloadCount++;
		if (FDRloadCount==totalLoads) {
			origWidth = innerWidth;
			origHeight = innerHeight;
			window.onresize = function(){
				if (innerWidth==origWidth && innerHeight==origHeight) return;
				location.reload();
			}
			FDRinit();
		}
	}
}

function FDRinit(){
	if(!window.arNews) {
		if(!window.arTXT || !window.arURL) return;
		if(arTXT.length != arURL.length) return;
		arNews = [];
		for (i=0;i" : ">";
	        with (elGif) {
				document.write(imStr);
	        	document.close();
				moveAbove(elNews);
			}
	
			imgHeight = elGif.document.height;
			slideInc = (imgHeight/(FDRblendDur*1000/FDRgifInt));
			startTop = -(imgHeight - FDRboxHgt);
		}

		elFader.visibility =  "show";
    }
    else {
        if (!window.elFader) return;
		elFader.innerHTML ="";
		if(IE4mac) {
			document.body.insertAdjacentHTML("BeforeBegin",">STYLE>");
		}
		else {
			if (!document.styleSheets.length) document.createStyleSheet();
		}
		with (document.styleSheets(document.styleSheets.length-1)) {
			addRule("A.newslink","text-decoration:"+FDRlnkDec+";color:"+ FDRlnkCol);
			addRule("A.newslink:hover","color:"+ FDRhovCol);
		}

		with (elFader.style) {
//3.0 added box width/height adjustments for IEmac
			errorOffset = (IE4mac) ? (FDRboxPad + FDRborWid) : 0;
			width = FDRboxWid - (errorOffset * 2);
			height = FDRboxHgt - (errorOffset * 2);
			if(IE4mac && !IE45mac){
				pixelLeft = elFader.offsetLeft + errorOffset;
				pixelTop = elFader.offsetTop + errorOffset;
			}

			backgroundColor = FDRbackCol;
			overflow = "hidden";
			color = FDRfntCol;
			fontWeight = FDRfntWgh;
			fontSize = FDRfntSiz;
			fontStyle = FDRfntSty;
			fontFamily = FDRfntFam;
			lineHeight = FDRlinHgt;
			textAlign = FDRtxtAln;
			cursor = "default";
			visibility = "visible";
			borderWidth = FDRborWid;
			borderStyle = FDRborSty;
			borderColor = FDRborCol;
			padding  = FDRboxPad;

//3.0 filter application conditional on fader use
			if(!FDRjustFlip) filter = "blendTrans(duration=" + FDRblendDur + ")";
		}
		elFader.onselectstart = function(){return false};

		IEhasFilters = (elFader.filters.blendTrans) ? true : false;

    }

//3.0 NS mouseover/out handlers applied only in 4.02+
	if (!NSpre401) {
		elFader.onmouseover = function (){
			FDRisOver = true;
		}
		elFader.onmouseout = function(){
			FDRisOver = false;
			status = "";
		}
	}
	
	FDRstart(0);
}

function FDRstart(ind){
    newsCount = ind;
    if (FDRfinite) loopCount = 0;
    FDRdo();
    blendTimer = setInterval("FDRdo()",FDRblendInt*1000)
}

function FDRdo() {
//3.0 check for blendTimer value for IE40mac:
	if(!blendTimer && loopCount>0) return;

    if (FDRfinite && loopCount==FDRmaxLoops) {
        FDRend();
		return;
    }
	FDRfade();
//3.0 omitted next line; newsCount incremented elsewhere
//    newsCount += 2;

    if (newsCount == arNews.length) {
        newsCount = 0;
        if (FDRfinite) loopCount++;
    }
}

//3.0 added function for display string creation
function FDRmakeStr(){
	tempStr = "";
	for (i=0;i=arNews.length)break;
		dispStr = arNews[newsCount];
		linkStr = arNews[newsCount+1];
		isLink = linkStr.length;
		if (isLink) {
			tempStr += "
" + dispStr + "
" } else { tempStr += ((NS4) ? "
" : "
") +dispStr+"
"; } if(IE40mac) tempStr +="
"; newsCount += 2; } return tempStr; } function FDRfade(){ //3.0 newsStr now created in other function and returned here newsStr = FDRmakeStr(); if (NS4) { //3.0 made GIF manipulation conditional on fader use if (!FDRjustFlip) { elGif.top = startTop; elGif.visibility = "inherit"; } elNews.visibility = "hide"; with (elNews.document) { write(newsStr); close(); } elNews.visibility = "inherit"; } else { if(IEhasFilters)elFader.filters.blendTrans.Apply(); elFader.innerHTML = newsStr; if(IEhasFilters)elFader.filters.blendTrans.Play(); } //3.0 status bar display now only when single headline displayed if(FDRhdlineCount==1) window.status = (FDRisOver && isLink) ? (prefix + linkStr) : ""; //3.0 NS GIF sliding condiional on fader use if (NS4 && !FDRjustFlip) FDRslide(); } function FDRslide(){ elGif.top += slideInc; if (elGif.top >= 0) {elGif.visibility = "hide";return} setTimeout("FDRslide()",FDRgifInt); } //3.0 new function for NS to avoid literal function declaration // and allow double-click for 4.01a- versions function FDRdblClickNS(){ elFader.releaseEvents(Event.DBLCLICK); FDRstart(startIndex); return false; } function FDRend(){ clearInterval(blendTimer); //3.0 set blendTimer to null for IE40mac blendTimer = null; if (FDRendWithFirst) { newsCount = 0; FDRfade(); } if (FDRreplayOnClick) { //3.0 startIndex dependent on headline count startIndex = FDRendWithFirst ? (FDRhdlineCount * 2) : 0; if (IE4) { elFader.title = "Double click to replay"; elFader.ondblclick = function(){ this.ondblclick = null; this.title = ""; FDRstart(startIndex); } } else { elFader.captureEvents(Event.DBLCLICK); //3.0 moved handler to new function elFader.ondblclick = FDRdblClickNS; } } }



小义zfy520

职务:普通成员
等级:3
金币:2.0
发贴:965
注册:2003/3/30 16:46:57
#62003/6/6 22:07:50
也太长了吧



小小菜皮

职务:普通成员
等级:1
金币:1.0
发贴:180
注册:2002/4/1 17:44:38
#72003/6/6 23:36:18
呵呵



piaoyang

职务:普通成员
等级:1
金币:1.0
发贴:151
注册:2003/5/16 11:31:49
#82003/6/7 11:59:59
好像就没有简单点的编码哦?


每页显示15条 1/1 << <1 >>