[geeklog-users] including javascript in blocks

geeklog-users-admin at lists.geeklog.net geeklog-users-admin at lists.geeklog.net
Sat Jun 14 17:47:54 EDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I recently downloaded a program for OS X that encodes mailto links 
using javascript so that web-crawlers can't identify the mailto link. 
Given the amount of spam that I get for my geeklog administrator 
mailbox, this seemed to be a useful addition. How would I embed the 
following javascript code into one of my blocks that has a link for 
sending messages? Do I need to create a php block to do this or can I 
do this in a normal block? What, if anything would I have to escape to 
make this work?The code is the encrypted result of the mailto link 
created by the program "Enkoder".

<script language="JavaScript" type="text/javascript">
<!--
var d=new Array(
    116,170,104,211,167,131,153,158,138,123,122,
    185,105,181,163,138,144,141,124,200,103,133,
    157,154,134,223,110,130,161,165,135,184,108,
    143,156,145,127,217,173,107,142,101,110,148,
    153,162,119,206,160,209,124,134,163,148,125,
    201,162,208,122,182,157,121,115,158,148,137,
    104,182,135,205,165,218,118,120,146,224,173,
    114,123,200,148,127,172,129,119,169,141,128,
    162,178,106,146,125,170,143,188,160,130,100,
    117,115,141,129,159,142,182,154,110,165,215,
    175,203,108,222,116,105,123,117,129,124,134,
    162,138,201,141,143,143,212,144,163,144,174,
    143,180,141,142,138,159,134,185,129,182,123,
    202,116,197,108,167,175,155,165,132
);
var t = new Array();
var i=0,ii=0, v=0,vv=0, c=0,cc=0;
while (c<152) {
for (f0=166; f0<=349; f0++) { i+=f0; v+=i; cc+=1; if (c>=152) break;
if (f0==176 || v==i) continue; if (f0==276) i=cc;
for (f1=114; f1<=227; f1++) { i+=f1; v+=i; cc+=1; if (c>=152) break;
if (cc<f1 && v<i) break; if (f1==140) v=cc;
for (f2=141; f2<=271; f2++) { i+=f2; v+=i; cc+=1; if (c>=152) break;
if (cc<f2 && v<i) break; if (f2==228) v=cc;
for (f3=120; f3<=283; f3++) { i+=f3; v+=i; cc+=1; if (c>=152) break;
if (cc<f3 && v<i) break; if (f3==154) v=cc;
for (f4=164; f4<=327; f4++) { i+=f4; v+=i; cc+=1; if (c>=152) break;
if (cc<f4 && v<i) break; if (f4==262) i=cc;
ii=i+d[c++]; vv=v+d[c++]; ii%=76; vv%=127; t[ii]=vv; i%=76; v%=127;
}}}}}}
i=0; document.write("\<a href=\"");
while( t[i] ) document.write("\&\#"+t[i++]+";");
i++; document.write("\" title=\"");
while( t[i] ) document.write("\&\#"+t[i++]+";");
i++; document.write("\"\>");
while( t[i] ) document.write("\&\#"+t[i++]+";");
i++; document.write("\<\/a\>");
// -->
</script>
<noscript>
	<p> JavaScript must be enabled to display this email address. </p>
</noscript>

Norman Cohen
nacohen at mac.com

- ------------------
Confidentiality Note:  This message is intended for use only by the 
individual or entity to which it is addressed and may contain 
information that is privileged, confidential, and exempt from 
disclosure under applicable law.  If the reader of this message is not 
the intended recipient or the employee or agent responsible for 
delivering the message to the intended recipient, you are hereby 
notified that any dissemination, distribution or copying of this 
communication is strictly prohibited.  If you have received this 
communication in error,  please contact the sender immediately and 
destroy the material in its entirety, whether electronic or hard copy.  
Thank you.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)

iD8DBQE+65gRlBPrCqr3tskRAtjrAJ9nEvpupB/LtO1aBg6benQGuMqlvACfZM0p
ycXHfpiKCBnUaAVn6SrCeeM=
=WQC7
-----END PGP SIGNATURE-----




More information about the geeklog-users mailing list