2011 年文章归档
共 8 篇文章
ajax练习
<%@ page contentType="text/html;charset=utf-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>…
2011-10-25 17:11
js延时跳转函数
<script type="text/javascript"> <!-- function go(t,url){ //t设置跳转时间:秒 //url设置跳转网址 document.write("<div id=text>本页将在<strong id=tt></strong>后,跳转至:<span id=link></span></div>"); document.getElementById("link").innerHTML="<a href="+url+">"+url+"</a>"; $(t,url); } function $(t,url){ ta = t-1; tb = t+"000…
2011-09-02 11:55
自定义下拉框
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>自定义样式的下拉框</title> <style type="text/css"> .search{width:450px;height:30px;position:relative;margin:5px} .search form{margin:0} .search .keyword{width:300px;height:22px;padding…
2011-09-02 08:51
遍历下拉框
for (var i = $("sel_province").options.length-1 ; i >= 0 ; i--){ if ($("sel_province").options[i].value == "<%=pro_sel%>"){ $("sel_province").options[i].selected=true; break; } }
2011-08-31 11:08
JAVA截图
截取一个图片的中央部分 package com.samkee.util; import java.awt.Graphics; import java.awt.image.BufferedImage; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import javax.imageio.ImageIO; /** * 截取一个图片的中央 * @author pengchengji */ public class ImageU…
2011-08-26 14:56 · JAVA截图
希尔排序和插入排序,哪个更快些
我的希尔排序代码 package sort; import static print.Print.printhh; import static print.Print.printsz; public class ShellSort { public static void main(String[] args) { int[] data = {9,8,7,6,5,4,3,2,1,0}; ShellSort shellSort = new ShellSort(); long begin = System.currentTimeMillis(); for (int i = 0 ; i < 100…
2011-05-19 09:54
各种排序
插入排序 package sort; import static print.Print.*; public class InsertSort { public static void main(String[] args){ int[] data = {9,8,7,6,5,4,3,2,1,0}; InsertSort insertSort = new InsertSort(); long begin = System.currentTimeMillis(); for (int i = 0 ; i < 100 ; i++){ insertSort.sort(data); } long end…
2011-05-17 18:03
ORACLE STUDY STEP BY STEP
第一天 1.Oracle全备份数据,首先,先把数据库关闭了。 SQL>shutdown immediate SQL>host F:\oracle\product\10.1.0\oradata\orcl*.* E:\oracle\backup SQL>host F:\oracle\product\10.1.0\db_1\database*.* E:\oracle\backup\database 2.嘎嘎,查看一下控制文件 select * from v$controlfile; 3.更改数据库高速缓存区大小 alter system set db_cache_size=48m; 4.修改共享池…
2011-05-12 13:37