Jump to content

Need help about IE control


Recommended Posts

target web page : http://mybid.ruten.com.tw/upload/step2.htm?shop_id=&ck= (it`s Tranditinal Chiniese code , code = 950 , langurage = Big5 )

the site is an Auction businese site, if link to this page need to join the member, so i post the html after.

i need to put some HTML souce code into the object "text2"(its in HTML is "textarea" ) but how to do it ?

my souce code :

$rIE = _IECreate ("http://mybid.ruten.com.tw/upload/step2.htm?shop_id=&ck=",1,1,1,1)
$r_form = _IEFormGetObjByName ($rIE, "main") 
$r_c = _IEFormElementGetObjByName ($r_Form, "text2")

$test = "abc"

; _IELinkClickByText ($rIE, "文字模式(原始碼)")  ;<--- "文字模式(原始碼)" = one of text link to change the edit mode to HTML, not RichTextEditor

_IEFormElementSetValue($r_c, $test)

use _IEFormElementGetValue($r_c) can get the correct "abc"

but on IE can`t show the "abc"...

souce code of the target web page:

<textarea name="text2" id="text2_ID"  style="LEFT: 20px; VISIBILITY: hidden; POSITION: absolute; TOP: 0px"></textarea>  <script>        if (!document.idGenerator) document.idGenerator = new IDGenerator(0);       EditorSetBrief=true;        var editor = new Editor(document.idGenerator, 'text2_ID', '250');       editor.Instantiate();           </SCRIPT>                       </p>

all full HTML souce code :

<html>
<head>
<title>露天拍賣--簡單、好玩、免費、安全</title>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<link href="/css/auction.css" rel="stylesheet" type="text/css">
<link href="/css/index.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="/js/javascript.js" ></script>
<script language="JavaScript" src="/js/RichtextEditor.js" ></script>
<script language="JavaScript" src="/js/tw-sack.js" ></script>
<script language="JavaScript" type="text/JavaScript">
    var ajax;
    var hWnd;

    var old_pic1="",old_pic2="",old_pic3="";
    var old_check1="",old_check2="",old_check3="";

function checkPicNum(nPicCount)
{
  if (nPicCount == "0")
            document.all['picnum'].innerHTML = "3";
  else
      document.all['picnum'].innerHTML = 3 - parseInt(nPicCount,10);
  checkDisable();
}

function checkDisable()
{
  if (document.all['picnum'].innerHTML == 0)
      document.all['B3'].disabled = true;
  else
      document.all['B3'].disabled = false;
  if (document.all['picnum'].innerHTML == 3)
      document.all['B4'].disabled = true;
  else
      document.all['B4'].disabled = false;
}

function changebordercolor(nindex)
{
    if (document.getElementById('pic_chechbox' + nindex).checked)   {
      document.getElementById('table' + nindex).style.borderColor = "#006600";
      document.getElementById('table' + nindex).style.borderStyle = "solid";
      document.getElementById('table' + nindex).style.borderWidth = "3px";
   }
  else  {
      document.getElementById('table' + nindex).style.borderColor = "#8E8E8E";
      document.getElementById('table' + nindex).style.borderStyle = "solid";
      document.getElementById('table' + nindex).style.borderWidth = "1px";
  }
}

function delPic() {
   var num = parseInt(document.all['picnum'].innerHTML,10);
   var bCheck = false;
   for (i=1;i<=3-num;i++){
       if (document.getElementById('pic_chechbox' + i).checked) {
           bCheck = true;
           break;
       }
     }
     if (!bCheck)   {
         alert("並無勾選任何圖片");
       return false;
   }
   if (document.all['picture'].value == "")
       return;
      document.all['B3'].disabled = true;
   document.all['B4'].disabled = true;
   document.all['errmsg'].innerHTML = '';


   var delPic = "";
   for (i=1;i<=3-num;i++){
       if (document.getElementById('pic_chechbox' + i).checked) {
           if (delPic == "")
               delPic = document.getElementById('pic_chechbox'+i).value;
           else
               delPic = delPic + "," + document.getElementById('pic_chechbox'+i).value;
           document.getElementById('pic_chechbox' + i).checked = false;
                     document.all['check'+i].innerHTML = '';
                     document.all['picnum'].innerHTML = parseInt(document.all['picnum'].innerHTML,10) + 1;
       }
   }
   for (i=1;i<=3;i++){
       if (document.all['check'+i].innerHTML == '') {
           for (j=i+1;j<=3;j++){
                     if (document.all['check'+j].innerHTML != '')   {
                         document.getElementById('table'+i).style.backgroundColor  = "#dddddd";
                           x = document.all['check'+j].innerHTML;
                           x = x.replace("pic_chechbox" + j ,"pic_chechbox" + i );
                           x = x.replace("changebordercolor('" + j + "')","changebordercolor('" + i + "')");
                             document.all['check'+i].innerHTML=x;
                             document.all['check'+j].innerHTML='';
                             document.getElementById('pic'+i ).style.background = document.getElementById('pic'+j ).style.background;
                             break;
                     }
           }
       }
   }
   for (i=1;i<=3;i++){
        if (document.all['check'+i].innerHTML == '')    {
           document.getElementById('table' + i).style.borderColor = "#F3F3F3";
           document.getElementById('table'+i).style.backgroundColor  = "#F3F3F3";
           document.getElementById('table' + i).style.borderStyle = "solid";
           document.getElementById('table' + i).style.borderWidth = "1px";
           document.getElementById('pic'+i ).style.background = "url(http://www.ruten.com.tw/images/pic_" + i + ".gif)";
        }
        else    {
           document.getElementById('table' + i).style.borderColor = "#8E8E8E";
           document.getElementById('table' + i).style.borderStyle = "solid";
           document.getElementById('table' + i).style.borderWidth = "1px";
        }
   }
   ajax = new sack();
   ajax.requestFile = "delphoto.php";
   ajax.setVar("picture",document.all['picture'].value);
   ajax.setVar("delfile",delPic);
   ajax.method = 'POST';
   ajax.onCompletion = reportResult;
   ajax.runAJAX();
}

function reportResult()
{
  document.all['picture'].value = ajax.response;
  //alert(ajax.response);
  checkDisable();
}

function move_radio(pos){
 if (pos==0)
    main.g_mode[0].checked=true;
 if (pos==1)
    main.g_mode[1].checked=true;
 return true;
}

function clear_data(){
   var olddata = "";
   var bOld = false;
   for (i=1;i<=3;i++){
       if (window['old_pic'+i] != '')   {
          bOld = true;
          if (olddata == "")
              olddata = window['old_check' + i];
          else
              olddata = olddata + "," + window['old_check' + i];
         }
  }
  if (!bOld)    {
            showOldData();
            return true;
    }
  else  {
          ajax = new sack();
            ajax.requestFile = "del_olddata.php";
            ajax.setVar("g_no","");
            ajax.setVar("olddata",olddata);
            ajax.method = 'POST';
            ajax.onCompletion = clearResult;
            ajax.runAJAX();
    }
}

function showOldData()  {
      for (i=1;i<=3;i++){
           document.getElementById('table' + i).style.borderStyle = "solid";
           document.getElementById('table' + i).style.borderWidth = "1px";
         document.getElementById('table' + i).style.borderColor = "#F3F3F3";
           document.getElementById('table' + i).style.backgroundColor  = "#F3F3F3";
           document.getElementById('pic'+i ).style.background = "url(http://www.ruten.com.tw/images/pic_" + i + ".gif)";
           document.all['check'+i].innerHTML = '';
      }
      main.reset();
        checkPicNum(0);
        main.picture.value = "";
        document.all['errmsg'].innerHTML = '';
        eval(EDITOR_COMPOSITION_PREFIX + 0).document.body.innerText='';

        return;
}

function clearResult()  {
   var data_tmp = ajax.response;
   if (data_tmp == "")  {
       showOldData();
       return;
   }

   var arrData = data_tmp.split("&");
   var arrPic = new Array();
   if (arrData[0] != "")    {
           arrPic = arrData[0].split(",");
   }
   var nCount = 0;
   for (i=1;i<=3;i++){
       if (typeof(arrPic[i-1]) != 'undefined' && arrPic[i-1] != "")     {
          document.getElementById('table' + i).style.backgroundColor = "#dddddd";
          document.getElementById('pic' + i).style.background = window['old_pic' + i] + " no-repeat center";
            document.all['check' + i].innerHTML="<input type=checkbox id=pic_chechbox" + i + " value=\"" + window['old_check' + i] + "\" onclick=\"changebordercolor('" + i + "');\">";
            nCount++;
       }
       else {
          window['old_pic' + i] = "";
          window['old_check' + i] = "";
          document.all['check'+i].innerHTML = '';
         }
   }
   for (i=1;i<=3;i++){
       if (document.all['check'+i].innerHTML == '') {
           for (j=i+1;j<=3;j++){
                     if (document.all['check'+j].innerHTML != '')   {
                         document.getElementById('table'+i).style.backgroundColor  = "#dddddd";
                           x = document.all['check'+j].innerHTML;
                           x = x.replace("pic_chechbox" + j ,"pic_chechbox" + i );
                           x = x.replace("changebordercolor('" + j + "')","changebordercolor('" + i + "')");
                             document.all['check'+i].innerHTML=x;
                             document.all['check'+j].innerHTML='';
                                   window['old_pic' + i] = window['old_pic' + j];
                                   window['old_check' + i] = window['old_check' + j];
                                   window['old_pic' + j] = '';
                                   window['old_check' + j] = '';
                             document.getElementById('pic'+i ).style.background = document.getElementById('pic'+j ).style.background;
                             break;
                     }
           }
       }
   }
   for (i=1;i<=3;i++){
        if (document.all['check'+i].innerHTML == '')    {
           document.getElementById('table' + i).style.borderColor = "#F3F3F3";
           document.getElementById('table'+i).style.backgroundColor  = "#F3F3F3";
           document.getElementById('table' + i).style.borderStyle = "solid";
           document.getElementById('table' + i).style.borderWidth = "1px";
           document.getElementById('pic'+i ).style.background = "url(http://www.ruten.com.tw/images/pic_" + i + ".gif)";
        }
        else    {
           document.getElementById('table' + i).style.borderColor = "#8E8E8E";
           document.getElementById('table' + i).style.borderStyle = "solid";
           document.getElementById('table' + i).style.borderWidth = "1px";
        }
   }
    main.reset();
    main.picture.value = "";
  main.picture.value = arrData[1];
    checkPicNum(nCount);
    eval(EDITOR_COMPOSITION_PREFIX + 0).document.body.innerText='';
    return true;
}

function change(obj){
    if(obj.name=="g_mode"){
       var str_htm;
       var sold_out_htm;
       main.g_direct_price_1.disabled=false;
       main.g_start_price.disabled=false;
       main.g_base_price.disabled=false;
       main.g_num.disabled=false;
       main.g_direct_price.disabled=false;
       main.percent3.disabled=false;
       main.percent3_1.disabled=false;

        if(obj.value=="A"){
            main.g_direct_price_1.disabled=true;
            main.g_num.disabled=true;
            main.percent3_1.disabled=true;
            main.g_early_set.disabled=false;
            str_htm=document.getElementById('without_resell_once').innerHTML;
            sold_out_htm=document.getElementById('sold_out_1').innerHTML;
        }else{
            main.g_direct_price.disabled=true;
            main.g_start_price.disabled=true;
            main.g_base_price.disabled=true;
            main.percent3.disabled=true;
            main.g_early_set.checked=true;
            main.g_early_set.disabled=true;
            str_htm=document.getElementById('with_resell_once').innerHTML;
            sold_out_htm=document.getElementById('sold_out_2').innerHTML;
       }
       str_htm=str_htm.replace('<!--','');
       str_htm=str_htm.replace('-->','');
       document.getElementById('add_item').innerHTML=str_htm;
       sold_out_htm=sold_out_htm.replace('<!--','');
       sold_out_htm=sold_out_htm.replace('-->','');
       document.getElementById('sold_out').innerHTML=sold_out_htm;
    }
    if(obj.name=="g_condition"){
       main.g_condition_1.disabled=true;
       if(obj.value=="C"){
          main.g_condition_1.disabled=false;}
    }

    if(obj.name=="g_location"){
       main.g_location_1.disabled=true;
       main.g_location_2.disabled=true;
       if(obj.value=="in"){
          main.g_location_1.disabled=false;
          }
       else{
          main.g_location_2.disabled=false;
          }
    }

    if(obj.name=="percent3"){
        if (main.percent3.checked)
        {
       a=main.g_direct_price.value;
       if (a=="")
       {
        alert("請先輸入降3%前價格!");
        main.percent3.checked=false;
        main.g_direct_price.focus();
       } else {
               b=a*0.97;
               main.g_direct_price.value=Math.ceil(b);
              }
      } else {
              main.g_direct_price.value="";
               }
    }

    if(obj.name=="percent3_1"){
        if (main.percent3_1.checked)
        {
       a=main.g_direct_price_1.value;
       if (a=="")
       {
        alert("請先輸入降3%前價格!");
        main.percent3_1.checked=false;
        main.g_direct_price_1.focus();
       } else {
               b=a*0.97;
               main.g_direct_price_1.value=Math.ceil(b);
              }
      } else {
              main.g_direct_price_1.value="";
               }
    }
}

function checkdata(obj){
var g_trade_way;
var g_pay_way;
var g_deliver_way;
EditorExportHTML();
      //檢查物品名稱
          if(!obj.g_name.value){alert("請輸入物品名稱");obj.g_name.focus();return false;}
          //if(strlens(obj.g_name.value)>80){alert("請勿超過40個中文字或80個英文字");obj.g_name.focus();return false;}
          if(strlens(obj.g_name.value)>120){alert("請勿超過60個中文字或120個英文字");obj.g_name.focus();return false;}//modified by vera 20070430 40->60 ,80->120

          if(!obj.g_end_time.value){alert("請選擇結束時段");obj.g_end_time.focus();return false;}
      //檢查物品名稱 \
          re = /\\/i;
          if (re.test(obj.g_name.value)){alert("物品名稱不可含有\"\\\"");obj.g_name.focus();return false;}

          if(obj.g_mode[0].checked){
               obj.g_start_price.value=numconver(obj.g_start_price.value);
               obj.g_base_price.value=numconver(obj.g_base_price.value);
               obj.g_direct_price.value=numconver(obj.g_direct_price.value);

               if(!isANumber(obj.g_start_price.value)){alert("請輸入正確的數字");obj.g_start_price.focus();return false;}
               if(!isANumber(obj.g_base_price.value)){alert("請輸入正確的數字");obj.g_base_price.focus();return false;}
               if(!isANumber(obj.g_direct_price.value)){alert("請輸入正確的數字");obj.g_direct_price.focus();return false;}
               if(!obj.g_start_price.value){alert("請輸入起標價");obj.g_start_price.focus();return false;}
               if(obj.g_base_price.value && eval(obj.g_base_price.value) <eval(obj.g_start_price.value)){alert("底價不可低於起標價");obj.g_base_price.focus();return false;}
               if(obj.g_direct_price.value && obj.g_base_price.value && eval(obj.g_base_price.value) >eval(obj.g_direct_price.value)){alert("直接購買價不可低於底價");obj.g_direct_price.focus();return false;}
               if(obj.g_direct_price.value && eval(obj.g_start_price.value) >eval(obj.g_direct_price.value)){alert("直接購買價不可低於起標價");obj.g_direct_price.focus();return false;}
          }
          else{
               obj.g_direct_price_1.value=numconver(obj.g_direct_price_1.value);
               obj.g_num.value=numconver(obj.g_num.value);
               if(!isANumber(obj.g_direct_price_1.value)){alert("請輸入正確的數字");obj.g_direct_price_1.focus();return false;}
               if(!obj.g_direct_price_1.value){alert("請輸入直接購買價");obj.g_direct_price_1.focus();return false;}
               if(obj.g_num.value<=0 || obj.g_num.value>999){alert("定價販售數量錯誤請填寫1~999的數字");obj.g_num.focus();return false;}
          }
    if(typeof(obj.g_sdate) != 'undefined'){
        if(obj.g_sdate[1].checked){
            if (obj.g_start_date.value=="20080501" && obj.g_start_time.value <= 18){
                alert("預上商品時間錯誤...");
                obj.g_start_time.focus();
                return false;
            }
        }
  }

        //檢查物品說明
        //if(strlens(obj.text2.value) <= 15){alert("請輸入物品說明");return false;}
        if(strlens(obj.text2.value) >  61000 ){alert("物品說明「原始碼」超過 60000 個字元!!(1 個中文字為 2 個字元,半形英文字母、數字、符號及空格皆為 1 個字元)");return false;}

        //檢查縣市
        if(obj.g_location[0].checked){
            if(!obj.g_location_1.value){alert("請選擇物品所在地");obj.g_location_1.focus();return false;}
            }
        else {
            if(!obj.g_location_2.value){alert("請輸入物品所在地");obj.g_location_2.focus();return false;}
            }
        if(strlens(obj.g_location_2.value)>20){alert("請勿超過10個中文字或20個英文字");obj.g_location_2.focus();return false;}

        ///檢查運費
        if(obj.g_ship[0].checked){
            obj.g_ship_cost.value=numconver(obj.g_ship_cost.value);
            if(!isANumber(obj.g_ship_cost.value) & obj.g_ship_cost.value!=0){alert("請輸入正確的數字");obj.g_ship_cost.focus();return false;}
            //if(!obj.g_ship_cost.value){alert("請輸入運費");obj.g_ship_cost.focus();return false;}
            }
        //檢查交易方式
        for(i=1;i<obj.elements.length;i++)  {
            var e=obj.elements[i];
            if(e.name=="g_trade_way[]" && e.checked) {
                g_trade_way=1;
               }
            if(e.name=="g_pay_way[]" && e.checked) {
                g_pay_way=1;
               }
            if(e.name=="g_deliver_way[]" && e.checked) {
                g_deliver_way=1;
               }
           }
        if(!g_trade_way){alert("請選擇交易方式");return false;}
        if(!g_pay_way){alert("請選擇付款方式");return false;}
        if(!g_deliver_way && !obj.g_deliver_way_1.value){alert("請選擇交貨方式");return false;}
        if(strlens(obj.g_deliver_way_1.value)>20){alert("請勿超過10個中文字或20個英文字");obj.g_deliver_way_1.focus();return false;}

        //Jerry 2070904 修改評價限制
        if(obj.g_buyer_limit_nega.value !=""){
            if(!isANumber(obj.g_buyer_limit_nega.value) || obj.g_buyer_limit_nega.value<=0 || obj.g_buyer_limit_nega.value>999){alert("差勁評價限輸入1~999 數字");obj.g_buyer_limit_nega.focus();return false;}
        }
        /*if(obj.g_buyer_limit[0].checked){
           obj.g_buyer_limit_value.value="";
        }*/

        return true;
}

function check_value(obj){
    var str,ok;
}

function send(w){
if(w==1){
   main.action='goods_add.php';
   }
if(w==2){
   main.action='goods_add.php';
   main.step.value="2_1";
   EditorExportHTML();
   main.submit();
   return;
   }

if(checkdata(document.main)){
    for(i=1;i<main.elements.length;i++) {
        var e=main.elements[i];
        e.disabled=false;
        }
    main.Submit3.disabled=true;
    main.submit();
   }
else return;
}

function GodirWindow()
{
  document.all['errmsg'].innerHTML = '';
    if (hWnd)
        hWnd.close();
    hWnd = window.open("addphoto.htm?g_no=&allpicture="+main.picture.value,"","resizable=yes,scrollbars=yes,width=755,height=585");
  if ((document.window != null) && (!hWnd.opener))
        hWnd.opener = document.window;
}

function isANumber(number) {
  answer = 1;
  if(number.length==0)return 1;
  if (!parseFloat(number)) {
    //the first digit wasn't numeric
    answer = 0;
  } else {
    //the first digit was numeric, so check the rest
    for (var i=0; i<number.length; i++) {
      if ((number.charAt(i) != "0")
        && (!parseFloat(number.charAt(i)))) {
          answer = 0;
          break;
      }
    }
  }
  if (answer == 1) {
    orderPlaced = true;
  }
  return answer;
}

</script>
<script>
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" onLoad="checkPicNum(0);MM_preloadImages('http://www.ruten.com.tw/images/icon_01s.gif','http://www.ruten.com.tw/images/icon_02s.gif','http://www.ruten.com.tw/images/icon_03s.gif','http://www.ruten.com.tw/images/icon_04s.gif','http://www.ruten.com.tw/images/icon_05s.gif','http://www.ruten.com.tw/images/icon_06s.gif','http://www.ruten.com.tw/images/icon_07s.gif','http://www.ruten.com.tw/images/icon_09s.gif','http://www.ruten.com.tw/images/icon_10s.gif','http://www.ruten.com.tw/images/icon_11s.gif','http://www.ruten.com.tw/images/small-icon01s.gif','http://www.ruten.com.tw/images/small-icon02s.gif','http://www.ruten.com.tw/images/small-icon03s.gif','http://www.ruten.com.tw/images/small-icon04s.gif','http://www.ruten.com.tw/images/small-icon05s.gif','http://www.ruten.com.tw/images/small-icon06s.gif','http://www.ruten.com.tw/images/small-icon07s.gif','http://www.ruten.com.tw/images/small-icon08s.gif','http://www.ruten.com.tw/images/small-icon09s.gif','http://www.ruten.com.tw/images/small-icon10s.gif','http://www.ruten.com.tw/images/small-icon11s.gif','http://www.ruten.com.tw/images/small-icon12s.gif')" >
<center>
<!--網頁head開始-->
 <div align="center">
 <link href="/css/new.css" rel="stylesheet" type="text/css">
 <script language="JavaScript" src="/js/form.js" ></script>
 <script type="text/javascript" src="/js/show_login_time.js" ></script>
 <table width="99%" border="0" cellpadding="0" cellspacing="0" background="http://www.ruten.com.tw/images/flexible_up-bg.gif">
  <tr>
   <td width="700" align="left">
    <table width="700" border="0" cellpadding="0" cellspacing="0">
     <tr>
      <!--<td width="150" height="100" align="center" bgcolor="#FFFFFF"><a href="http://www.ruten.com.tw"><img src="http://www.ruten.com.tw/images/logo.gif" alt="回首頁" width="122" height="75" border="0" longdesc="http://www.ruten.com.tw" /></a></td>-->
      <td width="150" height="100" align="center" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="00">
        <tr>
          <td>&nbsp;</td>
          <td align="right" valign="top"><a href="http://www.ruten.com.tw/"><img src="http://www.ruten.com.tw/images/logo-lu2.gif" alt="回首頁" width="94" height="87" border="0" longdesc="http://www.ruten.com.tw"></a></td>
          <td width="35" align="left"><img src="http://www.ruten.com.tw/images/logo-lu.gif" width="32" height="62"></td>
        </tr>
      </table>
      <a href="http://www.ruten.com.tw"></a></td>
      <td bgcolor="#FFFFFF"><img src="http://www.ruten.com.tw/images/spacer.gif" width="10" height="1" /></td>
      <td valign="top" background="http://www.ruten.com.tw/images/flexible_up-bg.gif">
       <table border="0" cellpadding="0" cellspacing="0">
        <tr>
         <td bgcolor="#D7D7D7" class="bk12"><img src="http://www.ruten.com.tw/images/spacer.gif" width="1" height="1" /></td>
         <td width="5" bgcolor="#FFFFFF" class="bk12">&nbsp;</td>
         <td width="160" valign="bottom" bgcolor="#FFFFFF" class="normal">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td class="normal">你好!<a href="http://mybid.ruten.com.tw/user/play19990909/">play19990909</a><br /></td>
                </tr>
                <tr>
                  <td class="normal"><a href="https://member.ruten.com.tw/user/logout.php">會員登出</a></td>
                </tr>
                <tr>
                  <td>  <span class="bk10">上次登入:</span><span class="bk9"><a href="#" onClick="login_pop('http://mybid.ruten.com.tw');return false;">2008/05/01 17:40</a></span>   </td>
                </tr>
              </table>       </td>
         <td background="http://www.ruten.com.tw/images/flexible_up-bg2.gif">
          <table border="0" cellpadding="0" cellspacing="0" background="http://www.ruten.com.tw/images/flexible_up-bg2.gif">
           <tr>
            <td><img src="http://www.ruten.com.tw/images/spacer.gif" width="1" height="15" /></td>
           </tr>
           <tr>
            <td height="30" valign="top">
               <table border="0" cellspacing="0" cellpadding="0">
              <tr>
               <td class="gy12"><img src="http://www.ruten.com.tw/images/dot_new.gif" width="18" height="6" /><a href="http://www.ruten.com.tw/atm/index.html" class="gy13">網路ATM</a><img src="http://www.ruten.com.tw/images/dot_new.gif" width="18" height="6" /><a href="http://www.ruten.com.tw/system/" class="gy13">客服中心</a><img src="http://www.ruten.com.tw/images/dot_new.gif" width="18" height="6" /><a href="http://www.ruten.com.tw/system/server_center.htm?000500010001" class="gy13">常見問題</a><img src="http://www.ruten.com.tw/images/dot_new.gif" width="18" height="6" /><a href="http://www.ruten.com.tw/security/index.html" class="gy13">交易安全</a><img src="http://www.ruten.com.tw/images/dot_new.gif" width="18" height="6" /><a href="http://www.pchome.com.tw" class="gy13" target="_new">PChome</a></td>
              </tr>
             </table>
            </td>
           </tr>
           <tr>
            <td><a href="http://class.ruten.com.tw/category/"><img src="http://www.ruten.com.tw/images/tag1_new.gif" width="87" height="25" border="0" /></a><a href="http://mybid.ruten.com.tw/upload/step1.htm"><img src="http://www.ruten.com.tw/images/tag2_new.gif" width="87" height="25" border="0" /></a><a href="http://mybid.ruten.com.tw/master/my"><img src="http://www.ruten.com.tw/images/tag3_new.gif" width="100" height="25" border="0" /></a><a href="http://forum.ruten.com.tw/index.php"><img src="http://www.ruten.com.tw/images/tag4_new.gif" width="87" height="25" border="0" /></a></td>
           </tr>
           <tr>
            <td bgcolor="#F7C06C"><img src="http://www.ruten.com.tw/images/spacer.gif" width="1" height="1" /></td>
           </tr>
          </table>
         </td>
        </tr>
       </table>
      </td>
     </tr>
    </table>
   </td>
   <td width="353" background="http://www.ruten.com.tw/images/flexible_up-bg.gif">
    <table border="0" align="right" cellpadding="0" cellspacing="0">
     <tr>
      <td><img src="http://www.ruten.com.tw/images/spacer.gif" width="1" height="15" /></td>
      <td width="20" rowspan="4">&nbsp;</td>
     </tr>
     <tr>
      <td height="30" valign="top">
       <table width="99%" border="0" cellspacing="0" cellpadding="0">
        <tr>
         <td class="gy12">&nbsp;</td>
         <td width="200">

    <form name="serc" method="get" action="http://search.ruten.com.tw/search/s000.php">
        <input type="hidden" name="searchfrom" value="headbar">
          <input name="k" type="text" onKeyDown="if(event.keyCode == 13) document.serc.submit();" value="" size="20" class="bk12" />
          <input name="serach_button2" type="button" value="搜尋" class="bk12" onClick="document.serc.submit();">

          </form>
         </td>
        </tr>
       </table>
      </td>
     </tr>
     <tr>
      <td>&nbsp;</td>
     </tr>
     <tr>
      <td><img src="http://www.ruten.com.tw/images/spacer.gif" width="1" height="1" /></td>
     </tr>
    </table>
   </td>
  </tr>
 </table>

</div>
<!--網頁head結束-->

<!--路徑開始-->
 <table width="99%" border="0" cellpadding="0" cellspacing="0">
  <tr>
   <td height="25" class="dbe16"><img src="http://www.ruten.com.tw/images/arrow2.gif" width="20" height="15" /><a href="http://www.ruten.com.tw">露天拍賣</a> <font color="#0400C5"> &gt; 新商品上架</font> </td>
  </tr>
 </table><!--路徑結束-->
  <form name="main" method="post" ENCTYPE="multipart/form-data" action="step3.htm" onSubmit="return checkdata(this)">
  <INPUT TYPE="hidden" name="edit" value="">
  <INPUT TYPE="hidden" name="up" value="">
  <table width="99%" border="0" cellspacing="0" cellpadding="0">
    <tr valign="top">
        <td align="center" valign="top">
          <div align="center">
            <!--帳號與功能開始-->
                   <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td align="left"><table width="60%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td><table width="100%" border="0" cellpadding="0" cellspacing="0" background="http://www.ruten.com.tw/images/system_item_bg.gif">
                <tr>
                  <td width="5"><img src="http://www.ruten.com.tw/images/system_item_l.gif" width="5" height="30" /></td>
                  <td><div align="center"><a href="http://mybid.ruten.com.tw/upload/step1.php" class="bk16b">新商品上架</div></td>
                  <td width="5"><img src="http://www.ruten.com.tw/images/system_item_r.gif" width="7" height="30" /></td>
                </tr>
              </table></td>
              <td></td>
              <td><table width="100%" border="0" cellpadding="0" cellspacing="0" background="http://www.ruten.com.tw/images/system_item_grybg.gif">
                <tr>
                  <td width="5"><img src="http://www.ruten.com.tw/images/system_item_gryl.gif" width="5" height="30" /></td>
                  <td><div align="center"><a href="http://mybid.ruten.com.tw/multi-upload/step1.htm" class="bk16">Web大量上架 </a></div></td>
                  <td width="5"><img src="http://www.ruten.com.tw/images/system_item_gryr.gif" width="7" height="30" /></td>
                </tr>
              </table></td>
              </tr>
          </table>
            <table width="99%" height="6" border="0" cellpadding="0" cellspacing="0" background="http://www.ruten.com.tw/images/flexible_linebg2.gif">
        <tr>
          <td><img src="http://www.ruten.com.tw/images/flexible_linebg2.gif" width="2" height="1" /></td>
        </tr>
      </table>
          </td>
        </tr>
      </table>              <table border="0" width="98%" cellspacing="0" cellpadding="0">
                    <tr>
                        <td align="right">
                        <img border="0" src="http://www.ruten.com.tw/images/arrow_blue.gif"></td>
                        <td class="bk13" width="180" height="30" align="center">
                        <a target="_blank" href="http://event.ruten.com.tw/pm/buyrank/index.html#c2">如何提高我的BuyRank分數?</a></td>
                    </tr>
                </table>
          <br>
            <!--版型6c-填寫資料開始-->
            <table border="0" width="88%" cellpadding="0" cellspacing="3">
              <tr>
                <td align="center" class="t1320"> <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="FFDDDD">
                    <tr>
                      <td valign="bottom" bgcolor="FFF5F5"><font color="#000000">物品類別:
                        <A href="http://class.ruten.com.tw/category/main?0000" ></a>&nbsp;&gt; <A href="http://class.ruten.com.tw/category/sub00.php?c=00000000" ></a>&nbsp;&gt; <A href="http://class.ruten.com.tw/category/sub00.php?c=000000000000" ></a>                        <input type=hidden name=shop_id value=000000000000>
                        <input type=hidden name=step value=2>
                                                <input type=hidden name=t value='1209638928'>
                        <input type=hidden name=end_close value=''>
                        <input type=hidden name=endpic value=''>
                        <input type=hidden name=edit value=''>
                        <input type=hidden name=shop_id_old value=''>
                        <input type=hidden name=g_now_price value=''>
                        <input type=hidden name=g_bid_record value=''>
                        <input type=hidden name=g_close_no value=''>
                        <input type=hidden name=state value=''>
                        <input type=hidden name=g_resell_count value="0">
                        <input type=hidden name=g_storage value="">
                        </font></td>
                    </tr>
                  </table></td>
              </TR>
              <tr>
                <td align="center" class="t1320">&nbsp;</td>
              </TR>
            </table>
                     <table border="0" width="88%" cellpadding="0" cellspacing="4">
              <tr>
                <td height="4" class="t1603"><font color="#000000"><b>1</b></font><b><font color="#000000">:新增/刪除圖片</font></b></td>
              </TR>

              <tr>
                <td align="center" class="t1320">
                <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#E4E4E4">
                    <tr>
                      <td valign="bottom" bgcolor="#F3F3F3">
                        <table border="0" width="100%" id="table_add" cellspacing="0" cellpadding="2">
                            <tr>
                              <td class="bk13" align="left"><input name="B3" type="button" onClick="GodirWindow();" value="新增圖片">
                                <input type="button" value="刪除圖片" name="B4" onClick="delPic();">
                                &nbsp;&nbsp;可再新增&nbsp;<b><font size="3"><span id="picnum"></span></font>&nbsp;</b>張
                                ‧可從我的電腦新增或使用露天圖庫</td>

                            </tr>
                            <tr>
                                <td height="2"></td>
                            </tr>
                            <tr>
                                <td valign="top">
                                <div align="left">
                                    <table border="0" width="380" id="table22" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td width="125" valign="top">
                                            <div align="center">
                                                <table border="1" id="table1" bordercolor="#F3F3F3" cellpadding="0" style="border-collapse: collapse">
                                                    <tr>
                                                        <td background="http://www.ruten.com.tw/images/pic_1.gif" width="120" height="90" valign="top" align="right" id=pic1><span id=check1></span></td>
                                                    </tr>
                                                </table>
                                            </div>
                                            </td>
                                            <td width="125" valign="top"><div align="center">
                                                <table border="1" id="table2" bordercolor="#F3F3F3" cellpadding="0" style="border-collapse: collapse">
                                                    <tr>
                                                        <td background="http://www.ruten.com.tw/images/pic_2.gif" width="120" height="90" valign="top" align="right" id=pic2><span id=check2></span></td>
                                                    </tr>
                                                </table>
                                            </div></td>
                                            <td width="126" valign="top"><div align="center">
                                                <table border="1" id="table3" bordercolor="#F3F3F3" cellpadding="0" style="border-collapse: collapse">
                                                    <tr>
                                                        <td background="http://www.ruten.com.tw/images/pic_3.gif" width="120" height="90" valign="top" align="right" id=pic3><span id=check3></span></td>
                                                    </tr>
                                                </table>
                                            </div></td>
                                        </tr>
                                    </table>
                                </div>
                                <font color="#bf0000" class="rd13"><span id=errmsg></span></font>
                                </td>
                            </tr>
                        </table>
                      </td>
                    </tr>
                  </table></td>
              </TR>
            </table>


  <input type=hidden name=picture value=''>
            <table border="0" width="88%" cellpadding="0" cellspacing="4">
              <tr>
                <td height="4" class="t1603"><b><font color="#000000">2:填寫資料
                  </font></b><span class="t13"><font color="#bf0000" class="rd13">( 紅色底色為必填欄位
                  )</font></span></td>
              </TR>
              <tr>
                <td valign="top" class="t1603"> <table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="e4e4e4">
                    <tr>
                      <td width="18%" align="right" valign="middle" bgcolor="#FFFFFF" class="t13">物品名稱</td>
                      <td valign="top" bgcolor="FFF5F5" class="t13"> <input name="g_name" type="text" size="40" maxlength="120" value="" ><!--modified vera 20070430 80->120 40->60 -->
                        ( 60個中文字以內 ) </td>
                    </tr>
                    <tr>
                      <td rowspan="4" align="right" valign="top" bgcolor="#FFFFFF" class="t13">販售方式.數量.價格</td>
                      <td valign="top" bgcolor="FFF5F5" class="t1320"> <table width="100%" border="0" cellspacing="0" cellpadding="2">
                          <tr>
                            <td width="20" class="t13"> <input name="g_mode" type="radio" onclick=change(this) value="A" onchange=change(this) checked >
                            </td>
                            <td width="80" class="t13"><b>競標方式</b></td>
                            <td width="150" class="t13">數量 1</td>
                            <td class="t13"> 起標價
                              <input name="g_start_price" type="text" size="10" maxlength="10" onKeyPress="return check_isnum()" onFocus="move_radio(0)" value='' >
                              元</td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr>
                      <td valign="top" bgcolor="#FFFFFF" class="t1320"><table width="100%" border="0" cellspacing="0" cellpadding="2">
                          <tr>
                            <td  class="t13" width="104">&nbsp;</td>
                            <td width="150" class="t13">底價
                              <input name="g_base_price" type="text" size="10" maxlength="10" onKeyPress="return check_isnum()" onFocus="move_radio(0)" value='' >
                              元</td>
                            <td class="t13">直接購買價
                              <input name="g_direct_price" type="number" size="10" maxlength="10"  onKeyPress="return check_isnum()" onFocus="move_radio(0)" value='' >
                              元
&nbsp; <img border="0" src="http://www.ruten.com.tw/images/icon_p1.gif" align="absbottom" width="16" height="16"><input name="percent3" type="checkbox" onclick=change(this) value="ON" >
<font color="#006600"><b><font size="3"> 3% </font></b>回饋買家<span class="rd13">&nbsp;</span><span class="rd12">( 請打勾 )</span></font></span>                           </td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr>
                      <td valign="top" bgcolor="FFF5F5" class="t1320"><table width="100%" border="0" cellspacing="0" cellpadding="2">
                          <tr>
                            <td width="20" class="t13"> <input type="radio" name="g_mode" value="B" onclick=change(this) onchange=change(this)  >
                            </td>
                            <td width="80" class="t13"><b>定價販售</b></td>
                            <td width="150" class="t13">數量
                              <input name="g_num" type="text" size="5" maxlength="3" onKeyPress="return check_isnum()" onFocus="move_radio(1)"  value="">
                              (1~999)</td>
                            <td class="t13"> 直接購買價
                              <input name="g_direct_price_1" type="text" size="10" maxlength="10" onKeyPress="return check_isnum()" onFocus="move_radio(1)" value='' >
                              元
&nbsp; <img border="0" src="http://www.ruten.com.tw/images/icon_p1.gif" align="absbottom" width="16" height="16"><input type="checkbox" name="percent3_1" value="ON" onclick=change(this) ><font color="#006600"><b><font size="3"> 3% </font></b>回饋買家<span class="rd13">&nbsp;</span><span class="rd12">( 請打勾 )</span></font></span>                       </td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr>
                      <td valign="top" bgcolor="#FFFFFF" class="t1320">( 競標方式和定價販售2選1)</td>
                    </tr>
                    <tr>
                      <td align="right" valign="middle" bgcolor="#FFFFFF" class="t13">運費規定</td>
                      <td valign="top" bgcolor="#FFF5F5" class="t13"> <input type="radio" name="g_ship" value="A"  >
                        買家自付
                        <input name="g_ship_cost" type="text" size="10" maxlength="6"  onKeyPress="return check_isnum()" value='' >
                        元
                        <input name="g_ship" type="radio" value="B" checked >
                        價格包含運費
                        <input type="radio" name="g_ship" value="C"  >
                        賣家負擔</td>
                    </tr>
                    <tr>
                      <td align="right" valign="top" bgcolor="#FFFFFF" class="t13">刊登時間設定</td>
                      <td valign="top" bgcolor="FFF5F5" class="t13"><table border="0">
                        <tr>
                          <td valign="top" class="t13">每次刊登
                       <select name="Duration" >
                                                  <option value="3">3</option>
                                                  <option value="4">4</option>
                        <option value="5">5</option>
                        <option value="6">6</option>
                        <option value="7"selected>7</option>
                        <option value="8">8</option>
                        <option value="9">9</option>
                        <option value="10">10</option>
                                                <option value="20">20</option>
                                                <option value="30">30</option>
                                                <option value="60">60</option>
                                               </select> 天 , 結束時間:
                                                        <select name="g_end_time" >
                          <option value="24"  >午夜 12 點 - 凌晨 1 點 </option>
                          <option value="1"  >凌晨 1 點 - 凌晨 2 點 </option>
                          <option value="2">凌晨 2 點 - 凌晨 3 點 </option>
                          <option value="3">凌晨 3 點 - 凌晨 4 點 </option>
                          <option value="4">凌晨 4 點 - 凌晨 5 點 </option>
                          <option value="5">凌晨 5 點 - 上午 6 點 </option>
                          <option value="6">上午 6 點 - 上午 7 點 </option>
                          <option value="7">上午 7 點 - 上午 8 點 </option>
                          <option value="8">上午 8 點 - 上午 9 點 </option>
                          <option value="9">上午 9 點 - 上午 10 點 </option>
                          <option value="10">上午 10 點 - 上午 11 點 </option>
                          <option value="11">上午 11 點 - 中午 12 點 </option>
                          <option value="12">中午 12 點 - 下午 1 點 </option>
                          <option value="13">下午 1 點 - 下午 2 點 </option>
                          <option value="14">下午 2 點 - 下午 3 點 </option>
                          <option value="15">下午 3 點 - 下午 4 點 </option>
                          <option value="16">下午 4 點 - 下午 5 點 </option>
                          <option value="17">下午 5 點 - 下午 6 點 </option>
                          <option value="18"selected>下午 6 點 - 晚上 7 點 </option>
                          <option value="19">晚上 7 點 - 晚上 8 點 </option>
                          <option value="20">晚上 8 點 - 晚上 9 點 </option>
                          <option value="21">晚上 9 點 - 晚上 10 點 </option>
                          <option value="22">晚上 10 點 - 晚上 11 點 </option>
                          <option value="23">晚上 11 點 - 午夜 12 點 </option>
                        </select>
                                                , <map id="sold_out">
                        沒賣出自動重新上架</map>
                        <select name="g_resell_set" >
                        <option value="0" selected>0</option>
                        <option value="1" >1</option>
                        <option value="2" >2</option>
                        <option value="3" >3</option>
                        <option value="4" >4</option>
                          <option value="5" >5</option>
                              <option value="6" >6</option>
                            <option value="7" >7</option>
                            <option value="8" >8</option>
                            <option value="9" >9</option>
                            <option value="10" >10</option>
                            <option value="99" selected>無限</option>
                       </select>
                      次。</td>
                          <map id="sold_out_1">
                        <!--沒賣出自動重新上架-->
                        </map>
                        <map id="sold_out_2">
                        <!--沒賣光自動重新上架-->
                        </map>
                      <td valign="top" class="t13" >
                        <div id="with_resell_once">
                        <!--<strong><strong><input type="checkbox" name="resell_once" value="Y" ></strong></strong>
                        <span class="rd13">賣光再自動上架1次<br></span>
                        <strong><input name="g_early_set" type="checkbox" value="Y" checked disabled><strong>設定提前結束販售</strong></strong>-->
                        </div>
                        <div id="without_resell_once">
                        <!--<strong><input name="g_early_set" type="checkbox" value="Y" checked><strong>設定提前結束販售</strong></strong>-->
                        </div>
                        <div id="add_item">
                                                <strong><input name="g_early_set" type="checkbox" value="Y"  checked>
                        <strong>設定提前結束販售</strong></strong></div>
                      </td>
                      </tr>
                      </table>
                      </td>
                    </tr>
<!-- susan 200608014
                     <tr>
                      <td height="24" valign="top" bgcolor="#FFFFFF" class="t13">
                        <input name="g_extend_set" type="checkbox" value="Y"  >
                        <b>設定搶標自動延長</b><br> &nbsp;( 結標時間前10分鐘內若有人出價,系統會自動將拍賣結束時間延長5分鐘。)</td>
                    </tr>
-->
                    <tr>
                      <td align="right" valign="middle" bgcolor="#FFFFFF" class="t13">物品狀況</td>
                      <td valign="top" bgcolor="#FFF5F5" class="t13"> <input name="g_condition" type="radio"  onclick=change(this) value="A" checked   >
                        物品中描述
                        <input type="radio" name="g_condition" value="B"  onclick=change(this)  >
                        全新
                        <input type="radio" name="g_condition" value="C"  onclick=change(this)  >
                        二手(使用過)
                        <select name="g_condition_1" >
                          <option value="C" >使用1次</option>
                          <option value="D">近全新</option>
                          <option value="E">使用1週</option>
                          <option value="F">使用1個月</option>
                          <option value="G">使用3個月</option>
                          <option value="H">使用半年</option>
                          <option value="I">使用一年</option>
                          <option value="J">使用二年以上</option>
                        </select></td>
                    </tr>

                    <tr>
                      <td align="right" valign="top" bgcolor="#FFFFFF" class="t13">物品說明</td>
                      <td valign="top" bgcolor="#FFF5F5" class="t13">
                        <p>
    <textarea name="text2" id="text2_ID"  style="LEFT: 20px; VISIBILITY: hidden; POSITION: absolute; TOP: 0px"></textarea>
    <script>
        if (!document.idGenerator) document.idGenerator = new IDGenerator(0);
        EditorSetBrief=true;
        var editor = new Editor(document.idGenerator, 'text2_ID', '250');
        editor.Instantiate();
            </SCRIPT>
                        </p>
                      </td>
                    </tr>
                    <tr>
                      <td align="right" valign="top" bgcolor="#FFFFFF" class="t13">物品所在地</td>
                      <td valign="top" bgcolor="#FFF5F5" class="t1320"> <table width="100%" border="0" cellspacing="1" cellpadding="0">
                          <tr>
                            <td class="t13"> <input name="g_location" type="radio" onclick=change(this) value="in" checked  >
                              台灣&nbsp;
                              <select name=g_location_1 >
                                <option value="" >--選擇縣市--</option>
                                <option value="台北市" >台北市 </option>
                                <option value="基隆市">基隆市 </option>
                                <option value="台北縣">台北縣 </option>
                                <option value="宜蘭縣">宜蘭縣 </option>
                                <option value="桃園縣">桃園縣 </option>
                                <option value="新竹市">新竹市 </option>
                                <option value="新竹縣">新竹縣 </option>
                                <option value="苗栗縣">苗栗縣 </option>
                                <option value="台中市">台中市 </option>
                                <option value="台中縣">台中縣 </option>
                                <option value="彰化縣">彰化縣 </option>
                                <option value="南投縣">南投縣 </option>
                                <option value="嘉義市">嘉義市 </option>
                                <option value="嘉義縣">嘉義縣 </option>
                                <option value="雲林縣">雲林縣 </option>
                                <option value="台南市">台南市 </option>
                                <option value="台南縣">台南縣 </option>
                                <option value="高雄市">高雄市 </option>
                                <option value="高雄縣">高雄縣 </option>
                                <option value="澎湖縣">澎湖縣 </option>
                                <option value="屏東縣">屏東縣 </option>
                                <option value="台東縣">台東縣 </option>
                                <option value="花蓮縣">花蓮縣 </option>
                                <option value="金門縣">金門縣 </option>
                                <option value="連江縣">連江縣 </option>
                              </select></td>
                          </tr>
                          <tr>
                            <td  class="t13"><input type="radio" name="g_location" value="out" onclick=change(this)  >
                              其他地區&nbsp;&nbsp;&nbsp; <input name="g_location_2" type="text" size="20" maxlength="20" value="" >
                              (10個中文字以內) </td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td align="right" valign="middle" bgcolor="#FFFFFF" class="t13">買家下標限制</td>
                      <td height="3" valign="middle" bgcolor="#FFFFFF" class="t13">
                          評價<b>總分</b>必須≧&nbsp;<select name="g_buyer_limit_value" >
                          <option value=""  selected>無</option>
                          <option value="-1" >-1</option>
                          <option value="0" >0</option>
                          <option value="1" >1</option>
                          <option value="2" >2</option>
                          <option value="3" >3</option>
                          <option value="4" >4</option>
                          <option value="5" >5</option>
                        </select>&nbsp;&nbsp;&nbsp;&nbsp;
                        差勁評價≦&nbsp;<input name="g_buyer_limit_nega" type="text" size="3" maxlength="3" onKeyPress="return check_isnum()" value="" >&nbsp;分
                        </td>
                    </tr>
                    <tr>
                      <td align="right" valign="middle" bgcolor="#FFFFFF" class="t13">交易方式</td>
                      <td bgcolor="#FFF5F5" class="t13"> <table width="100%" border="0" cellspacing="0" cellpadding="2">
                          <tr>
                            <td width="17%" class="t13"> <input name="g_trade_way[]" type="checkbox" value="A"  >
                              確認入帳後寄出物品 </td>
                            <td width="19%" class="t13"> <input type="checkbox" name="g_trade_way[]" value="B"  >
                              收到物品再付款</td>
                            <td width="66%" class="t13"> <input type="checkbox" name="g_trade_way[]" value="C"  >
                              見面交貨付款</td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td align="right" valign="middle" class="t13">付款方式</td>
                      <td valign="top" bgcolor="#FFF5F5" class="t13"> <table width="100%" border="0" cellspacing="0" cellpadding="2">
                          <tr>
                            <td width="17%" height="19" class="t13"> <input type="checkbox" name="g_pay_way[]" value="CASH"  >
                              接受現金 </td>
                            <td width="19%" class="t13"> <input type="checkbox" name="g_pay_way[]" value="ATM"  >
                              ATM轉帳&nbsp;<a href='https://member.ruten.com.tw/user/notify.htm' target='_new'>設定付款快手</a></td>
                            <td width="25%" class="t13"> <input type="checkbox" name="g_pay_way[]" value="CHECK"  >
                              接受支票或匯款 </td>
                            <td width="21%" class="t13"><input type="checkbox" name="g_pay_way[]" value="CARD"  >
                              接受信用卡 </td>
                            <td width="20%" class="t13"><input type="checkbox" name="g_pay_way[]" value="OTHERS"  >
                              其他</td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td align="right" valign="middle" bgcolor="#FFFFFF" class="t13">交貨方式</td>
                      <td valign="top" bgcolor="#FFF5F5"><table width="100%" border="0" cellspacing="0" cellpadding="2">
                          <tr>
                            <td width="17%" height="19" class="t13"> <input type="checkbox" name="g_deliver_way[]" value="POST"  >
                              郵寄</td>
                            <td width="19%" class="t13"> <input type="checkbox" name="g_deliver_way[]" value="HOUSE" >
                              宅配</td>
                            <td width="25%" class="t13"> <input type="checkbox" name="g_deliver_way[]" value="EXPRESS" >
                              快遞</td>
                            <td width="21%" class="t13"><input type="checkbox" name="g_deliver_way[]" value="OTHER" >
                              接受運送國外</td>
                            <td width="20%" class="t13"><input type="checkbox" name="g_deliver_way[]" value="OTHERS" >
                              其他 </td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td align="right" valign="middle" bgcolor="#FFFFFF" class="t13">其他交貨付款方式</td>
                      <td height="3" valign="top" bgcolor="#FFFFFF" class="t13"><input name="g_deliver_way_1" type="text" size="40" maxlength="40" value=''>
                        (10個中文字以內)</td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td align="right" valign="top" bgcolor="#FFFFFF" class="t13">特別醒目標籤</td>
                      <td height="4" valign="top" bgcolor="#FFFFFF" class="t13"><table width="100%" border="0" cellspacing="1" cellpadding="1">
                          <tr>
                            <td width="25%" class="rd13"><input type="checkbox" name="g_flag[]" value="HAND"  >
                              <!--img src="http://www.ruten.com.tw/images/handmade.gif"  align="absmiddle"-->
                              <img src="http://www.ruten.com.tw/images/item_icon.gif" align="absmiddle"> 手工製品
                            </td>
                            <td width="25%" class="rd13"><input type="checkbox" name="g_flag[]" value="SPSIZE" >
                              <!--img src="http://www.ruten.com.tw/images/size.gif"  align="absmiddle"-->
                              <img src="http://www.ruten.com.tw/images/item_icon.gif" align="absmiddle"> 特殊尺寸
                            </td>
                            <td width="25%" class="rd13"><input type="checkbox" name="g_flag[]" value="LIMIT" >
                              <!--img src="http://www.ruten.com.tw/images/limit.gif"  align="absmiddle"-->
                              <img src="http://www.ruten.com.tw/images/item_icon.gif" align="absmiddle"> 限量商品
                            </td>
                            <td width="25%" class="rd13"><input type="checkbox" name="g_flag[]" value="IDENT"  >
                              <!--img src="http://www.ruten.com.tw/images/certificate.gif"  align="absmiddle"-->
                              <img src="http://www.ruten.com.tw/images/item_icon.gif" align="absmiddle"> 附鑑定書
                            </td>
                          </tr>
                          <tr>
                            <td height="17" class="rd13"><input type="checkbox" name="g_flag[]" value="BOOKS" >
                              <!--img src="http://www.ruten.com.tw/images/quaranty1.gif"  align="absmiddle"-->
                              <img src="http://www.ruten.com.tw/images/item_icon.gif" align="absmiddle"> 附保證書
                            </td>
                            <td width="25%" class="rd13"><input type="checkbox" name="g_flag[]" value="STORE" >
                              <!--img src="http://www.ruten.com.tw/images/dirstore.gif"  align="absmiddle"-->
                              <img src="http://www.ruten.com.tw/images/item_icon.gif" align="absmiddle"> 店面保證
                            </td>
                            <td width="25%" class="rd13"><input type="checkbox" name="g_flag[]" value="COMPANY" >
                              <!--img src="http://www.ruten.com.tw/images/coproduct.gif" align="absmiddle"-->
                              <img src="http://www.ruten.com.tw/images/item_icon.gif" align="absmiddle"> 公司貨
                            </td>
                            <td width="25%" class="rd13"><input type="checkbox" name="g_flag[]" value="GIFT"  >
                              <!--img src="http://www.ruten.com.tw/images/gift.gif"  align="absmiddle"-->
                              <img src="http://www.ruten.com.tw/images/item_icon.gif" align="absmiddle"> 適合送禮
                            </td>
                          </tr>
                          <tr>
                            <td width="25%" class="rd13"><input type="checkbox" name="g_flag[]" value="OFF50" >
                              <!--img src="http://www.ruten.com.tw/images/50off.gif" align="absmiddle"-->
                              <img src="http://www.ruten.com.tw/images/item_icon.gif" align="absmiddle"> 低於五折
                            </td>
                            <td width="25%" class="t13">
                             <span class="rd13">
                             <input type="checkbox" name="g_flag[]" value="RECEIPT"  >
                             <img src="http://www.ruten.com.tw/images/item_icon.gif" align="absmiddle"> 可開
                             <select class="bk10" name="receiptype" >
                              <option value="a" >發票</option>
                              <option value="b" >收據</option>
                             </select>
                             </span>
                            </td>
                            <td width="25%" class="t13">&nbsp;</td>
                            <td width="25%" class="t13">&nbsp;</td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </TR>
            </table>
            <br>
            <a name="next"><input type="button" name="Submit3" value="下一步" onClick="java script:send(1)">
            &nbsp;&nbsp;
            <input type="button" name="Submit32" value="重新填寫" onClick="java script:clear_data()">
            <br>
            <!--版型6c-填寫資料結束-->
          </div>
        <BR>
      </td>
    </tr>
 </table>
</form>

  <!--foot開始-->
    <table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
   <td height="25" align="center" class="bk12">
    <a href="http://www.ruten.com.tw/about/about_us.htm" class="bk13">關於露天</a><img src="http://www.ruten.com.tw/images/rights_dot.gif" width="14" height="12" />
    <a href="http://www.ruten.com.tw/system/" class="bk13">客服中心</a><img src="http://www.ruten.com.tw/images/rights_dot.gif" width="14" height="12" />
    <a href="http://www.ruten.com.tw/system/server_center.htm?000500010001" class="bk13">常見問題</a><img src="http://www.ruten.com.tw/images/rights_dot.gif" width="14" height="12" />
    <a href="http://www.ruten.com.tw/security/index.html" class="bk13">交易安全</a><img src="http://www.ruten.com.tw/images/rights_dot.gif" width="14" height="12" />
    <a href="http://www.ruten.com.tw/system/server_center.htm?00060001" class="bk13">會員合約</a><img src="http://www.ruten.com.tw/images/rights_dot.gif" width="14" height="12" />
    <a href="http://www.ruten.com.tw/system/server_center.htm?00060002" class="bk13">隱私權聲明</a><img src="http://www.ruten.com.tw/images/rights_dot.gif" width="14" height="12" />
    <a href="http://twexport.ebay.com/" class="bk13" target="_new">eBay 跨國交易</a>
   </td>
  </tr>
  <tr>
   <td align="center" class="bk13">露天市集國際資訊股份有限公司版權所有,轉載必究‧Copyright&copy; PChome eBay Co.,&nbsp;Ltd.</td>
  </tr>
  <tr>
   <td height="5">&nbsp;</td>
  </tr>
 </table>  <!--foot結束-->
</center>

</body>
</html>

Thanks for everyone ~~~~

Edited by abiteric

My website about Y-mate 網拍輔助程式 : http://www.L2play.comMy Blog ( Tranditional Chinese ) 開發小組的部落格 : http://tw.myblog.yahoo.com/play19990909

Link to comment
Share on other sites

What is output to the SciTe console?

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

What is output to the SciTe console?

Dale

>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Documents and Settings\Eric\桌面\dddd.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams

+>12:15:51 Starting AutoIt3Wrapper v.1.10.1.7 Environment(Language:0404 Keyboard:00000404 OS:WIN_XP/Service Pack 2 CPU:X86)

>Running AU3Check (1.54.10.0) from:C:\Program Files\AutoIt3

+>12:15:52 AU3Check ended.rc:0

>Running:(3.2.10.0):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\Eric\桌面\dddd.au3"

--> IE.au3 V2.3-1 Warning from function _IEAttach, $_IEStatus_NoMatch

+>12:15:58 AutoIT3.exe ended.rc:0

>Exit code: 0 Time: 8.086

My website about Y-mate 網拍輔助程式 : http://www.L2play.comMy Blog ( Tranditional Chinese ) 開發小組的部落格 : http://tw.myblog.yahoo.com/play19990909

Link to comment
Share on other sites

Console output makes it appear that it is able to write to a form field text2. I would be worried that text2 isn't really the input control you need to write to. Notice that is has an attribute - VISIBILITY: hidden

If you are not already, i suggest you use DebugBar (see my sig) to examine the source... it makes it easy to identify specific elelemts and shows you interpretted source (after Javascript has been applied).

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

Console output makes it appear that it is able to write to a form field text2. I would be worried that text2 isn't really the input control you need to write to. Notice that is has an attribute - VISIBILITY: hidden

If you are not already, i suggest you use DebugBar (see my sig) to examine the source... it makes it easy to identify specific elelemts and shows you interpretted source (after Javascript has been applied).

Dale

thanks for ur share "DebugBar"

but in the HTML souce code can`t find the tag like (" iframe ")

look like some javascript make this.

the java souce link :

http://www.ruten.com.tw/js/RichtextEditor.js

http://www.ruten.com.tw/js/javascript.js

http://www.ruten.com.tw/js/tw-sack.js

how do i work to do....

i want readfile and put into the area, i know Autoit can do it, but i don`t want to use "copy content...... get focus..... paste...." :)

there is the pic cut of DebugBar for the target HTML souce

Posted Image

Posted Image

sorry for my poor English.. and thanks

My website about Y-mate 網拍輔助程式 : http://www.L2play.comMy Blog ( Tranditional Chinese ) 開發小組的部落格 : http://tw.myblog.yahoo.com/play19990909

Link to comment
Share on other sites

$oIE = _IECreate("http://mybid.ruten.com.tw/upload/step2.htm?shop_id=&ck=")
$oFrames = _IEFrameGetCollection ($oIE)
$iNumFrames = @extended
If $iNumFrames > 0 Then
    If _IEIsFrameSet ($oIE) Then
        MsgBox(0, "Frame Info", "Page contains " & $iNumFrames & " frames in a FrameSet")
    Else
        MsgBox(0, "Frame Info", "Page contains " & $iNumFrames & " iFrames")
    EndIf
Else
    MsgBox(0, "Frame Info", "Page contains no frames")
EndIf

i use this code to test and report : " 1 iFrames "

and now , what function i can use :)

My website about Y-mate 網拍輔助程式 : http://www.L2play.comMy Blog ( Tranditional Chinese ) 開發小組的部落格 : http://tw.myblog.yahoo.com/play19990909

Link to comment
Share on other sites

So it appears you have an iFrame rather than a textarea.

Something like this should work:

$oFrame = _IEFrameGetCollection($oIE, 0)
_IEBodyWriteHTML($oFrame, "<H1>Hello AutoIt!</H1>")

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

So it appears you have an iFrame rather than a textarea.

Something like this should work:

$oFrame = _IEFrameGetCollection($oIE, 0)
_IEBodyWriteHTML($oFrame, "<H1>Hello AutoIt!</H1>")

Dale

wow~ thanks! i did it and work :)

My website about Y-mate 網拍輔助程式 : http://www.L2play.comMy Blog ( Tranditional Chinese ) 開發小組的部落格 : http://tw.myblog.yahoo.com/play19990909

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...