⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zoomtext.html

📁 java脚本即用特效源码从入门到精通帮你渡过难关
💻 HTML
字号:
<html>
<head>
<TITLE>文字放大2</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
<!--//
var x,y
var timer
var i_fontsize=0
var step=0
var thisx,thisy
function handlerMM(e){
	x = (document.layers) ? e.pageX : event.clientX
	y = (document.layers) ? e.pageY : event.clientY
}

function ringup() {
	if (document.all) {
		thisx = x
		thisy = y
		ringup2()
	}
}

function ringup2() {
	if (i_fontsize<=1000) {	
		document.all.ring.style.fontSize=i_fontsize
		document.all.ring.style.color="rgb(255,"+Math.floor(i_fontsize/6)+","+Math.floor(i_fontsize/6)+")"
    	document.all.ring.style.posLeft=thisx-(Math.floor(i_fontsize/3))
		document.all.ring.style.posTop=thisy-(Math.floor(i_fontsize/1.4))	
		step+=4
		i_fontsize+=step
		timer=setTimeout("ringup(2)",50)
	}
	else {
		clearTimeout(timer)
		i_fontsize=0
		step=0
		document.all.ring.style.posTop=-10000
	}
}

document.onmousemove = handlerMM;

//-->
</script>

<STYLE>
.ringstyle {
	position:absolute;
	visibility:visible;
	top:-50px;
	font-size:5pt;
	font-family:Verdana;
	color:FF0000
}
.explain {
	position:absolute; 
	top:80px; 
	left:40px; 
	width:300px; 
	color:000000;
	text-align:center;
	font-size:20pt;
	font-family:Times;
}
</STYLE>

</HEAD>
<body bgcolor="#FFFFFF">

<DIV id="ring" class="ringstyle">:-)</DIV>

<DIV id="redirection" class="explain" style="width: 473; height: 54">将鼠标移到<a href="#"onMouseOver="ringup()">超链接</a>上面看一下……</DIV>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -