一个完整的类似ctrl+f的功能
来源:互联网 发布:淘宝收入排行榜 编辑:程序博客网 时间:2024/05/22 06:21
一个完整的类似ctrl+f的功能
<style type=text/css>
BODY {
FONT-FAMILY: "宋体","Arial","Times New Roman"; FONT-SIZE: 12px; LETTER-SPACING: 1pt; LINE-HEIGHT: 22px; MARGIN-LEFT: 5pt; MARGIN-TOP: 5pt
}
#scontentmain {
BACKGROUND-IMAGE: url(http://www.jzzy.com/photo/pc0415.gif); HEIGHT: 30px; POSITION: absolute; TOP: 28px; WIDTH: 228px
}
#scontentbar {
BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; CURSOR: hand; HEIGHT: 15px; PADDING-BOTTOM: 1px; PADDING-LEFT: 1px; PADDING-RIGHT: 1px; PADDING-TOP: 1px; POSITION: absolute; TOP: 5px; WIDTH: 100%
}
#scontentsub {
POSITION: absolute; TOP: 28px; WIDTH: 100%
}
A.a1:hover {
BORDER-BOTTOM: #4a8ff2 1px solid; BORDER-LEFT: #4a8ff2 1px solid; BORDER-RIGHT: #4a8ff2 1px solid; BORDER-TOP: #4a8ff2 1px solid; LINE-HEIGHT: 13pt; WIDTH: 83px; 12px;: 1869FE; align: center
}
A.a1:link {
COLOR: #ffffff; TEXT-DECORATION: none; 12px;align: center
}
TD {
FONT-SIZE: 12px
}
.pos {
POSITION: relative
}
</style>
<SCRIPT language=JavaScript>
/*** DownLoad.PcHome.net Online Search Engine ***/
/*** Author:Yoo Lee ***/
/*** Version:1.0 2001/06/04 ***/
var dragapproved=false
var zcor,xcor,ycor
function drag_onclick() {
if (search1.drag.checked == true ) dragapproved=false
else dragapproved=true
}
function movescontentmain(){
if (event.button==1&&dragapproved&&search1.drag.checked == true){
zcor.style.pixelLeft=tempvar1+event.clientX-xcor
zcor.style.pixelTop=tempvar2+event.clientY-ycor
leftpos=document.all.scontentmain.style.pixelLeft-document.body.scrollLeft
toppos=document.all.scontentmain.style.pixelTop-document.body.scrollTop
return false
}
}
function dragscontentmain(){
if (!document.all)
return
if (event.srcElement.id=="scontentbar"){
dragapproved=true
zcor=scontentmain
tempvar1=zcor.style.pixelLeft
tempvar2=zcor.style.pixelTop
xcor=event.clientX
ycor=event.clientY
document.onmousemove=movescontentmain
}
}
document.onmousedown=dragscontentmain
document.onmouseup=new Function("dragapproved=false")
function aa(e)
{
if (e==0) alert("\n- = 页面字符搜索引擎 1.0 测试版 = \n\n- 电脑之家 版权所有\n\n- 重写了部分代码\n- 修正鼠标拖动跳跃的bug,\n- 保留选择可否拖动……\n\n- 其他功能正在测试中!\n\n");
return;
}
function cose()
{
if(confirm("即将关闭此窗口,如确认请按确定!\n\n如要重开此窗口请刷新页面。"))
scontentmain.style.display='none'
else
scontentmain.style.display=''
}
//screen.width,screen.height
document.write('<div id="scontentmain"><form name="search1" onSubmit="return findInPage(this.Word.value);"><div id="scontentbar"> <img src="http://www.jzzy.com/photo/alt0415.gif" alt="帮助" border="0" onClick="aa(0)"><img src="http://www.jzzy.com/photo/usr0415.gif" usemap="#Map" border="0"><map name="Map"><area shape="rect" coords="20,0,40,20" alt="最大化" onclick="offdisplay()"><area shape="rect" coords="0,0,20,20" alt="最小化" onclick="ondisplay()"><area shape="rect" shape="rect" coords="34,0,60,19" alt="关闭" onclick="cose()"></map></div><div id="scontentsub"" style="visibility: show"><table width="228" border="1" cellpadding="2" cellspacing="0" bordercolorlight="#000000" bordercolordark="#FFFFFF" bgcolor="#0099CC" class=font1>
- 一个完整的类似ctrl+f的功能
- CTRL+F的作用
- JS实现页面查找功能,类似与Ctrl+F
- Jquery完成CTRL+F的页面搜索功能
- 一个类似AOP的完整例子(一)!
- 如何实现一个文章中 Ctrl+F的搜索
- 实现一个功能类似Any的类
- Chrome 和 IE9+浏览器的Ctrl+F 查找功能会影响页面渲染
- JS 页面内容搜索,类似于 Ctrl+F功能的实现代码
- 模拟浏览器的查找功能(Ctrl+F),同时兼容IE和Chrome
- java学习总结(16.05.25)eclipse的查找和替换功能 Ctrl+F
- Pycharm 中的 全局搜索(ctrl+shift+f) 功能无法使用的原因
- 网页查找功能 ctrl+f
- Eclipse 的快捷键Ctrl+Shift+F 不起作用
- 90%的人不知道使用 CTRL + F
- LabVIEW鼠标配合Ctrl键的一个神奇功能
- DOS下类似LINUX下的tail -f 功能的命令
- Ctrl+C的功能实现
- python ImportError: No module named 的错误解决思路和方法
- ip范围限制函数
- Machine Learning(Andrew)Week7(下)
- 一道小的算法题
- 从输入 URL 到页面加载完的过程中都发生了什么事情 —— 网络优化篇
- 一个完整的类似ctrl+f的功能
- .NET断想
- 设计模式--装饰模式
- undefined reference to "...."
- beforeunload处理用户最后事件,提交数据,用户退出
- android4.4 事件传递机制
- 用ASP编程控制在IIS建立Web站点
- Linux下设置TOMCAT环境变量的三种方法
- 新西兰 working holiday visa