Posted By: chomer () on 'CZwww'
Title: Re: Javascript: document.write v MSIE ?
Date: Fri Aug 3 18:32:55 2001
> > AFAIK je to porad document.write();.
> >
>
> A muzes me teda rict, proc me tohle MSIE nespapa (NS jo): ?
>
> <script>
> function show_email(s) {
> t='';
> for (i=0;i<s.length;i++) {
> if ((s.length&1) && (i==s.length-1))
> t+=s[i];
> else
> t+=s[i^1];
> }
> document.write ("<a href="mailto:",t,"">",t,"</a>");
> }
>
> show_email("otames@kte.fucinc.z");
> </script>
>
> (clovek by rek', ze s takhle jednoduchym skriptem nebude potiz.... :-o
>
Ha, uz jsem na to prisel, MSIE nerozumi "s[i]"... musi se to nahradit
"s.substr(i,1)".... grrrr....
Chomer (chatid: opat)
Nesnasim turisticke znacky, nenavidim minova pole a miluju poust....