Ini versi JavaScript-nya:

function tulis(isi) {
        isi = isi.replace(String.fromCharCode(1), " ");
        isi = isi.replace(String.fromCharCode(2), " ");
        isi = isi.replace(String.fromCharCode(3), " ");
        isi = isi.replace(String.fromCharCode(15), " ");
        document.write(isi);
}

-elfan-

--- In [email protected], "Suki-KTM" <[EMAIL PROTECTED]> wrote:
>
> dear all,
> tanya donk, 
> untuk function tulis () [ format php ] di bawah ini, 
> klo dalam format javascript, coding nya bagaimana yah?
> karena aku tidak tahu fungsi chr() dan str_replace() dalam 'javascript'.
> thx alot!!
> rgds,
> soeki
> 
> 
> <?
> function tulis($isi) {
> $isi = str_replace(chr(1)," ",$isi);
> $isi = str_replace(chr(2)," ",$isi);
> $isi = str_replace(chr(3)," ",$isi);
> $isi = str_replace(chr(15)," ",$isi);
> echo $isi;
> }
> ?>
>


------------------------------------

--- 
Website: http://toekangweb.or.id/
Arsip milis : http://groups.yahoo.com/group/toekangweb/messages
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/toekangweb/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/toekangweb/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Kirim email ke