📄 js
字号:
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; Charset=gb2312">
<META name="GENERATOR" content="网络程序员伴侣-Lshdic 2002">
<STYLE>
a{text-Decoration:none;}
a:hover{color:red;text-Decoration:underline}
td{font-size:12px}
</STYLE>
</HEAD>
<BODY alink='red' vlink='#6772CD' link='#6772CD' style='margin:1;'>
<table width='770' align=center cellspacing=0 cellpadding=0><tr><Td>
<!--以下为左方导航表-->
<TABLE cellspacing=0 cellpadding=0 width=135 align='left' bgcolor='#BBE2F5' rules=none frame=lhs bordercolordark=white bordercolorlight=dddddd border=1>
<TR>
<Td valign=top height=722 id=myid2><img src='image/right.gif'> <A href='newuser.asp' style='color:Red'>注册会员</a> <a href='olduser.asp' style='color:red'>会员登陆</a><p>
注册会员:1171人<br>
当前在线:1人<br>
今日访问:6次<br>
总共访问:245次
<p> <br>用户:<a href='ismy.asp?user=Lshdic' target='_blank'>Lshdic</a><br>
<img src='image/user25.gif' width='60' height='60' align=left>
经验:20300<br>
身份:版主<br>
<a href='exitbbs.asp?user=lshdic' style='color:green'>退出登陆</a><br>
<a href='xiougai.asp' style='color:green'>修改档案</a><p> <br>
┏论坛栏目┓<A href='../index.asp' style='color:red'>首页</a> <A href='index.asp' style='color:red'>论坛</a><p>
<TABLE cellspacing=0 cellpadding=2 width=100% id=instrtab><tr><Td>
1:<A href='page.asp?dex=网页版面美工设计' style='color:1210dd'>网页版面美工设计</a><p>
2:<a href='page.asp?dex=网页前台脚本编程' style='color:1210dd'>网页前台脚本编程</a><p>
3:<a href='page.asp?dex=网页后台脚本编程' style='color:1210dd'>网页后台脚本编程</a><p>
4:<a href='page.asp?dex=Xml与Net时代编程' style='color:1210dd'>Xml与Net时代编程</a><p>
5:<a href='page.asp?dex=软件开发交流论坛' style='color:1210dd'>软件开发交流论坛</a><p>
6:<a href='page.asp?dex=讨论区及其他学术' style='color:1210dd'>讨论区及其他学术</a><p align=left>┏会员特有权利┓___<p style='line-height:1.5'>
1:<a href='instr.asp' style='color:A36424;font-weight:bold'>搜索所有帖子</a><br>
2:<a href='instr2.asp?page=1&strs=lshdic&rad1=作者&dex=网页版面美工设计,网页前台脚本编程,网页后台脚本编程,网站站长经验交流,软件开发交流论坛,蓝丽论坛站务讨论' style='color:A36424;font-weight:bold'>我提出过的问题</a><br>
3:<a href='duanxiaoxi.asp?page=1' style='color:A36424;font-weight:bold'>收发短消息</a><br>
4:<a href='jinghua.asp?dex=网页前台脚本编程' style='color:A36424;font-weight:bold'>显示本版精华贴OK</a><br>
5:<a href='../wenzhang.asp' style='color:A36424;font-weight:bold'>技术文章库</a><br>
6:<a href='../friendabout.asp' style='color:A36424;font-weight:bold' target='_blank'>论坛会员档案库</a><p>
<a href='http://www.lshdic.com/bbs'>©蓝丽论坛v<font color=red>2003.1</font></a>
</td></tr></table>
</td></TR></TABLE>
<script>
function window.onload(){
try{
myid2.height=window.document.body.scrollHeight}
catch(e){}
}
</script>
<TITLE>Dhtml:前几天有位网友问的一个很好的问题,看解决方案 -- Lshdic程序员论坛</TITLE>
<!--以下为右方内容表-->
<TABLE cellspacing=0 cellpadding=3 width=635 bordercolordark='white' bordercolorlight='black' cellspacing=0 cellpadding=0 border=1 rules=none frame=rhs>
<tr><td bgcolor=#6F81BC style='color:white' colspan=2><img src='image/redfile.gif' width=13 height=13> <b>主题</b>:Dhtml:前几天有位网友问的一个很好的问题,看解决方案 来自<a href='page.asp?dex=网页前台脚本编程' style='color:yellow'>网页前台脚本编程</a>,阅读121次
</td></tr><Tr bgcolor=eeeeee>
<Td width=120 align=center valign=top> <br>
<img src='image/user25.gif' height=90 width=90>
<br>楼主:<a href='ismy.asp?user=lshdic' target="_blank" title='点击查看lshdic的资料'>lshdic</a><br>经验:20300点<br><font color=#6772CD>神终级:宿命传说</font><br>02-11-11 17:32:19<br>
给作者<a href='duanxiaoxi.asp?emailto=Lshdic'>发送短消息</a><br><p><a href='userboos.asp?dex=网页前台脚本编程&areyou=编辑&myclass=325&isdex=true&page=1'>编辑</a> <a href='userboos.asp?dex=网页前台脚本编程&areyou=锁定&myclass=325&isdex=true&page=1'>锁定</a> <a href='userboos.asp?dex=网页前台脚本编程&areyou=转移&myclass=325&isdex=true'>转移</a> <a href=javascript:if(confirm('确实要删除该贴吗?'))location='userboos.asp?dex=网页前台脚本编程&areyou=删除&myclass=325&isdex=true'>删除</a>
<script>
function openw(values){
open1=window.open('','','resizable=1,scrollbars=1,menubar=0,toolbar=0,directories=0');
open1.document.open()
open1.document.write(values);
open1.document.close()
}
</script>
</td><td valign=top name=tds1>
<div style='word-Break:break-all;overflow:auto;width:490;line-height:1.5;border:1 solid orange;padding:5;border-top:0;border-right:0' id=htmdiv1>
<iframe id=a width=300 height=300 src='about:<script>str1="red";window.open("about:<img onclick=opener.parent.document.frames[1].document.bgColor=&#39;"+str1+"&#39;>")</script>'></iframe><br><iframe id=b src="about:<body>"></iframe> <br><br>具体是实现,iframeA弹出一个窗口C,窗口C中有个图片,点击这个图片使的父窗体的iframeB的颜色变红
<p align=right style='color:gray'>蓝丽程序员论坛收录 http://www.lshdic.com</div><br>
<input type=button value='运行在浏览器查看' style='background-color:eeeeee;border:1 cccccc solid;width:120' onclick="openw(htmdiv1.innerText)"><input type=button value='快速编辑' style='background-color:eeeeee;border:1 cccccc solid;' onclick="try{htmdiv1.contentEditable=true}catch(e){alert('您的浏览器版本过低无法使用该功能')}"> <font color=aaaaaa>注意:运行在浏览器查看时请注意含有恶意程序</a>
<p><font color=red>- - - - - - - - - - - - - - - -</font><p><font color=gray>人生尤如风云月,风来月走又一生<br>今宵愿于诸君醉,来日相别痛难绝<br>红颜一别难相见,思念欲泪恨不白<br>今生注是风云舞,何不把盏快一回<br>问何世事去匆匆,到问欲留却不住<br>悲欢聚散醉过后,惊雷醒来空空空<br><br>谁说程序员不会写诗?哈哈^o^</font></td></tr>
<Tr bgcolor=eeeeee><Td align=right colspan=2>本版版主特别权利:
<a href='boos.asp?dex=网页前台脚本编程&areyou=提前&myclass=325&isdex=true'>提前</a>
<a href='boos.asp?dex=网页前台脚本编程&areyou=修改&myclass=325&isdex=true&page=1'>修改</a>
<a href='boos.asp?dex=网页前台脚本编程&areyou=锁定&myclass=325&isdex=true'>锁定</a>
<a href='boos.asp?dex=网页前台脚本编程&areyou=置顶&myclass=325&isdex=true'>置顶</a>
<a href='boos.asp?dex=网页前台脚本编程&areyou=转移&myclass=325&isdex=true'>转移</a>
<a href='javascript:if(confirm("确实要删除该贴吗?"))location="boos.asp?dex=网页前台脚本编程&areyou=删除&myclass=325&isdex=true&page=1"'>删除</a>
</td></tr>
</script>
<tr><Td bgcolor=#BBE2F5 colspan=2><img src='image/yellowfile.gif' width=13 height=13> 跟贴:第<font color=red><b> 1 </b></font>楼
回复针对<a href='javascript:pos1.filetxt.focus();pos1.filetxt.value="[b]To:第[red]1[/red]楼的[red]JSTART[/red]朋友[/b]\n\n";void(0);'>JSTART</a>,回复引用<a href='javascript:pos1.filetxt.value="[hr][b]以下是引用[red]1[/red]楼[red]JSTART[/red]朋友的论点:[/b]\n\n"+htmdiv2.innerText+"[hr]\n";pos1.filetxt.focus();pos1.filetxt.value=pos1.filetxt.value.replace("蓝丽程序员论坛收录 http://www.lshdic.com","");void(0);'>JSTART</a>
, <a href="javascript:str1=prompt('请输入您要给赠送 JSTART 的经验值点数\n注意:送多少您自身的积分将减多少请小心哦,最多100分最少1分','2');if(str1&&str1>=1&&str1<=100&&str1.indexOf('.')==-1){location.href='ismy.asp?user=JSTART&number='+str1}else if(str1==null){void(0);window.close()}else{alert('送分数必须是范围 0 -- 100 的整数');window.close()}" target='_blank'>楼主结分给 JSTART</a>
</td></tr><Tr bgcolor=eeeeee>
<Td width=120 align=center valign=top> <br>
<img src='image/user10.gif' height=90 width=90 style='filter:gray'>
<br>作者:<a href='ismy.asp?user=JSTART' target=top title='点击查看JSTART的资料'>JSTART</a><br>经验:197点<br><font color=#6772CD>侠5级:月光剑士</font><br>02-11-7 17:09:24<br>
给作者<a href='duanxiaoxi.asp?emailto=JSTART'>发送短消息</a><br>
</td><td valign=top>
<div style='word-Break:break-all;overflow:auto;width:490;line-height:1.5;border:1 solid orange;padding:5;border-top:0;border-right:0' id=htmdiv2>
好~~`
<p align=right style='color:bbbbbb'>
蓝丽程序员论坛收录 http://www.lshdic.com</div><br>
<input type=button value='运行在浏览器查看' style='background-color:eeeeee;border:1 cccccc solid;width:120' onclick="openw(htmdiv2.innerText)"><input type=button value='快速编辑' style='background-color:eeeeee;border:1 cccccc solid;' onclick="try{htmdiv2.contentEditable=true}catch(e){alert('您的浏览器版本过低无法使用该功能')}">
<p><font color=red>- - - - - - - - - - - - - - - -</font><p><font color=gray>2008北京奥运会指定程序员</font>
</td></tr><Tr bgcolor=eeeeee><Td align=right colspan=2>
<a href='boos.asp?dex=网页前台脚本编程&areyou=修改&myclass=327&isdex=false&page=1'>修改</a>
<a href='javascript:if(confirm("确实要删除该贴吗?"))location="boos.asp?dex=网页前台脚本编程&areyou=删除&myclass=327&isdex=false&page=1"'>删除</a>
</td></tr>
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -