1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

There is some mistakes in my scripts - Any pro can repair it?

Discussion in 'JavaScript' started by archpredator, Mar 5, 2010.

  1. #1
    <html>
    
    <HEAD><meta http-equiv="Content-Type" content="text/html; charset f-8"><SCRIPT LANGUAGE="JavaScript"><!--
    document.write(unescape("<SCRIPT LANGUAGE="JavaScript"><!--
    
    hp_ok ue;function hp_d00(s){if(!hp_ok)return;document.write(s)}//--></SCRIPT>"));//--></SCRIPT><SCRIPT LANGUAGE="JavaScript"><!--
    hp_d00(unescape("<head>
    
    
    
    <title>Dictionary Czech-Vietnam and Vietnam-Czech, www.secviet.cz, THQ</title>
    
    
    
    "));//--></SCRIPT><SCRIPT LANGUAGE="JavaScript"><!--
    hp_d00(unescape("<script src="http://www.google.com/jsapi" type="text/javascript"></script>"));//--></SCRIPT><SCRIPT LANGUAGE="JavaScript"><!--
    hp_d00(unescape("
    
    
    
    <script language="JavaScript">
    
    function keyHole(evt) {
    
    var CR = 13; // Carriage Return
    
    var TAB = 9; // Horizontal Tab
    
    var AMP = 38; // Ampersand (&). You get the idea...
    
    var charCode;
    
    if (navigator.appName == "Netscape")
    
    charCode = evt.which 
    
    else 
    
    charCode = evt.keyCode;
    
    if (charCode == CR) change();
    
    return true;
    
    }
    
    </script>
    
    
    
    <SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
    
    		<!-- Hide script from old browsers
    
    
    
    		if (top.location != self.location) {
    
    			top.location.replace(self.location)
    
    		}
    
    		
    
    		// End hiding script from old browsers -->
    
    	</SCRIPT>	 
    
     
    
    
    
    <style type="text/css"> 
    
    <!-- 
    
    textarea
    
    { 
    
    scrollbar-base-color: white; 
    
    scrollbar-face-color: #FFFFFF; 
    
    scrollbar-highlight-color:  #FFFFFF; 
    
    scrollbar-shadow-color: #FFFFFF; 
    
    scrollbar-3d-light-color: white; 
    
    scrollbar-darkshadow-color: white; 
    
    scrollbar-track-color:white; 
    
    scrollbar-arrow-color: #FFFFFF;
    
    font-size: 16px; 
    
    color: black; 
    
    font-family: Courier New;
    
    } 
    
    --> 
    
    </style>
    
    
    
    </head>"));//--></SCRIPT></HEAD>
    <BODY><NOSCRIPT>To display this page you need a browser with JavaScript support.</NOSCRIPT><SCRIPT LANGUAGE="JavaScript"><!--
    hp_d00(unescape("<body background
    ffff bgcolor="#CECEFF" >
    
    <form name="f1" target="_parent">
    
    "));//--></SCRIPT><SCRIPT LANGUAGE="JavaScript"><!--
    hp_d00(unescape("<script language="JavaScript" src="functionsv.js">
    
    </SCRIPT>"));//--></SCRIPT><SCRIPT LANGUAGE="JavaScript"><!--
    hp_d00(unescape(" 
    
    "));//--></SCRIPT><SCRIPT LANGUAGE="JavaScript"><!--
    hp_d00(unescape("<script language="JavaScript" src="functionsv1.js">
    
    </SCRIPT>"));//--></SCRIPT><SCRIPT LANGUAGE="JavaScript"><!--
    hp_d00(unescape(" 
    
    "));//--></SCRIPT><SCRIPT LANGUAGE="JavaScript"><!--
    hp_d00(unescape("<script language="JavaScript" src="functionvs.js">
    
    </SCRIPT>"));//--></SCRIPT><SCRIPT LANGUAGE="JavaScript"><!--
    hp_d00(unescape(" 
    
    "));//--></SCRIPT><SCRIPT LANGUAGE="JavaScript"><!--
    hp_d00(unescape("<script language="JavaScript" src="functionvs1.js">
    
    </SCRIPT>"));//--></SCRIPT><SCRIPT LANGUAGE="JavaScript"><!--
    hp_d00(unescape(" 
    
    
    
    <script language="JavaScript" >
    
    
    
    function _clearSourceArea () {
    
       var actualForm = document.forms["f1"];
    
        actualForm.elements["sWord2"].value="";
    
        actualForm.elements["sWord3"].value="";
    
    actualForm.elements["sWord4"].value="";
    
    actualForm.elements["sWord5"].value="";
    
    actualForm.elements["sWord6"].value="";
    
    actualForm.elements["sWord7"].value="";
    
    actualForm.elements["sWord8"].value="";
    
    actualForm.elements["sWord9"].value="";
    
    actualForm.elements["sWord10"].value="";
    
    actualForm.elements["sWord11"].value="";
    
    }
    
    function _clearSourceArea1 () {
    
       var actualForm = document.forms["f1"];
    
        actualForm.elements["eWord"].value="";  
    
    }
    
    function _clearSourceArea2 () {
    
       var actualForm = document.forms["f1"];
    
        actualForm.elements["sWord"].value=""; 
    
        actualForm.elements["sWord1"].value="";  
    
    }
    
    
    
    function getLinkText (link) { 
    
    document.f1.eWord.value= link.firstChild.nodeValue.replace(/(\.|\â—¦)/,"") ;}  
    
    </SCRIPT> 
    
    <script>
    
    function getSelectedRadioValue(radioGroup){
    
    var selectedRadioValue="";
    
    var radIndex;
    
    for(radIndex=0;  radIndex < radioGroup.length; radIndex++){
    
    if(radioGroup[radIndex].checked){
    
     selectedRadioValue dioGroup[radIndex].value;
    
     break;
    
      }
    
     }
    
    return selectedRadioValue;
    
    }
    
     function change(){ 
    
    var e tSelectedRadioValue(f1.group);
    
     switch(e){
    
     case 'V':  return new translate2()+translate3()+submitChange1();;break;
    
     case 'Cz': return new translate()+translate1()+submitChange(); break;
    
    default:  return new translate()+translate1()+submitChange();; break;
    
    }
    
    }
    
     
    
     function change2(){ 
    
    var e tSelectedRadioValue(f1.group);
    
     switch(e){
    
     case 'V':  return new translate2()+submitChange1();break;
    
     case 'Cz': return new translate()+submitChange(); break;
    
    default:  return new translate()+submitChange(); break;
    
    }
    
    }
    
    </script>
    
    
    
    <p align="center">
    
    <span style="text-transform: uppercase"><b><font color="#0000FF" face="Arial" size="5">TỪ điỂn Séc-ViỆt, 
    
    viỆt-séc</font></b></span>                                                                                                  
    
    <p align="center" style="margin-top: 0; margin-bottom: 0">
    
    <span style="letter-spacing: -1pt">&nbsp;<font color="#800000" size="5">Česko-vietnamský a Vietnamsko-český slovník</font></span><p align="right" style="margin-top: 0; margin-bottom: 0">
    
    <font size="1">©2004 Tran Hung Quan</font><hr align="left" color="#C0C0C0" noshade>
    
    <center>
    
    
    
    <p style="background-color: ffffc0; margin-top: 0; margin-bottom: 0">Séc - Việt<input type="radio" name="group" value="Cz" onClick="_clearSourceArea ()+_clearSourceArea1 ()+_clearSourceArea2 () " checked>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                               
    
    <font color="#000000">Việt - Séc</font><input type="radio" name="group" value="V" onClick="_clearSourceArea ()+_clearSourceArea1 ()+_clearSourceArea2 () ">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
    
    <p style="background-color: ffffc0; margin-top: 0; margin-bottom: 0">
    
    <b>Điền từ cần tra:</b>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
    
    <p style="background-color: ffffc0; margin-top: 0; margin-bottom: 0">
    
    <input type="text" name="eWord" id="eWord" onclick=" _clearSourceArea () ;" onkeydown=" _clearSourceArea () ;" onkeypress="keyHole(event)" size="31"  maxlength="80" style="times new roman">        
    
    <p style="background-color: ffffc0;margin-top: 0; margin-bottom: 0">
    
    <strong>
    
    <b>
    
    <input type="button"   value="Tra từ - Přelož !" onclick="change();" style="font-weight: bold">
    
    </b>
    
    </strong>
    
    </center>
    
    <hr>
    
    <p style="margin-top: 0; margin-bottom: 6" align="center"><b>Kết quả tra từ - Výsledek překladu:</b>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
    
    <center>
    
    <table border="0" width="100%" bordercolor="#FFFFFF" height="297">
    
      <tr>
    
        <td width="35%" bgcolor="#EFEFEF" height="25">
    
    <p align="center">
    
    <i>
    
    <font size="4" color="#800000">Từ gần đúng - Podobné                                                                                                                                                                                                                                                                                                                                                                                   
    
    slovo </font><font size="4">&nbsp;&nbsp;</font>                                                                                                                                                                                                         
    
    </i>                                                                                                                                                                                                                                                                                                         
    
    </p>
    
        </td>
    
        <td  width="1%" rowspan="2" bgcolor="#CECEFF" height="293">&nbsp;</td>
    
    
    
    </center>
    
    
    
        <td width="64%" bgcolor="#FFFFFF" bordercolor="#FFFFFF" height="25">
    
          <p align="left"><input type="text" name="sWord" size="60" style="font-style: italic; color: #800000; font-size: 11pt; border-style: solid; border-color: #FFFFFF; margin-left: 50"></p>
    
        </td>
    
      </tr>
    
    <center>
    
      <tr>
    
        <td width="35%" bgcolor="#FFFFFF" height="1">
    
          <p style="margin-top: 0; margin-bottom: -3"><font color="#FFFFFF"><textarea  rows="1" name="sWord2" ONCLICK="change2() " onmouseup="var t tLinkText(this);return false;"  onmouseover="this.style.color = '#ff0000';" onmouseout="this.style.color = '#000000';" style="color: #000000; border-style: solid; border-color: #FFFFFF; cursor: hand;" cols="28" >.</textarea></font>
    
          <p style="margin-top: 0; margin-bottom: -3"><font color="#FFFFFF"><textarea rows="1" name="sWord3" ONCLICK="change2()" onmouseup="var t tLinkText(this);return false;" onmouseover="this.style.color = '#ff0000';" onmouseout="this.style.color = '#000000';" cols="28" style="border-style: solid; border-color: #FFFFFF; cursor: hand;">.</textarea></font></p>
    
          <p style="margin-top: 0; margin-bottom: -3"><textarea rows="1" name="sWord4" ONCLICK="change2()" onmouseup="var t tLinkText(this);return false;" onmouseover="this.style.color = '#ff0000';" onmouseout="this.style.color = '#000000';" cols="28" style="border-style: solid; border-color: #FFFFFF; cursor: hand;">.</textarea></p>
    
          <p style="margin-top: 0; margin-bottom: -3"><textarea rows="1" name="sWord5" ONCLICK="change2()" onmouseup="var t tLinkText(this);return false;" onmouseover="this.style.color = '#ff0000';" onmouseout="this.style.color = '#000000';" cols="28" style="border-style: solid; border-color: #FFFFFF; cursor: hand;">.</textarea></p>
    
          <p style="margin-top: 0; margin-bottom: -3"><textarea rows="1" name="sWord6" ONCLICK="change2()" onmouseup="var t tLinkText(this);return false;" onmouseover="this.style.color = '#ff0000';" onmouseout="this.style.color = '#000000';" cols="28" style="border-style: solid; border-color: #FFFFFF; cursor: hand;">.</textarea></p>
    
          <p style="margin-top: 0; margin-bottom: -3"><textarea rows="1" name="sWord7" ONCLICK="change2()" onmouseup="var t tLinkText(this);return false;" onmouseover="this.style.color = '#ff0000';" onmouseout="this.style.color = '#000000';" cols="28" style="border-style: solid; border-color: #FFFFFF; cursor: hand;">.</textarea></p>
    
          <p style="margin-top: 0; margin-bottom: -3"><textarea rows="1" name="sWord8" ONCLICK="change2()" onmouseup="var t tLinkText(this);return false;" onmouseover="this.style.color = '#ff0000';" onmouseout="this.style.color = '#000000';" cols="28" style="border-style: solid; border-color: #FFFFFF; cursor: hand;">.</textarea></p>
    
          <p style="margin-top: 0; margin-bottom: -3"><textarea rows="1" name="sWord9" ONCLICK="change2()" onmouseup="var t tLinkText(this);return false;" onmouseover="this.style.color = '#ff0000';" onmouseout="this.style.color = '#000000';" cols="28" style="border-style: solid; border-color: #FFFFFF; cursor: hand;">.</textarea></p>
    
          <p style="margin-top: 0; margin-bottom: -3"><textarea rows="1" name="sWord10" ONCLICK="change2()" onmouseup="var t tLinkText(this);return false;" onmouseover="this.style.color = '#ff0000';" onmouseout="this.style.color = '#000000';" cols="28" style="border-style: solid; border-color: #FFFFFF; cursor: hand;">.</textarea></p>
    
          <p style="margin-top: 0; margin-bottom: -3"><textarea rows="1" name="sWord11" ONCLICK="change2()" onmouseup="var t tLinkText(this);return false;" onmouseover="this.style.color = '#ff0000';" onmouseout="this.style.color = '#000000';" cols="28" style="border-style: solid; border-color: #FFFFFF; cursor: hand;">.</textarea></p>
    
        </td>
    
        <td width="64%" bgcolor="#FFFFFF" height="264">
    
        <p style="margin-top: 0; margin-bottom: 0">
    
        <div id="results"> 
    
    
    
     <div id="results"> 
    
             
    
        <textarea readonly="readonly" id="results_body" rows="1" cols="41" style="line-height: 150%; border-style: solid; border-color: #FFFFFF; margin-left: 70"></textarea>  
    
      </div>    
    
         </p>
    
        <p style="margin-top: 0; margin-bottom: 0">
    
        <textarea rows="13" name="sWord1" cols="41" style="line-height: 150%; border-style: solid; border-color: #FFFFFF; margin-left: 50">Sử dụng IE (internet explore)
    
     để tra từ điển.
    
        </textarea></p>
    
        </td>
    
      </tr>
    
    </table>
    
    </form>
    
    <p align="center">
    
    </center>
    
    <script type="text/javascript"> 
    
    google.load("language", "1"); 
    
    google.setOnLoadCallback(init); 
    
    function init() { var src = document.getElementById('src');
    
    var dst = document.getElementById('dst'); 
    
    var i=0; 
    
    var dst_lang = "cs"; 
    
    var src_lang = "vi"; 
    
    for (l in google.language.Languages) { var lng = l.substr(0, 1).toUpperCase() + l.substr(1).toLowerCase();
    
    var lngCode = google.language.Languages[l]; if (google.language.isTranslatable(lngCode)) { 
    
    // add lang if(src_lang.toLowerCase() == lng.toLowerCase()) src.options.add(new Option(lng, lngCode, true)); else src.options.add(new Option(lng, lngCode)); 
    
    // add lang if(dst_lang.toLowerCase() == lng.toLowerCase()) dst.options.add(new Option(lng, lngCode, true)); else dst.options.add(new Option(lng, lngCode));
    
    } } google.language.getBranding('branding', { type : 'vertical' }); //translate on load //submitChange(); 
    
    } 
    
    function submitChange() { var value = document.getElementById('eWord').value; 
    
    var src = "cs";  
    
    var dest = "vi"; 
    
    google.language.translate(value, src, dest, translateResult); 
    
    return false; } 
    
    function submitChange1() { var value = document.getElementById('eWord').value; 
    
    var src = "vi";  
    
    var dest = "cs"; 
    
    google.language.translate(value, src, dest, translateResult); 
    
    return false; } 
    
    
    
    
    
    function translateResult(result) { var resultBody = document.getElementById("results_body");
    
     if (result.translation) { var str = result.translation.replace('>', '&gt;').replace('<', '&lt;'); resultBody.innerHTML = str; }
    
      else { resultBody.innerHTML = '<span style="color:red">Error Translating</span>'; } } </script>
    
    "));//--></SCRIPT><SCRIPT LANGUAGE="JavaScript"><!--
    hp_d00(unescape("<script src="http://www.google.com/uds/api/language/1.0/05b15e5fc741c7d3f90085fc1ed4a4b1/default+en.I.js" type="text/javascript"></script>"));//--></SCRIPT><SCRIPT LANGUAGE="JavaScript"><!--
    hp_d00(unescape("
    
    
    
    
    
    </body>"));//--></SCRIPT></BODY>
    </html>
    Code (markup):

    SEMrush
     
    archpredator, Mar 5, 2010 IP
    SEMrush
  2. Ehmad

    Ehmad Peon

    Messages:
    107
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i 'll check it if i get some free time tomorrow
     
    Ehmad, Mar 11, 2010 IP
  3. !Unreal

    !Unreal Well-Known Member

    Messages:
    1,671
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    165
    #3
    Could you be more specific?
     
    !Unreal, Mar 12, 2010 IP