Archive

Posts Tagged ‘javascript’

PHP的JavaScript框架 PHP.JS

January 20th, 2010 No comments

PHP.JS是一个开源项目,它将PHP中的部分函数功能移植到javascript中。只要在你的项目里包括这个php.js库文件,你就可以在 客户端浏览器上运行你所熟悉的PHP函数了。比如md5(),date(),mktime(),base64_decode()。

该项目还提供了javascript原生并不支持的一些功能,比如file_get_contents(), mktime(), serialize()等

  • Share/Bookmark
Categories: 未分类 Tags: , , ,

通过javascript更改ie页面设置

August 25th, 2008 No comments

<script language=”javascript”>
function PageSetup(key,value)
{
try{
 var RegWsh = new ActiveXObject(“WScript.Shell”)
 RegWsh.RegWrite(key,value)
 }catch(e){}
}
//设置页头
PageSetup(“HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\PageSetup\\header”,”&w&b页码,&p/&P”);

PageSetup(“HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\PageSetup\\margin_left”,”0″);

PageSetup(“HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\PageSetup\\margin_right”,”0″);

PageSetup(“HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\PageSetup\\margin_top”,”0″);

PageSetup(“HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\PageSetup\\margin_bottom”,”0″);

</script>

 

  • Share/Bookmark
Categories: 电脑技巧 Tags: , , ,