标题:
[交流]
请帮我解决一下这个插件的问题,为什么用不了
[打印本页]
作者:
tla
时间:
2007-11-6 16:56
标题:
请帮我解决一下这个插件的问题,为什么用不了
一切似乎都很正常,插件栏有图标,但点了之后没反应
请高手指教
全部文件[attach]34877[/attach]
其中[attach]34878[/attach]
<Script Language="JavaScript">
var indoc='<Html>\n <Head>\n <Title>Cookier</Title>\n <Meta Http-Equiv="Content-Type" C>\n <Meta Http-Equiv="MSThemeCompatible" C>\n </Head>\n\n <Style>\n Body\t\t{ Font-Size: 9pt; BackGround-Color: Black }\n Table\t\t{ Font-Size: 9pt; Border-Collapse: Collapse; Color: #B2B4BF }\n Tr\t\t{ Font-Family: 宋体; Font-Size: 9pt }\n Td\t\t{ Font-Family: 宋体; Font-Size: 9pt; Vertical-Align: Center }\n Form\t\t{ Margin-Top: 0px; Margin-Right: 0px; Margin-Bottom: 0px; Margin-Left: 0px; Font-Family: 宋体; Font-Size: 9pt }\n Button\t{ Border: #B2B4BF Solid 1; Background-Color: Black; Color: #B2B4BF }\n Input\t\t{ Border: None; Border-Bottom: #B2B4BF Solid 1; BackGround-Color: Black; Color: #B2B4BF }\n\n A:Link\t{ Color: #B2B4BF; Text-Decoration: UnderLine }\n A:Visited\t{ Color: #B2B4BF; Text-Decoration: UnderLine }\n A:Active\t{ Color: #B2B4BF; Text-Decoration: UnderLine }\n A:Hover\t{ Color: #D9DADF; Text-Decoration: None }\n </Style>\n\n <Script Language="JavaScript">\n function getCookie(Name) {\n var arr, reg = new RegExp("(^| )"+Name+"=([^;]*)(;|$)");\n if(arr=document.cookie.match(reg)) return unescape(arr[2]);\n else return null;\n }\n\n function setCookie(name,value) {\n document.cookie = name + "="+ escape (value) + ";expires=" + Form1.TimeoutTime.value;\n }\n function delCookie(name) {\n var exp = new Date();\n exp.setTime(exp.getTime() - 1);\n var cval=getCookie(name);\n if(cval!=null) document.cookie= name + "="+cval+";expires="+exp.toGMTString();\n }\n function setfrmCookieName(value) {\n Form1.CookieName.value = value\n }\n function setfrmWriteCookie(value) {\n Form1.WriteCookie.value = value\n }\n function getAllCookie() {\n ShowCookies.innerHTML=document.cookie;\n var arr, reg = /(^| )[^=]*=([^;]*)(;|$)/g;\n arr = document.cookie.match(reg);\n var tmpStr = "<Table><Tr><Td ColSpan=\'3\' ID=\'lTitle\'>Cookie变量列表: </Td></Tr>";\n var tmpArr;\n reg = /(^| )([^ ][^=]*)=([^;]*)(;|$)/;\n if (arr != null) {\n for (var i = 0; i < arr.length; i++) {\n tmpArr = arr
.match(reg);\n tmpStr += "<Tr onMouseover=\'mtr(lTitle, ltd" + i + "1, ltd" + i + "2, 1)\' onMouseout=\'mtr(lTitle, ltd" + i + "1, ltd" + i + "2, 2)\'><Td Align=\'Right\' ID=\'ltd" + i + "1\' onClick=\'setfrmCookieName(\\"" + tmpArr[2] + "
[url=file://\\")\]
\\")\'
[/url]
Style=\'Text-Decoration: UnderLine; Cursor: Hand\'>" + tmpArr[2] + "</Td><Td> : </Td><Td ID=\'ltd" + i + "2\'>" + tmpArr[3] + "</Td></Tr>";\n }\n }\n tmpStr += "</Table>";\n VShw.innerHTML = tmpStr;\n }\n\n function mtb(lo, o, sc) {\n var c1 = "#B2B4BF";\n var c2 = "Black";\n if (sc == 1) {c1 = "#D9DADF"; c2 = "#444444"; o.select()}\n lo.style.color = o.style.color = c1;\n o.style.background = c2;\n o.style.borderBottom = c1 + " Solid 1";\n }\n\n function mb(o, sc) {\n var c = "#B2B4BF";\n if (sc == 1) {c = "#D9DADF"}\n o.style.color = c;\n o.style.border = c + " Solid 1";\n }\n\n function mtr(lo, no1, no2, sc) {\n var c = (sc == 1)? "#D9DADF" : "#B2B4BF";\n no1.style.textDecoration = (sc == 1)? "None" : "Underline";\n lo.style.color = no1.style.color = no2.style.color = c;\n }\n <\/Script>\n\n <Body TopMargin="1" LeftMargin="0" Scroll="No"><Table CellPadding="0" Width="100%" Height="100%" Style="Border-Style: Dotted; Border-Width: 1; Border-Color: #B2B4BF"><Tr><Td Width="100%" Height="100%">\n <Table Align="Center" Width="100%"><Form Name="Form1">\n <Tr Align="Center"><Td>\n <Font Face="Monotype Corsiva" Size="6" Color="#B2B4BF"><B>JavaScript Cookier</Font></B></Font>\n </Td></Tr>\n <Tr Align="Center"><Td ID="ShowCookies"></Tr></Td>\n <Tr Align="Center"><Td ID="td1">Cookie名称: <Input Type="Text" Name="CookieName" Size="30" ></Td>\n <Tr Align="Center"><Td ID="td2">Cookie属性: <Input Type="Text" Name="WriteCookie" Size="30" ></Td></Tr>\n <Tr Align="Center"><Td ID="td3">Cookie有效期: <Input Type="Text" Name="TimeoutTime" Size="30" ></Td></Tr>\n <Tr Align="Center"><Td Align="Center"><Button >读入</Button> <Button >写入</Button> <Button >删除</Button> <Button >源读入</Button> <Button >有效期(1分钟)</Button></Td>\n <Tr><Td Align="Center" ID="VShw"></Td></Tr>\n </Form></Table>\n </Td></Tr></Table></Body>\n</Html>';
var w = window.open("", "_blank");
w.document.write(indoc);
//eval();
</Script>
[attach]34879[/attach][General]
Name=jsCookier
Author=Qingxbl
Version=1.00
ModuleType=SCRIPT
FileName=jsCookier.htm
Comments=用JavaScript来读写网站的Cookie
Type=BUTTON
HotIcon=c.ico
Icon=c.ico
StartAfterPageDone=
当双击那个.htm文件有效果[attach]34880[/attach]在其他浏览器中也可以用
[
本帖最后由 tla 于 2007-11-6 16:57 编辑
]
作者:
sky5
时间:
2007-11-6 21:11
到这看看吧
http://wiki.ever360.com/index.ph ... 4%E5%BC%80%E5%8F%91
[
本帖最后由 sky5 于 2007-11-6 21:13 编辑
]
作者:
tla
时间:
2007-11-6 23:49
哇,简直是捡到了!居然有这么一个好网址,怎么来这里这么久没热提起过!!!谢楼上
世界之窗维基百科由世界之窗浏览器热心用户协作撰写,主要内容为世界之窗浏览器使用指南、功能速查等
http://wiki.ever360.com/index.php?title=%E9%A6%96%E9%A1%B5
欢迎光临 世界之窗论坛 (http://bbs.theworld.cn/)
Powered by Discuz! 7.2