当前位置:首页
开发技术指南» 文章正文
    引言:

    摘要: 不知道为什么,import javax.microedition.media.*;时会报错,找不到。 用ktoolbar就可以编译通过。 我用的eclipse 3.1 和eclipseme 1.0 莫非是eclipseme的bug? ......
    摘要: provider=microsoft.jet.oledb.4.0;data source=db1.mdb;persist security info=false 这是我在ado属性中定义的 经我打包之后 ,在别人机器上 就会出现 没找到c:\db1.mdb 并且安装在我本人的机器也出现这样的提示 急等 ......


问一个vbscript的问题(实在是不好意思,我找不着vbscript社区)

最近学习网页动态设计,自己用的书讲到vbscript,编了一个网页,没想到,不光保存后网页显示有错误,而且根本就没有按照预定的目的实现,自己检查了好几次,也没有弄出来,同学推荐这个论坛。就来问问了!希望有高手能指点一下。谢谢!  
   
  下面是我的源代码,按照预定的目的,应该是点那四个颜色按键,点哪一个颜色,网页背景颜色就是那种颜色,可是现在一刷新网页,就出现script   err,不知是怎么回事?望有高手能指点一下!谢谢!  
   
   
  <html>  
  <head>  
  <title>if...then语句的使用</title>  
   
  <script   language="vbscript">  
  <!--  
  sub   bchange(choice)  
  if   choice=1   then   document.bgcolor="red"  
  else   if   choice=2   then   document.bgcolor="yellow"  
  else   if   choice=3   then   document.bgcolor="blue"  
  else       document.bgcolor="green"  
  end   if  
  end   sub  
  -->  
   
  </script>  
   
  </head>  
   
  <body>  
   
  <center>  
   
  <h2><font   color=red>文字和背景颜色的选择</font></h2>  
  <p>  
   
   
   
  <table   border=2>  
  <tr><th>背景颜色<th>选择<th>文字颜色<th>选择</tr>  
  <tr><td>红色<td><input   type=radio   onclick="bchange(1)">  
  <td>黄色<td><input   type=radio   onclick="bchange(2)"></tr>  
  <tr><td>蓝色<td><input   type=radio   onclick="bchange(3)"></tr>  
  <td>绿色<td><input   type=radio   onclick="bchange(4)"></tr>  
  </table>  
   
  </center>  
  </body>  
  </html>  
   
 

NO.1   作者: wzhiyuan

<script   language="vbscript">  
  <!--  
  sub   bchange(choice)  
  if   choice=1   then  
  document.bgcolor="red"  
  elseif   choice=2   then   document.bgcolor="yellow"  
  elseif   choice=3   then   document.bgcolor="blue"  
  else       document.bgcolor="green"  
  end   if  
  end   sub  
  -->  
  </script>  
  1,多行的if   then   语句换行  
  2,elseif   连写


    摘要: 就是这个问题,我查了下,好象webbrowser打印是可以的,我想有方法打印的到图片文件不是可以解决了,无奈没有参考好的参考代码。不知还有没有其他容易的方法。。 ......
» 本期热门文章:
· 热门栏目:
» 相关精选文章
» 其它相关:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE