比如网页特效梦工厂什么的
<Html>
<Head>
<title>跟随鼠标的滚动文字</title>
</Head>
<Body bgColor="#ffffff">
<!--将以下代码加入HTML的<Body></Body>之间-->
<script language="JavaScript1.2">
var dismissafter=0
var initialvisible=0
if (document.all)
document.write('<marquee id="curscroll" style="position:absolutewidth:150pxborder:1px solid #FF8000font-size:14ptfont-family:MS Sans Serifcolor:#000000background-color:#0000FFvisibility:hidden">'+scroller_msg+'</marquee>')
function followcursor(){
//move cursor function for IE
if (initialvisible==0){
curscroll.style.visibility="visible"
initialvisible=1
}
curscroll.style.left=document.body.scrollLeft+event.clientX+10
curscroll.style.top=document.body.scrollTop+event.clientY+10
}
function dismissmessage(){
curscroll.style.visibility="hidden"
}
if (document.all){
document.onmousemove=followcursor
document.ondblclick=dismissmessage
if (dismissafter!=0)
setTimeout("dismissmessage()",dismissafter*1000)
}
//-->
</script>
</Body>
</Html>
在软件上看的,可以随着鼠标滚动
祝你兄弟生日快乐!
又及: 这样的礼物是不是寒碜了点?
你想要什么样子的生日快乐,如果只是单纯的字(红色的大字)<!doctype html>
<html>
<head>
<meta name="renderer" content="webkit">
<meta charset="utf-8">
<title>茶泡泡</title>
</head>
<body>
<div style="font-size:50pxcolor:#F00">生日快乐!</div>
</body>
</html>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)