fold all codes
摘要: 太简单了,功能也就不完善。拖动的时候,如果鼠标移动的太快,就乱了。/htdocs/html/dd.html<html><head><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/><title>js拖动</title><styletype="text/css">#test{width:200px;height:150px;border:1pxsolid#ccc;position:abs 阅读全文
posted @ 2011-11-03 13:03 hylent 阅读(183) 评论(0) 推荐(0)
摘要: /qt/musicplayer/main.cpp#include<QtGui/QApplication>#include"widget.h"intmain(intargc,char*argv[]){QApplicationa(argc,argv);a.setApplicationName("musicplayer");Widgetw;w.show();returna.exec();}/qt/musicplayer/widget.h#ifndefWIDGET_H#defineWIDGET_H#include<QWidget>#inc 阅读全文
posted @ 2011-11-03 11:59 hylent 阅读(1533) 评论(0) 推荐(0)
摘要: /htdocs/h/index.php<?phpset_time_limit(100);$baseUri=substr($_SERVER['SCRIPT_NAME'],0,strrpos($_SERVER['SCRIPT_NAME'],'/')+1);if(!isset($_GET['id'])||intval($_GET['id'])<1){echo'<?xmlversion="1.0"encoding="UTF-8"?><!DOCTY 阅读全文
posted @ 2011-11-03 11:44 hylent 阅读(1933) 评论(0) 推荐(0)
摘要: /cgi-bin/getfile.cpp#include<iostream>#include<fstream>#include<string>#include<cstdlib>usingnamespacestd;voidhtmlspecialchars(conststring&s,string&ret){ret="";for(string::const_iteratori=s.begin();i!=s.end();i++){switch(*i){case'<':ret+="&am 阅读全文
posted @ 2011-11-03 11:38 hylent 阅读(412) 评论(0) 推荐(0)