文章列表
 
您正在查看 "|javascript|" 分类下的文章

2008-10-28 10:50

设为首页代码如下:

<input TYPE="button" VALUE=" 设为首页 " onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://cat2000.336.cc');" href="#">

加入收藏代码如下:

<a style="cursor:hand"
onclick="window.external.AddFavorite(location.href,document.title);">加入收藏</a>

 
2008-10-08 15:21

<script>
       var step=0;
    var something=20;
       function step_form()
    {
           step++;
     something--;
  
     if(step=5)
     {
        step=1;
   

 
2008-09-13 21:47
但是对于框架页面,如何处理?例如需要对下面一个简单的框架页面进行监听:

<frameset rows="80,*" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="top.htm" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" />
<frameset cols="80,*" frameborder="no" border="0" framespacing="0">
<frame
 
2008-09-13 21:43
<html>
<head>
<title>
    Web验证登录状态
</title>
<script>
    var maxTime = 5;
    var timeOutValue = maxTime;

    function timeListener()
    {
       timeOutValue = timeOutValue - 1;
   
      if(timeOutValue<=0)
    
 
2008-09-10 3:57

<html>
<head>
<title>检测大写锁定键 7gz.cn</title>
<style type="text/css">
</style>
</head>
<body>
<h1>检测大写锁定键&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</h1>
<form action="#" method="post">
<p><label for="password">密码:</label><input type="password" id="password

 
2008-07-28 18:07

<html>
<head>
    <title>打印机效果</title>
<SCRIPT language="JavaScript">
<!--

var layers = document.layers, style = document.all, both = layers || style, idme=908601;
if (layers) { layerRef = 'document.layers'; styleRef = ''; } if (style) { layerRef = 'document.all'; styleRef = '.style'; }

function writeOnText(obj, str) {
if (layers) with (document[obj]) { document.open(); document.write(s

 
2008-07-28 8:02

<html>
<head>
   <title>提取子字符串</title>
</head>
        <script type="text/javascript">
        function subStringChange(){
    var OrgString =new Array();
                        OrgString= docum

 
2008-07-15 0:25

<html><head>
<title>测试可动div</title>
<script language='javascript' type='text/javascript'>
var offset_x;
        var offset_y;
        function Milan_StartMove(oEvent)
        {
            var whichButton;
    

 
2008-07-13 15:32

<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312" />
<META HTTP-EQUIV="Pragma" CONTENT="no-cache" />
<META HTTP-EQUIV="Cache-control" CONTENT="no-cache,must-revalidate">
<META HTTP-EQUIV="Expires" CONTENT="Sun, 1 Jan 2000 01:00:00 GMT" />
<TITLE>Cat torturers and innocents, beware! - 21世纪在线</TITLE>

 
2008-07-09 10:09

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>转换格式(123,456,789)</title>
<script type="text/javascript" language="javascript">
function kk(money)
{
var monreverse="";
var offside="";
if(money.indexOf(".",0)==-1)
{
    for(var i=money.length;i>=0;i--)
   

 
2008-07-09 10:05

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>去空格</title>
</head>
<!--思路:(1).先用循环把每个字符提取出来 (2).判断第一个和最后一个是不是空格 (3).如果是不是空格把它储存到一个字符串中-->
<script type="text/javascript" language="javascript">
var str=document.getElementById("txt").value;
   //去除左空格

 
2008-07-09 10:00
1 //--身份证号码验证-支持新的带x身份证
2 function isIdCardNo(num)
3 {
4     var factorArr = new Array(7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2,1);
5     var error;
6     var varArray = new Array();
7     var intValue;
8     var lngProduct = 0;
9     var intCheckDigit;
10     var intStrLen = num.length;
11 
 
2008-07-07 17:50
<html>
<head>
    <title>javaScript中实现省级联动</title>
</head>
<script>
     var cityList=new Array(); <!--定义省及其相应的城市数组-->
cityList['江西省']=['南昌市','萍乡市','九江市','赣州市','宜春市','上饶市','景德镇市'];
cityList['广东省']=['广州市','深圳市','惠州市','东莞市','河源市'];
cityList['湖南省']=['长沙市','衡阳市'];
function AllCity(){  
 
2008-07-07 16:39

-------------------------------改例子向上移动(direction='up')-----------------------------------

<marquee hight='200' direction='up' onMouseOver='this.stop()' onMouseOut='this.start()' scrollamount='1'>

。Work while you work ,play while you play.<br/>

。That's the way to happy and gay.<br/>

。Whatever you do ,do with you might.<br/>

。Things done by half,and never done right.<br/>

</marquee>

-------

 
2008-07-05 1:02
<table> <tr> <td style="font-size: 12px;"> 既可以输入新的信息,又可以从下拉框中选择: </td> <td valign="top"> <select name="myselect" style=" width:220; position:absolute;clip: rect(2 100% 90% 201)" onchange="document.getElementById('txtPlace').value=this.value"> <option value=""> </option> <option value="蓝色经典"> 蓝色经典 </option> <option value="织梦地带
 
 
   
 
 
文章存档
 
     
 
最新文章评论
  

感觉不像是测试用例的内容,更像是defect report.
 

这句什么意思?麻烦问一下。 With objSheet '设置行数和是否NewTc标识 Environment
 

WriteRep(sDetails,sStatus)函数有些不懂
 

答案呢!!
 

[表情]
   
帮助中心 | 空间客服 | 投诉中心 | 空间协议
©2012 Baidu