Tag: 鼠标特效预览模式: 普通 | 列表

演示:

演示:

脚本说明:
第一步:把如下代码加入<body>区域中
<SCRIPT Language="JavaScript">function winopen () {msg=open("update.htm","NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=400,height=260");}</SCRIPT>

 

第二步:把如下代码加入<body>区域中
<a href="" onMouseOver="winopen(); return true;"><IMG SRC="http://www.87511.cn/logo.gif" tppabs="http://www.87511.cn/logo.gif" border="0"></a>

Tags: 鼠标特效

分类:网页代码 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 63

[鼠标特效]非图片鼠标跟踪器

*
*
*
*

此页面已加入演示

脚本说明:
第一步:把如下代码加入<body>区域中
<STYLE TYPE="text/css">
<!--

BODY{
overflow:scroll;
overflow-x:hidden;
}

.s1
{
  position  : absolute;
  font-size : 12pt;
  color     : blue;
  visibility: hidden;
}

.s2
{
  position  : absolute;
  font-size : 20pt;
  color     : red;
    visibility : hidden;
}

查看更多...

Tags: 鼠标特效

分类:网页代码 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 58

[鼠标特效]跟随鼠标的字符

脚本说明:
第一步:把如下代码加入<head>区域中
<style type="text/css">
.spanstyle {
    COLOR: #ffd8ff; FONT-FAMILY: 宋体; FONT-SIZE: 10pt; POSITION: absolute; TOP: -50px; VISIBILITY: visible
}
</style>
<script>
var x,y
var step=18
var flag=0
// Your snappy message. Important: the space at the end of the sentence!!!
var message="★e波网络欢迎你的光临!"
message=message.split("")
var xpos=new Array()
for (i=0;i<=message.length-1;i++) {
    xpos[i]=-50
}

var ypos=new Array()
for (i=0;i<=message.length-1;i++) {
    ypos[i]=-200
}

function handlerMM(e){
    x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX
    y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY
    flag=1
}

function makesnake() {
    if (flag==1 && document.all) {
        for (i=message.length-1; i>=1; i--) {
               xpos[i]=xpos[i-1]+step
            ypos[i]=ypos[i-1]
        }
        xpos[0]=x+step
        ypos[0]=y

查看更多...

Tags: 鼠标特效 跟随鼠标的字符

分类:网页代码 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 134

[鼠标特效]图片跟随鼠标

脚本说明:
第一步:把如下代码加入<body>区域中
<SCRIPT LANGUAGE="JavaScript">
    var newtop=0
    var newleft=0
    if (navigator.appName == "Netscape") {
        layerStyleRef="layer.";
        layerRef="document.layers";
        styleSwitch="";
        }
        else
        {
        layerStyleRef="layer.style.";
        layerRef="document.all";
        styleSwitch=".style";
        }

    function doMouseMove() {

        layerName = 'iit'

        eval('var curElement='+layerRef+'["'+layerName+'"]')
        eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"')
        eval('curElement'+styleSwitch+'.visibility="visible"')
        eval('newleft=document.body.clientWidth-curElement'+styleSwitch+'.pixelWidth')
        eval('newtop=document.body.clientHeight-curElement'+styleSwitch+'.pixelHeight')
        eval('height=curElement'+styleSwitch+'.height')
        eval('width=curElement'+styleSwitch+'.width')
        width=parseInt(width)
        height=parseInt(height)
        if (event.clientX > (document.body.clientWidth - 5 - width))
        {
        newleft=document.body.clientWidth + document.body.scrollLeft - 5 - width
        }
        else
        {
        newleft=document.body.scrollLeft + event.clientX
        }
        eval('curElement'+styleSwitch+'.pixelLeft=newleft')

查看更多...

Tags: 鼠标特效 图片跟随鼠标

分类:网页代码 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 142

[鼠标特效]三色鼠标

要完成此效果把如下代码加入到<head>区域中

<script language="JavaScript">
var a_Colour='ff0000';
var b_Colour='00ff00';
var c_Colour='0000ff';
var Size=50;

var YDummy=new Array(),XDummy=new Array(),xpos=0,ypos=0,ThisStep=0;step=0.03;
if (document.layers){
window.captureEvents(Event.MOUSEMOVE);
function nsMouse(evnt){
xpos = window.pageYOffset+evnt.pageX+6;
ypos = window.pageYOffset+evnt.pageY+16;
}
window.onMouseMove = nsMouse;
}
else if (document.all)
{
function ieMouse(){
xpos = document.body.scrollLeft+event.x+6;
ypos = document.body.scrollTop+event.y+16;
}
document.onmousemove = ieMouse;
}

function swirl(){
for (i = 0; i < 3; i++)
 {
  YDummy[i]=ypos+Size*Math.cos(ThisStep+i*2)*Math.sin((ThisStep)*6);
  XDummy[i]=xpos+Size*Math.sin(ThisStep+i*2)*Math.sin((ThisStep)*6);
 }
ThisStep+=step;
setTimeout('swirl()',10);
}

查看更多...

Tags: 鼠标特效 三色鼠标

分类:网页代码 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 68