欢迎你的访问
 
返回天空素材库首页 http://www.Skysucai.com  
收藏本站
将本站设为首页
您当前的位置:天空素材首页 -> 图像过来
 
栏 目 导 航
. 常用代码 . 综合特效
. 状态特效 . 游戏特效
. 页面背景 . 页面特效
. 页面导航 . 文本操作
. 文本特效 . 图形特效
. 鼠标特效 . 时间日期
. 密码特效 . 浏览相关
. 警告对话 . 技巧特效
. 计数转换 . 测试搜索
. 代码生成 . 播放音乐
. 按钮特效 . 系统相关
. 链接特效 . 黑客性质
. 相关特效 . 窗口特效
. 广告特效 . 表单表格
. 模拟例子
相 关 文 章
本 类 热 门
· 雷达效果
· 图片上链接的虚线框
· 禁止对图片用右键
· 图像过来
· 改变网页背景图片
· 飘动的图片
· 让IE6不出现图像工具栏...
· 图片默认的大小
· 图片震动
· 图片展示
· 一种很酷的图片动态切...
· 图片渐渐显示
更多  
 
 
更多  
最 新 推 荐
· 状态栏时间跳动特效
· 农历挂历特效
· 真正的万年历
· 网页特效 菜单-会动的...
· 网页特效 时间-任意位...
· 个人网页特效-有前后日...
· 时间每过一秒,Radio就...
· 时钟显示在任意指定位...
· 带开关的Form时钟
· 记录几天后的日期
· 显示登陆时间
· 退出时显示访问时间
更多  
     
图像过来
图像过来
作者:无  来源:本站整理  名称:图像过来 

减小字体 增大字体

       

[提示:你可先按照下面代码提示修改 上面部分代码,再按运行,此处看到的演示不完全正确]

此特效的详细完整代码如下:
]  源码如下
----------------------------------------------------------
<style type="text/css">
#divCircle {position:absolute; width:10px; height:100px; z-index:1; top:-50px;}
.clButtons {position:absolute; width:50px; height:10px; top:20px;left:100px; visibility:hidden; z-index:10; font-family:宋体; font-size:12px}
.clButtons a {COLOR:#000080;}
</style>
<script language="JavaScript" type="text/javascript">
function lib_bwcheck(){ //Browsercheck (needed)
this.ver=navigator.appVersion
this.agent=navigator.userAgent
this.dom=document.getElementById?1:0
this.opera5=this.agent.indexOf("Opera 5")>-1
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
this.ie=this.ie4||this.ie5||this.ie6
this.mac=this.agent.indexOf("Mac")>-1
this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
return this
}
var bw=new lib_bwcheck()
numItems = 4
circleXstart = 10
circleYstart = -25
circleXoffset = 5
circleYoffset = -3
circlePXspeed = 5
circleTspeed = 10
circleStay = 1
function makeObj(obj,nest,x,y){
nest = (!nest)?"":'document.'+nest+'.'
this.css = bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0
this.evnt = bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?this.css:0
this.showIt = b_showIt
this.moveIt = b_moveIt
this.slide = b_slide
this.slideIt = b_slideIt
this.obj = obj+"Object"
eval(this.obj+"=this")
return this
}
var px = bw.ns4||window.opera?"":"px";

function b_moveIt(x,y){this.x=x; this.y=y; this.css.left=this.x+px; this.css.top=this.y+px;}
function b_showIt(){this.css.visibility="visible"}
function b_slideIt(endx,endy,inc,speed,fn,wh) {
if (!this.slideactive) {
var distx = endx - this.x
var disty = endy - this.y
var num = Math.sqrt(Math.pow(distx,2) + Math.pow(disty,2))/inc
var dx = distx/num
var dy = disty/num
this.slideactive = 1
this.slide(dx,dy,endx,endy,speed,fn,wh)
}
}

function b_slide(dx,dy,endx,endy,speed,fn,wh) {
if (!fn) fn = null
if (!wh) wh = null
if (this.slideactive && (Math.floor(Math.abs(dx))<Math.floor(Math.abs(endx-this.x)) || Math.floor(Math.abs(dy))<Math.floor(Math.abs(endy-this.y)))) {
this.moveIt(this.x+dx,this.y+dy)
eval(wh)
slidTim = setTimeout(this.obj+".slide("+dx+","+dy+","+endx+","+endy+","+speed+",'"+fn+"','"+wh+"')",speed)
}
else{
this.slideactive = 0
this.moveIt(endx,endy)
eval(fn)
}
}
function slideballInit(){
oBut = new Array()
for (var i=0; i<=numItems; i++){
oBut[i] = new makeObj('divButton'+i)
}
oCircle = new makeObj('divCircle')
oBut[0].moveIt(250,100)
oBut[1].moveIt(310,100)
oBut[2].moveIt(370,100)
oBut[3].moveIt(420,100)
oBut[4].moveIt(480,100)
oCircle.moveIt(circleXstart,circleYstart)
//Showing the buttons
for(var i=0; i<=numItems; i++){
oBut[i].showIt()
}
}
var slidTim = 100;
var active = -1
function sbmover(num){
clearTimeout(slidTim)
oCircle.slideactive = false
oCircle.slideIt(oBut[num].x+circleXoffset,oBut[num].y+circleYoffset,circlePXspeed,circleTspeed)
}
function sbmout(num){
clearTimeout(slidTim)
oCircle.slideactive = false
if (active>-1 && circleStay) oCircle.slideIt(oBut[active].x+circleXoffset,oBut[active].y+circleYoffset,circlePXspeed,circleTspeed)
else oCircle.slideIt(circleXstart,circleYstart,circlePXspeed,circleTspeed)
}
function changeListing(num){
active = num
}
if(bw.bw) onload = slideballInit;
</script>
<div id="divButton0" class="clButtons">
<a href="#" onmouseover="sbmover(0)" onmouseout="sbmout(0)" onclick="changeListing(0); return false">链接1</a>
</div>
<div id="divButton1" class="clButtons">
<a href="#" onmouseover="sbmover(1)" onmouseout="sbmout(1)" onclick="changeListing(1); return false">链接2</a>
</div>
<div id="divButton2" class="clButtons">
<a href="#" onmouseover="sbmover(2)" onmouseout="sbmout(2)" onclick="changeListing(2); return false">链接3</a>
</div>
<div id="divButton3" class="clButtons">
<a href="#" onmouseover="sbmover(3)" onmouseout="sbmout(3)" onclick="changeListing(3); return false">链接4</a>
</div>
<div id="divButton4" class="clButtons">
<a href="#" onmouseover="sbmover(4)" onmouseout="sbmout(4)" onclick="changeListing(4); return false">链接5</a>
</div>
<div id="divCircle">
<img src=http://www.haosc.com/wytx/115/"jsimg/cursor.gif" border="0">
</div>
[返回上一页] [打印图像过来]
上一篇特效:改变网页背景图片
下一篇特效:雷达效果
     
| 关于本站 | 服务条款 | 友情连接 | 网站地图 | 联系方式 | 广告联系 |