Показать сообщение отдельно

  #30  
Старый 27.06.2007, 23:35
RaiDeRz
Участник форума
Регистрация: 05.04.2007
Сообщений: 123
С нами: 10052518

Репутация: 27
По умолчанию

хм... а в чем проблемма после добавления 2-й функции 1-я перестала пахать? щас у меня такой код:
PHP код:
<script type="text/javascript">
function 
update_cron_url() {
document.getElementById('cron_url').innerHTML '<a href="http://127.0.0.1/test/index.php?send_report='+document.form.send_report.value+'&admin_report='+document.form.admin_report.value+'&rand_start='+document.form.rand_start.value+'&rand_end='+document.form.rand_end.value+'&gen_rand='+document.form.gen_rand.value+'&pass='+unescape(document.form.pass.value)+'">http://127.0.0.1/test/index.php?send_report='+document.form.send_report.value+'&admin_report='+document.form.admin_report.value+'&rand_start='+document.form.rand_start.value+'&rand_end='+document.form.rand_end.value+'&gen_rand='+document.form.gen_rand.value+'&pass='+document.form.pass.value+'</a>'
}
function 
convertToHex(num) {
  var 
hex ''
  for (
i=0;i<num.length;i++) {
    if (
num.charCodeAt(i).toString(16).toUpperCase().leng  th 2) {
      
hex += "%0" num.charCodeAt(i).toString(16).toUpperCase(); 
    } else {
      
hex += "%" num.charCodeAt(i).toString(16).toUpperCase(); 
    }
  }
  return 
hex
}
</
script
 
Ответить с цитированием