javascript读取select中选择项的value值:
document.form1.select1.options[document.form1.select1.selectedIndex].value
javascript
为p标记创建链接
<script>
function test()
{
var myP = document.getElementsByTagName("p");
for(var i=0;i<myP.length;i++)
{
var createLink = document.createElement("a");
createLink.setAttribute("class","...   
阅读全文
游戏
进入注册表编辑器,展开“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters”项,新建一个“DisableDHCPMediaSense”
,数据类型为“DWORD值”,将该值设置为“1”。重新启动Windows XP系统后,现在,即使拔掉网线也有IP地址.
   
阅读全文
<?php
function format_output($output) {
/****************************************************************************
* Takes a raw string ($output) and formats it for output using a special
* stripped down markup that is similar to HTML
****************************************************************************/
$...   
阅读全文
手动方法是用ajax请求服务器最新文件,并加上请求头If-Modified-Since和Cache-Control,如下:
$.ajax({
type: "GET",
url: "static/cache.js",
dataType: "text",
beforeSend :function(xmlHttp){
xmlHttp.setRequ...   
阅读全文
关于从WEB服务器下载中文文件名的问题,需要更改
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8" />    
阅读全文