All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
PHP,str_split()_php资料_编程技术
ASP.NET,2.0打造购物车和支付系统之一_[Asp.Net教程]
获得汉字字符串的首个拼音字母的缩写_.net资料_编程技术
c#中GDI+图形图像:GDI+中的画笔使用方法
ASP.NET技巧:远程抓取GOOGLE的自动翻译结果_[Asp.Net教程]
C#过滤所有HTML代码的函数_[Asp.Net教程]
ASP.NET技术获取IP与MAC地址的方法_[Asp.Net教程]
初学者来看:绝对简单易学的PHP入门教程_php资料_编程技术
在C#中使用帮助文件
精通数据库系列之入门-技巧篇5_mssql学习_编程技术
Reading number is top 10 pictures
Lewd,it is too lewd.
NeedWallpaper3
西游四格漫画(六)
Born After 90 Beijing sports university campus flower photos3
Photographed the passion of the clients and prostitutes in the sex trade picture1
The little girl with long hair1
Gang rape
Valentine's day comes, send some cartoon
Wild animals melee moment of life and death2
The money of more than 100 countries and regions5
Download software ranking
Tram sex maniac 2 (H) rar bag16
Tram sex maniac 2 (H) rar bag14
I'm come from Beijing1
天龙八部十二宫服务端
WebService在.NET中的实战应用教学视频 → 第5集
尖东毒玫瑰A
Boxer's Top ten classic battle6
双旗镇刀客A
Ashlynn Video3
传奇私服架设教程
delv published in(发表于) 2013/12/29 4:40:59 Edit(编辑)
php下js效果调用右侧小图左侧放大显示_php资料_编程技术

php下js效果调用右侧小图左侧放大显示_php资料_编程技术

php下js效果调用右侧小图左侧放大显示_php资料_编程技术-你的首页-uuhomepage.com

一、css部分:
/* CSS Document */
body,h1,h2,h3,h4,h5,h6,p,ul,ol,li,form,img,dl,dt,dd,table,th,td,blockquote,fieldset,div,strong,label,em{margin:0;padding:0;border:0;}
ul,ol,li{list-style:none;}
input,button{margin:0;font-size:12px;vertical-align:middle;}
body{font-size:12px;font-family:Arial, Helvetica, sans-serif; text-align:center; margin:0 auto;}
table{border-collapse:collapse;border-spacing:0;}


.clearfloat{height:0;font-size:1px;clear:both;line-height:0;}


#container{ width:995px;text-align:left; margin:0 auto;}
a{color:#333;text-decoration:none;}
a:hover{color:#ef9b11; text-decoration:underline;}


.txt_1 {font:bold 24px Verdana, Tahoma;color:#fff}
img.thumb_img {cursor:pointer;display:block;margin-bottom:10px; width:80px; height:50px; }
img#main_img {cursor:pointer;display:block;width:500px; height:400px;}
#gotop {cursor:pointer;display:block;}
#gobottom {cursor:pointer;display:block;}
#showArea {height:355px;margin:10px;overflow:hidden}
.info {color:#666;font:normal 9px Verdana;margin-top:20px}
.info a:link, .info a:visited {color:#666;text-decoration:none}
.info a:hover {color:#fff;text-decoration:none}


二、js部分
function $(e) {return document.getElementById(e);}
document.getElementsByClassName = function(cl) {
var retnode = [];
var myclass = new RegExp('\\b'+cl+'\\b');
var elem = this.getElementsByTagName('*');
for (var i = 0; i < elem.length; i++) {
var classes = elem[i].className;
if (myclass.test(classes)) retnode.push(elem[i]);
}
return retnode;
}
var MyMar;
var speed = 1; //速度,越大越慢
var spec = 1; //每次滚动的间距, 越大滚动越快
var ipath = 'uploadpic/'; //图片路径
var thumbs = document.getElementsByClassName('thumb_img');
for (var i=0; i thumbs[i].onmouseover = function () {$('main_img').src=this.rel; $('main_img').link=this.link;};
//thumbs[i].onclick = function () {location = this.link}
thumbs[i].onclick = function () {$('main_img').src=this.rel; $('main_img').link=this.link;}
}
$('main_img').onclick = function () {parent.location= this.link;}
$('gotop').onmouseover = function() {this.src = ipath + 'gotop2.gif'; MyMar=setInterval(gotop,speed);}
$('gotop').onmouseout = function() {this.src = ipath + 'gotop.gif'; clearInterval(MyMar);}
$('gobottom').onmouseover = function() {this.src = ipath + 'gobottom2.gif'; MyMar=setInterval(gobottom,speed);}
$('gobottom').onmouseout = function() {this.src = ipath + 'gobottom.gif'; clearInterval(MyMar);}
function gotop() {$('showArea').scrollTop-=spec;}
function gobottom() {$('showArea').scrollTop+=spec;}


三、php页面调用部分





























添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.