gurax
Pan ignoramus
Te bukura dhe qe hyjne ne pune
Duke u marre me dicka krejt tjeter, gjeta kete material qe mund t'u interesoje webmaster-ave.
Eshte nje menyre per te ulur mundesine e mbledhjes se automatizuar te adresave email nga bote site-crawler dhe qe me pas i perdorin keto adresa te mbledhura automatikisht ne lista per te gjeneruar spam email. Lista te tilla kane qindra mijera e deri dhe miliona adresa te mbledhura ne kete menyre!
Spammers have bots that scoure web pages for email addresses to add to their databases. Hiding your email address will reduce your spam, but often at the expense of convenience to real people. Here's a little bit of javascript that will obscure your mailto links from bots, but still work perfectly for humans clicking on the links so long as they have javascript enabled. Unfortunately, if javascript is disabled nothing is displayed.
Add the following in the header section of your web page:
<font class="small">Code:</font><hr /><pre>
<script type="text/javascript">
function WriteMailLink(thelink,user,domain,subject) {
document.write('<a href="mai');
document.write('lto:'+user+'&#64;');
document.write(domain);
if ( subject.length > 0 )
document.write("?subject="+subject);
document.write('">'+thelink+'<'+'/a>');
}
</script>
</pre><hr />
Instead of using an anchor to add the link, just add a bit of javascript:
<font class="small">Code:</font><hr /><pre>
<script type="text/javascript">
WriteMailLink('John Smith','jsmith','domain.com','optional subject');
</script>
</pre><hr />
The first argument is the clickable link text. The second argument is the name portion of the email address. The third argument is the domain. The fourth argument is an optional subject. Pass an empty string if you don't wish a default subject.
Duke u marre me dicka krejt tjeter, gjeta kete material qe mund t'u interesoje webmaster-ave.
Eshte nje menyre per te ulur mundesine e mbledhjes se automatizuar te adresave email nga bote site-crawler dhe qe me pas i perdorin keto adresa te mbledhura automatikisht ne lista per te gjeneruar spam email. Lista te tilla kane qindra mijera e deri dhe miliona adresa te mbledhura ne kete menyre!
Spammers have bots that scoure web pages for email addresses to add to their databases. Hiding your email address will reduce your spam, but often at the expense of convenience to real people. Here's a little bit of javascript that will obscure your mailto links from bots, but still work perfectly for humans clicking on the links so long as they have javascript enabled. Unfortunately, if javascript is disabled nothing is displayed.
Add the following in the header section of your web page:
<font class="small">Code:</font><hr /><pre>
<script type="text/javascript">
function WriteMailLink(thelink,user,domain,subject) {
document.write('<a href="mai');
document.write('lto:'+user+'&#64;');
document.write(domain);
if ( subject.length > 0 )
document.write("?subject="+subject);
document.write('">'+thelink+'<'+'/a>');
}
</script>
</pre><hr />
Instead of using an anchor to add the link, just add a bit of javascript:
<font class="small">Code:</font><hr /><pre>
<script type="text/javascript">
WriteMailLink('John Smith','jsmith','domain.com','optional subject');
</script>
</pre><hr />
The first argument is the clickable link text. The second argument is the name portion of the email address. The third argument is the domain. The fourth argument is an optional subject. Pass an empty string if you don't wish a default subject.