<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="refresh" content="0;URL=http://www.jscode.cn/jscode/js08041601/index.html">
<title></title>
</head>
<body>
文件较多,查看演示请直接点击下面的 预览效果,下载该特效请点击上处链接下载
</body>
</html>
-
现有资源资料: 1084, 评论: 8
-
仿3721首页模块拖曳移动效果
-
仿易趣、拍拍、taobao等站首页广告图片随机轮显切换效果
仿易趣、拍拍、taobao等站首页广告图片随机轮显切换效果
请点击此处直接下载该效果代码:下载该特效所有文件 -
从左至右慢慢移动展开的符合标准对联广告
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-cn"><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-CN" />
<meta content="all" name="robots" />
<title>从左至右慢慢移动展开的符合标准对联广告 - 我要下资源|51DownZy.CoM|---|</title>
</head><body>
<SCRIPT language="JavaScript">
var delta=0.015;
var collection;
var closeB=false;
function floaters() {
this.items = [];
this.addItem = function(id,x,y,content)
{
document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute; width:80px; height:60px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>');var newItem = {};
newItem.object = document.getElementById(id);
newItem.x = x;
newItem.y = y;this.items[this.items.length] = newItem;
}
this.play = function()
{
collection = this.items
setInterval('play()',30);
}
}
function play()
{
if(screen.width<=800 || closeB)
{
for(var i=0;i<collection.length;i++)
{
collection[i].object.style.display = 'none';
}
return;
}
for(var i=0;i<collection.length;i++)
{
var followObj = collection[i].object;
var followObj_x = (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
var followObj_y = (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y);if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {
var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
followObj.style.left=followObj.offsetLeft+dx;
}if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {
var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;
dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
followObj.style.top=followObj.offsetTop+dy;
}
followObj.style.display = '';
}
}
function closeBanner()
{
closeB=true;
return;
}var theFloaters = new floaters();
//
theFloaters.addItem('followDiv1','document.body.clientWidth-100',0,'<a onClick="closeBanner();" href=http://www.51downzy.com target=_blank><img src=http://www.0512edu.com.cn/ads/img/adimg/dlFlash_xkjy1.gif border=0></a><br><br><a href="javascript:closeBanner();" title="关闭上面的广告">×</a>');
theFloaters.addItem('followDiv2',0,0,'<a onClick="closeBanner();" href=http://www.51downzy.com target=_blank><img src=http://www.0512edu.com.cn/ads/img/adimg/dlFlash_xkjy1.gif border=0 ></a><br><br><a href="javascript:closeBanner();" title="关闭上面的广告">×</a>');
theFloaters.play();
</SCRIPT>
<p>刷新下看看</p></body>
</html>
-
符合web标准且可单独关闭的多幅对联广告
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-cn"><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-CN" />
<meta content="all" name="robots" />
<title>符合web标准且可单独关闭的多幅对联广告 - 我要下资源|51DownZy.CoM|---</title>
</head><body>
<SCRIPT language="JavaScript">
//符合web标准且可关闭的多幅对联广告
//Modified By 我要下资源 www.51downzy.com
<!--
lastScrollY = 0;
function heartBeat(){
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
diffY = document.documentElement.scrollTop;
else if (document.body)
diffY = document.body.scrollTop
else
{/*Netscape stuff*/}
//alert(diffY);
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.getElementById("leftDiv").style.top = parseInt(document.getElementById("leftDiv").style.top)+percent+"px";
document.getElementById("rightDiv").style.top = parseInt(document.getElementById("rightDiv").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
//alert(lastScrollY);
}
//下面这段删除后,对联将不跟随屏幕而移动。
window.setInterval("heartBeat()",1);
//-->
//关闭按钮
function close_left1(){
left1.style.visibility='hidden';
}
function close_left2(){
left2.style.visibility='hidden';
}
function close_right1(){
right1.style.visibility='hidden';
}
function close_right2(){
right2.style.visibility='hidden';
}
//显示样式
document.writeln("<style type=\"text\/css\">");
document.writeln("#leftDiv,#rightDiv{width:100px;height:100px;background-color:#fff;position:absolute;}");
document.writeln(".itemFloat{width:100px;height:auto;line-height:5px}");
document.writeln("<\/style>");
//以下为主要内容
document.writeln("<div id=\"leftDiv\" style=\"top:40px;left:5px\">");
//------左侧各块开始
//---L1
document.writeln("<div id=\"left1\" class=\"itemFloat\">");
document.writeln("<embed src=http://www.0512edu.com.cn/ads/img/site/kjfd/Img/dlFlash.swf width=100 height=300></embed>");
document.writeln("<br><a href=\"javascript:close_left1();\" title=\"关闭上面的广告\">×<\/a><br><br><br><br>");
document.writeln("<\/div>");
//---L2
document.writeln("<div id=\"left2\" class=\"itemFloat\">");
document.writeln("<a target=_blank href=http://www.51downzy.com><img border=0 src=http://www.0512edu.com.cn/ads/img/adimg/dll01.gif></a>");
document.writeln("<br><a href=\"javascript:close_left2();\" title=\"关闭上面的广告\">×<\/a>");
document.writeln("<\/div>");
//------左侧各块结束
document.writeln("<\/div>");
document.writeln("<div id=\"rightDiv\" style=\"top:40px;right:5px\">");
//------右侧各块结束
//---R1
document.writeln("<div id=\"right1\" class=\"itemFloat\">");
document.writeln("<a target=_blank href=http://www.51downzy.com><img border=0 src=http://www.0512edu.com.cn/ads/img/adimg/dlFlash_xkjy1.gif></a>");
document.writeln("<br><a href=\"javascript:close_right1();\" title=\"关闭上面的广告\">×<\/a><br><br><br><br>");
document.writeln("<\/div>");
//---R2
document.writeln("<div id=\"right2\" class=\"itemFloat\">");
document.writeln("<a target=_blank href=http://www.51downzy.com><img border=0 src=http://www.0512edu.com.cn/ads/img/adimg/dlr01.gif></a>");
document.writeln("<br><a href=\"javascript:close_right2();\" title=\"关闭上面的广告\">×<\/a>");
document.writeln("<\/div>");
//------右侧各块结束
document.writeln("<\/div>");
</SCRIPT>
<p>0</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</body></html>
-
仿yahoo首页特色服务内容切换效果
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>我要下资源|51DownZy.CoM|---仿yahoo首页特色服务内容切换效果</title>
</head>
<style type="text/css">
/* common styling *//* Set up the default font and ovrall size to include image */
body {
background: #fff;
font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
font-size: 12px;
}
#tabs {width:400px; text-align:center; background: url(images/icon/top.gif); margin:30px 0 0 175px; position:absolute; z-index:500;}
#tabs ul {padding:0; margin:0; width:400px; list-style:none; position:relative;}
#tabs ul li {float:left; display:inline; width:125px; height:53px; margin:0 4px;}
#tabs ul li a.outer {display:block; width:125px; height:49px; border-bottom:1px solid #9c9c9c; text-align:center; line-height:45px; text-decoration:none; text-indent:50px; color:#464; font-weight:bold; margin-bottom:3px; font-size:11px;}#tabs ul li a.one {background:#fff url(images/icon/world.jpg) top left no-repeat;}
#tabs ul li a.two {background:#fff url(images/icon/key.jpg) top left no-repeat;}
#tabs ul li a.three {background:#fff url(images/icon/mail.jpg) top left no-repeat;}
#tabs ul li a.four {background:#fff url(images/icon/search.jpg) top left no-repeat;}
#tabs ul li a.five {background:#fff url(images/icon/profile.jpg) top left no-repeat;}
#tabs ul li a.six {background:#fff url(images/icon/draw.jpg) top left no-repeat;}
#tabs ul li div {display:none;}#tabs ul li:hover {padding-bottom:132px; border-bottom:1px solid #fff; color:#000; margin-bottom:0;}
#tabs ul li:hover > a.outer {color:#000; background-position:0 -55px; height:55px; cursor:default;}
* html #tabs ul li a.outer:hover {padding-bottom:130px; border-bottom:1px solid #fff; height:55px; color:#000; margin-bottom:0;background-position:0 -55px; height:55px; cursor:default;}
#tabs ul li:hover div {display:block; padding:5px; position:absolute; left:4px; top:55px; width:381px; height:118px; border-bottom:3px solid #fff;}
#tabs ul li a:hover div {display:block; padding:5px; position:absolute; left:4px; top:55px; width:381px; height:118px; border-bottom:3px solid #fff;}#tabs ul li a:hover div.tab_left,
#tabs ul li:hover div.tab_left
{background:#fff url(images/icon/tab_left.gif);}#tabs ul li a:hover div.tab_center,
#tabs ul li:hover div.tab_center
{background:#fff url(images/icon/tab_center.gif);}#tabs ul li a:hover div.tab_right,
#tabs ul li:hover div.tab_right
{background:#fff url(images/icon/tab_right.gif);}.clear {clear:both; height:0; line-height:0; overflow:hidden;}
#tabs span.base {display:block; height:20px;font-size:10px; color:#bc8f8f; background:url(images/icon/bottom.gif) bottom;}
#tabs div h5 {font-size:12px; margin-bottom:5px;}
#tabs div p {font-weight:normal; text-align:left; color:#000; margin-top:2px;}
#tabs div a img {border:0;}
#tabs div img.image {float:left; border:0; margin-top:-35px; margin-right:5px;}
#tabs div a.unlock {background:url(images/icon/unlock.gif); display:block; width:30px; height:30px; margin:0 auto;}
#tabs div a:hover.unlock img {visibility:hidden;}
#tabs p.bold {color:#069; padding-top:5px;}
* html #tabs p.fire {margin-top:-15px;}
* html #tabs form {margin-top:-20px;}
#tabs p.buttons {text-align:center;}
</style>
<body><div id="tabs">
<p class="bold">Mini tabbed pages - 9th February 2007</p>
<ul>
<li><a href="#nogo" class="one outer">WORLD<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<div class="tab_left">
<h5>World Wide Web</h5>
<p>This area can hold anything you like<a href="index.html">Main Menu</a>.</p>
</div>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="#nogo" class="two outer">UNLOCK<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<div class="tab_center">
<h5>Unlock the Secrets</h5>
<a href="http://www.w3.org/Style/CSS/" class="unlock" title="Unlock the secrets of CSS at w3.org"><img src="images/icon/lock.gif" alt="Locked" title="Locked" /></a>
</div>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="#nogo" class="three outer">MAIL<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<div class="tab_right">
<h5>Email</h5>
<p>Maybe a link to your emails or a form asking to login to<a href="Contact">http://www.cssplay.co.uk/w3c/contact.html">Contact Page</a>.</p>
</div>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
</ul>
<br class="clear" />
<ul>
<li><a href="#nogo" class="four outer">SEARCH<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<div class="tab_left">
<h5>Search This Site</h5>
<p>You can add a search form here.</p>
</div>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="#nogo" class="five outer">PROFILE<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<div class="tab_center">
<h5>Your Profile</h5>
<form id="two" action="..." method="post">
<fieldset id="personal">
<label for="login">login : </label>
<input name="login" id="login" type="text" tabindex="1" />
</fieldset>
<p class="buttons">
<input id="button1" type="submit" value="Send" />
<input id="button2" type="reset" value="Reset" />
</p>
</form>
</div>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="#nogo" class="six outer">DRAW<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<div class="tab_right">
<h5>Learn how to Draw</h5>
<a href="http://www.adobe.com/products/fireworks/"><img class="image" src="images/icon/fireworks.gif" alt="Adobe Fireworks 8" title="Adobe Firerworks 8" /></a>
<p class="fire">Get top-quality design results. </p>
</div>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
</ul>
<br class="clear" />
<span class="base">©2007 Stu Nicholls - All rights reserved</span>
</div></body>
</html>
