网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > ASP技巧
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
网络编程:ASP教程,ASP.NET教程,PHP教程,JSP教程,C#教程,数据库,XML教程,Ajax,Java,Perl,Shell,VB教程,Delphi,C/C++教程,软件工程,J2EE/J2ME,移动开发
本月文章推荐
.ASP分页显示Recordset数据.
.ASP原码加密工具介绍.
.一个xmlhttp读取xml的例子.
.怎样开始一个ASP网站的设计.
.修改asp代码防止被杀毒软件误删.
.一个普通的数据库例子源源程序.
.在ASP中利用COM组件开发Web应用程.
.用err.raise自定义错误信息.
.Asp base64编码、解码函数.
.用asp做access的远程接口.
.IIS7 的新功能 - URL重写、应用程.
.ASP.NET中的XML表单控件.
.用ASP编程控制在IIS建立Web站点的.
.在ASP程序中执行SQL语句的安全性.
.实现让每句话的头一个字母都大写.
.IIS6架设网站常见问题及症状举例.
.Access2000数据库80万记录通用快.
.WINDOWS 2000搭載ASP3.0和IIS5.0.
.ASP的错误处理集锦.
.当碰到不能使用asp标记<%%>的时候.

利用MSCHART画图的一段代码

发表日期:2001-2-15


<!-- Here we are calling the LPK file.  This LPK file
was created using the same method explained in the article-->

<object CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"
id="Microsoft_Licensed_Class_Manager_1_0">
   <param NAME="LPKPath" VALUE="mschart5.lpk">
</object>


<-- Here is where we are actually "instantiating" the
ActiveX control.  I downloaded the file mschart5.cab from
Microsoft's website.  It has been digitally signed. -->

<OBJECT ID="MSChart1" WIDTH=100% HEIGHT=95%
CLASSID="CLSID:31291E80-728C-11CF-93D5-0020AF99504A"
  codebase="mschart5.cab">
</OBJECT>


<script LANGUAGE="Vbscript">
'Now, let's set the chart properties...!!!

'This sets the chart to a line graph...
MSChart1.ChartType = 3

'Set the color and width of the line
' This sets the pen color to black (0,0,0)
' and width to 50 pixels.
MSChart1.Plot.SeriesCollection(1).Pen.VtColor.Set 0,0,0
MSChart1.Plot.SeriesCollection(1).Pen.Width = 50


'This sets the chart's labels to various formats,
' fonts, and sizes.
For i = 1 To MSChart1.Plot.Axis(1).Labels.Count
   'Format the Chart labels to Currency
   MSChart1.Plot.Axis(1).Labels(i).Format = "$0,###"
   
   'Set the font to Tahoma
   MSChart1.Plot.Axis(1).Labels(i).VtFont.Name = "Tahoma"
   
   'Set the font size to 10pt
   MSChart1.Plot.Axis(1).Labels(i).VtFont.Size = 10
Next


'This sets the # of rows in the chart
MSChart1.RowCount = 5;

'This sets the number of columns per row.
MSChart1.ColumnCount = 2

'This indicates to show the label
MSChart1.ShowLegend = True


for x = 1 to 5  'The number of rows we have
    'This sets what current row we are editing
    MSChart1.Row = x
    
      'This sets the row's label
    MSChart1.RowLabel = "Row " & x

    'This plots the points for both columns (1 and 2)
    'for the current row (x).  The value being
    'plotted is x*5 and x*10    
    call MSChart1.DataGrid.SetData(x, 1, x*5,nullFlag)
    call MSChart1.DataGrid.SetData(x, 2, x*10,nullFlag)
next

</script>


上一篇:可以近视替代remote script的代码 人气:9241
下一篇:介绍一下GETROWS的用法 人气:14317
浏览全部的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐