通行证│用户名: 密码: 验证码: 验证码,看不清楚?请点击刷新验证码 电信网通铁通移动   在线
资源搜索:
热门搜索:Linux VB C语言 PhotoShop Flash TCP/IP
   首页 | 文章 | 软件 | 动画 | 资源 | 励志 | 骗术 | 论坛 | 邮箱 | 会员中心 | 军事 | 科技 | 博客 | 图片 | 商城 | 最新更新 | 800g资源 | 爱心黑客
您现在的位置: 爱国者黑客 >> 资源 >> WEB开发 >> JavaScript >> 应用技巧 >> 文章正文
javascript的图片浏览
责任编辑:admin   更新日期:2005-8-6


<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="images/test.css" type="text/css">
<script language="JavaScript">
var w=200;
function closenavi() {
w-=10;
if (w>-10) {window.parent.testframeset.cols = ''+w+',*';repeat=setTimeout("closenavi()",10);}
else {clearTimeout(repeat);w=200;}
}

 

function initIt(){
divCount = document.all.tags("DIV");
for (i=0; i<divCount.length; i++) {
obj = divCount(i);
if (obj.className == "child" || obj.className == "child1") obj.style.display = "none";
}
}

function expandIt(el) {

obj = eval("page" + el);
obj2 = eval("main" + el);
if (obj.style.display == "none") {
obj.style.display = "block";
obj2.all.tags('img')[0].src='images/icon-folder1-open.gif';
obj2.all.tags('img')[1].src='images/icon-folder-open.gif';
}
else {
obj.style.display = "none";
obj2.all.tags('img')[0].src='images/icon-folder1-close.gif';
obj2.all.tags('img')[1].src='images/icon-folder-close.gif';
}

}

onload = initIt;

var judge=0;
function expandall(o) {
if (judge==0) {divCount2 = document.all.tags("DIV");
for (i=0; i<divCount2.length; i++) {
obj2 = divCount2(i);
if (obj2.className == "child" || obj.className == "child1" || obj2.style.display == "none")
{obj2.style.display = "block";}
if (obj2.className == "menu")
{obj2.all.tags('img')[0].src='images/icon-folder1-open.gif';
obj2.all.tags('img')[1].src='images/icon-folder-open.gif';
}
}

judge=1;
o.src='images/icon-closeall.gif';
o.alt='全部折叠';
}
else {divCount2 = document.all.tags("DIV");
for (i=0; i<divCount2.length; i++) {
obj2 = divCount2(i);
if (obj2.className == "child" || obj.className == "child1" || obj2.style.display == "block")
{obj2.style.display = "none";}
if (obj2.className == "menu")
{obj2.all.tags('img')[0].src='images/icon-folder1-close.gif';
obj2.all.tags('img')[1].src='images/icon-folder-close.gif';
}
}

judge=0;
o.src='images/icon-expandall.gif';
o.alt='全部展开';
}
}

</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" onselectstart="return false;">
<table id=control width="100%" border="0" cellspacing="0" cellpadding="0" class="borderon">
<tr>
<td height="20" style="padding-top:3px"><nobr> 站点导航</nobr></td>
<td width="20" align="center" valign="top"><img src="images/icon-expandall.gif" width="16" height="15" class="button" onclick="expandall(this)" vspace="2" alt="全部展开"></td>
<td width="20" align="center" valign="top"><img src="images/icon-close.gif" width="16" height="15" class="button" onClick="closenavi()" vspace="2" alt="关闭左栏"></td>
</tr>
</table>

<div id="navi" style="position:relative; width:100%; height:expression(body.offsetHeight-control.offsetHeight-2); z-index:1; left: 0px; top: 0px; overflow: auto">
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="12"><img src="images/spacer.gif" width="12" height="12"></td>
<td valign="top"> </td>
</tr>
<tr>
<td valign="top"> </td>
<td valign="top">

<div id="main1" class="menu" onClick="expandIt('1'); return false"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="35"><img src="images/icon-folder1-close.gif" width="15" height="13"><img src="images/icon-folder-close.gif" width="16" height="15" align="absmiddle"></td>
<td>原创作品</td>
</tr>
</table>
</div>
<div id="page1" class="child" style="padding-left:15px">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20"><img src="images/icon-page.gif" width="16" height="15" align="absmiddle" hspace="4"><a href="page01.htm" target="iframemain" onclick="parent.mainFrame.iframexxx.style.visibility='visible'">喷枪效果</a></td>
</tr>
<tr>
<td height="20"><img src="images/icon-page.gif" width="16" height="15" align="absmiddle" hspace="4"><a href="page02.htm" target="iframemain" onclick="parent.mainFrame.iframexxx.style.visibility='visible'">模拟滚轮效果</a></td>
</tr>
<tr>
<td height="20"><img src="images/icon-page.gif" width="16" height="15" align="absmiddle" hspace="4"><a href="page03.htm" target="iframemain" onClick="parent.mainFrame.iframexxx.style.visibility='visible'">拖动页面效果</a></td>
</tr>
<tr>
<td height="20"><img src="images/icon-page.gif" width="16" height="15" align="absmiddle" hspace="4"><a href="page04.htm" target="iframemain" onClick="parent.mainFrame.iframexxx.style.visibility='visible'">录制光标位置</a></td>
</tr>
<tr>
<td height="20"><img src="images/icon-page.gif" width="16" height="15" align="absmiddle" hspace="4"><a href="page05.htm" target="iframemain" onClick="parent.mainFrame.iframexxx.style.visibility='visible'">选区效果</a></td>
</tr>
<tr>
<td height="20"><img src="images/icon-page.gif" width="16" height="15" align="absmiddle" hspace="4"><a href="#" onClick="window.open('page06.htm','popwin','width=220,height=425');parent.mainFrame.iframexxx.style.visibility='hidden'">疯狂窗口</a></td>
</tr>
<tr>
<td height="20"><img src="images/icon-page.gif" width="16" height="15" align="absmiddle" hspace="4"><a href="#" onClick="window.open('page07.htm','popwin2','width=600,height=400,resizable=yes');parent.mainFrame.iframexxx.style.visibility='hidden'">在线图片浏览</a></td>
</tr>
<tr>
<td height="20"><img src="images/icon-page.gif" width="16" height="15" align="absmiddle" hspace="4"><a href="page08.htm" target="iframemain" onclick="parent.mainFrame.iframexxx.style.visibility='visible'">放大的页面</a></td>
</tr>
<tr>
<td height="20"><img src="images/icon-page.gif" width="16" height="15" align=&quo

[1] [2] 下一页

  • 上一篇文章:
  • 下一篇文章:
  • 热门文章
    Olldbg常见问题
    汇编语言的艺术(组合语言的艺术)--观
    汇编语言的艺术(组合语言的艺术)--准
    汇编语言的艺术(组合语言的艺术)--基
    汇编语言的艺术(组合语言的艺术)--基
    汇编语言---程式设计 (4)
    虚拟8086模式
    SYS命令使用说明
    javascript + CSS 实现动态菜单显
    推荐文章
    自制Windows XP SP2自动安装光盘
    SQLServer注入工具改进版 v1.02
    使用photoshop CS进行自然美肤
    Photoshop绘制诺基亚手机
    PHOTOSHOP制作秋日之梦
    PHOTOSHOP鼠绘名模王爱萍
    Photoshop制作晶莹飞溅的水珠
    教你用PHOTOSHOP做放大镜
    鼠绘美女及服装修画全过程