逍遥轩
百度空间 | 百度首页 
 
文章列表
 
2009年12月13日 星期日 17:52
function opclick(xc){
for(var i=1;i<=4;i++){
if(xc==i){
document.getElementById("op"+xc).style.borderBottom="none";
document.getElementById("box"+xc).style.display="";
document.getElementById("op"+xc).style.background="url(images/op.gif)";
}
else{
document.getElementById("op"+i).style.borderBottom="1px solid blue";
document.getElementById("box"+i).style.display="none";
document.getElementById("op"+i).style.background="blue";
}
}
}
 
2009年12月13日 星期日 15:12
<html>
<head>
<title>test</title>
<script language="javascript">
function over(xc){
for(var i=1;i<=3;i++){
if(xc==i){
document.getElementById("op"+xc).style.borderBottom="none";
document.getElementById("box"+xc).style.display="";
}
else{
document.getElementById("op"+i).style.borderBottom="1px solid black";
document.getElementById("box"+i).style.display="none";
}
}
}
</script>
</head>
<body>
<table border="1px" bordercolor="black" width="500px" height="200px" align="center" cellspacing="0px" cellpadding="0px" style="border-collapse:separate !important;border-collapse:collapse;">
<tr height="30px">
<td onclick="over(1)" id="op1">选项一</td>
<td onclick="over(2)" id="op2">选项二</td>
<td onclick="over(3)" id="op3">选项三</td>
</tr>
<tr><td colspan="3" style="border-top:0px;">
<div id="box1">选项一</div>
<div id="box2">选项二</div>
<div id="box3">选项三</div>
</td></tr>
</table>
<script type="text/javascript">over(1);</script>
</body>
</html>
 
2009年12月13日 星期日 11:54
<span style="font-family:arial;">&copy;</span>
 
2009年12月11日 星期五 22:35
<html>
<head>
<title>DIV</title>
<style>
body{margin:0px;}
div{position:relative;}
#main{left:50px;top:0px;width:900px;border:0px solid blue;padding:0px 0px;}
#a{left:0px;width:200px;border:1px solid red;float:left;}
#b{left:5px;width:200px;border:1px solid red;float:left;}
#c{left:10px;width:200px;border:1px solid red;float:left;}
#d{left:50px;top:5px;width:200px;border:1px solid green;clear:both;}
</style>
</head>
<body>
<div id="main">
<div id="a">a<br><br><br></div>
<div id="b">b<br><br><br></div>
<div id="c">c<br><br><br></div>
</div>
<div id="d">d</div>
</body>
</html>
 
2009年12月11日 星期五 20:45

document.getElementById("id").offsetHeight实际内容高度

document.getElementById("id").offsetWidth

document.getElementById("id").style.height样式表中定义的尺寸

document.getElementById("id").style.width

 
2009年11月26日 星期四 10:18

index.html代码如下:

<object width="400px" height="400px" id="temp" border="5px" type="application/x-silverlight">
<param name="source" value="index.xaml"/>
</object>

index.xaml代码如下:

<?xml version="1.0" encoding="utf-8"?>
<Canvas Width="300" Height="300" Background="yellow" xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Rectangle Fill="blue" Width="150" Height="50"/>
</Canvas>

xaml语法注意:

每个对象标签首字母大写,每个属性首字母也大些,宽度和高度不能带px,如Width="300px"是错误的.

 
2009年11月15日 星期日 19:15
小雨滴落黄昏潮,孤影相伴无人扰。
半夜忽得含沙梦,几度伤心几时休。
 
2009年11月15日 星期日 19:15
冬来寒雪添新装,神州半地显凄凉。
感慨不是唐朝人,且敢把此当景赏。
 
2009年11月09日 星期一 10:48

<%@webservice language="vb" class="ws"%>
imports system
imports system.web.services
<webservice(namespace:="http://www.wisezc.cn")>public class ws:inherits webservice
<webmethod()>public function zc() as string
return "这是一个例子"
end function
end class

代理类编译命令:wsdl /l:vb /n:ws /out:ws.vb http://localhost/ws/index.asmx

将vs目录下的SDK\v2.0\Bin附加到path环境变量

 
2009年11月08日 星期日 13:24

<%
dim conn as new oledbconnection("provider=microsoft.jet.oledb.4.0;extended properties=excel 8.0;data source="+server.mappath("excel.xls"))
dim cmd as new oledbcommand("select * from [table$]",conn)
conn.open()
dim dr as oledbdatareader=cmd.executereader()
dim i as integer
while(dr.read())
for i=0 to dr.fieldcount-1
response.write("i="+i.tostring()+" "+dr.item(i).tostring()+" ")
next
response.write("<br>")
end while
dr.close()
conn.close()
%>

excel第一行就是字段

 
2009年11月08日 星期日 10:21

<%
dim conn as new oledbconnection("provider=microsoft.jet.oledb.4.0;data source="+server.mappath("db.mdb"))
conn.open()
dim dt as datatable=conn.getoledbschematable(oledbschemaguid.tables,new object() {nothing, nothing, nothing, "table"})
dim i,j as integer
for i=0 to dt.rows.count-1
for j=0 to dt.columns.count-1
response.write("i="+i.tostring()+"j="+j.tostring()+dt.rows(i)(j)+"<br>"+chr(10)+chr(13))
next
next
conn.close()
%>

<%
dim conn as new oledbconnection("provider=microsoft.jet.oledb.4.0;data source="+server.mappath("db.mdb"))
dim cmd as new oledbcommand("select [name] from msysobjects where [type]=1",conn)
conn.open()
dim dr as oledbdatareader=cmd.executereader()
while(dr.read())
response.write(dr.item(0).tostring()+"<br>")
end while
dr.close()
conn.close()
%>

上面这种方法需要设置数据库中msysobjects表的权限

<%
dim conn as new sqlconnection("server=localhost;database=db;uid=sa;pwd=sa")
dim cmd as new sqlcommand("select name from sysobjects where type='u'",conn)
conn.open()
dim dr as sqldatareader=cmd.executereader()
while(dr.read())
response.write(dr.item(0).tostring()+"<br>")
end while
dr.close()
conn.close()
%>

 
2009年10月17日 星期六 15:22

mtv制作圣手10.0
优点:
速度还可以
可以定义背景颜色
支持lrc ksc两种歌词
支持片头片尾
支持歌名、演唱者、制作者、说明等信息,并可定义字体、字体大小、颜色、时间
支持歌词位置定义,字体、颜色、大小
缺点
只能导入图片不能导入视频

mtv电子相册
缺点
不能定义字幕位置

dv视频字幕合成伴侣
缺点
速度慢

巨星mtv
什么方面都比较好

sayatoo与会声会影搭配
还好,只是比较麻烦

 
2009年09月05日 星期六 12:30
private shared server as object=httpcontext.current.server
 
2009年09月02日 星期三 20:11
<%@page contentType="text/html;charset=gb2312" language="java" import="java.sql.*"%>
<%
String url="jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ="+application.getRealPath("db.mdb");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn= DriverManager.getConnection(url);
Statement stmt=conn.createStatement();
ResultSet rs = stmt.executeQuery("select * from tablename");
while(rs.next())
{
out.print(rs.getString("id"));
}
rs.close();                                  
stmt.close();                         
conn.close();                   
%>
 
2009年08月22日 星期六 22:26
index.aspx文件中的代码如下:
<%@import namespace="xxfaxy"%>
<script language="vb" runat="server">
dim zc as new classname
</script>
<%=zc.sum(10,90)%>
index.vb文件中的代码如下:
namespace xxfaxy
public class classname:inherits system.web.ui.page
function sum(m as integer,n as integer) as integer
sum=m+n
end function
end class
end namespace
编译命令如下:(把下面的代码放进a.bat文件里然后把index.vb和a.bat拷到编译器目录下)
vbc /t:library /out:index.dll index.vb /r:system.dll /r:system.data.dll
生成的index.dll放在bin目录里面的
 
     


©2009 Baidu