收藏一些不常用,但是有用的代码
网络编程
<input type=button value=导入收藏夹 onclick="window.external.ImportExportFavorites(true,'http://localhost');" />
<input type=button value=导出收藏夹 onclick="window.external.ImportExportFavorites(false,'http://localhost');" />
<input type=button value=整理收藏夹 onclick="window.external.ShowBrowserUI('OrganizeFavorites', null)" />
<input type=button value=语言设置 onclick="window.external.ShowBrowserUI('LanguageDialog', null)" />
<input type=button value=加入收藏夹 onclick="window.external.AddFavorite('http://www.meizz.com/', '梅花雨中文网')" />
<input type=button value=加入到频道 onclick="window.external.addChannel('http://www.meizz.com/')" />
<input type=button value="打开 Internet 选项" onclick="window.external.showBrowserUI('PrivacySettings', null)" />
IE7添加内置搜索
window.external.AddSearchProvider('xx.xml');
XML的样子是
http://www.microsoft.com/windows/ie/searchguide/spbuilder.mspx?Encoding=UTF-8&Name=aoao.G%20Search&URI=http%3A%2F%2Fwww.google.com%2Fcustom%3Fhl%3Dzh-CN%26newwindow%3D1%26client%3Dgoogle-coop-np%26cof%3DCX%253ASome%252520Search%253B%26q%3DTEST%26cx%3D014628494448926329948%253Amspuqmxeatg
<input type=button value=导出收藏夹 onclick="window.external.ImportExportFavorites(false,'http://localhost');" />
<input type=button value=整理收藏夹 onclick="window.external.ShowBrowserUI('OrganizeFavorites', null)" />
<input type=button value=语言设置 onclick="window.external.ShowBrowserUI('LanguageDialog', null)" />
<input type=button value=加入收藏夹 onclick="window.external.AddFavorite('http://www.meizz.com/', '梅花雨中文网')" />
<input type=button value=加入到频道 onclick="window.external.addChannel('http://www.meizz.com/')" />
<input type=button value="打开 Internet 选项" onclick="window.external.showBrowserUI('PrivacySettings', null)" />
IE7添加内置搜索
window.external.AddSearchProvider('xx.xml');
XML的样子是
http://www.microsoft.com/windows/ie/searchguide/spbuilder.mspx?Encoding=UTF-8&Name=aoao.G%20Search&URI=http%3A%2F%2Fwww.google.com%2Fcustom%3Fhl%3Dzh-CN%26newwindow%3D1%26client%3Dgoogle-coop-np%26cof%3DCX%253ASome%252520Search%253B%26q%3DTEST%26cx%3D014628494448926329948%253Amspuqmxeatg
解决 firefox 不支持 document.all的方法
今天为Kinoko-World写v2版,遇到了点js的小问题。document.all在firefox下不支持,上网搜索了一下,用document.getElementsByTagName("*")替代就OK了。getElementsByTagName("*"
pjblog修改技巧汇总
一、日志回复框中的表情一行显示的个数,怎么修改?标准的是8个,我想修改成每行5个,因为我上传的表情尺寸有点大,造成页面扩大,有点混乱方
js资料toString 方法
toString方法返回对象的字符串表示。objectname.toString([radix])参数objectname必选项。要得到字符串表示的对象。radix可选项。指定将数字值转换为字符串时的
编辑:568数据
标签:收藏夹,字符串,选项,不支持,方法