What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » javascipt / html - help

javascipt / html - help
Author: Message:
Web_Master
Full Member
***

Avatar


Posts: 406
– / Male / –
Joined: Feb 2003
O.P. Huh?  javascipt / html - help
hello, i read outa some mag that got given to me about email spamming.   (PC Authority or something) It says about how spiders crawl the net and get emails from websites, it then has a javascipt which makes the spiders skip the email. I followed the insturction in the book but i still cant get to work.
Below is the code;

1. how do i make it come up on the page and work?
2. tell me what was wrong.

<script language="javascript"><!document.write('<ahref=mailto:'+'jacobcass'+'@'+'hotmail.com>user'+'@'+'hotmail.com</a>')</script>

THANKS!

This post was edited on 06-27-2004 at 07:18 AM by Web_Master.
--------------------------------------------------------
5 out of 4 people don't understand fractions.
--------------------------------------------------------
06-27-2004 07:15 AM
Profile E-Mail PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: javascipt / html - help
Change "ahref" to "a href" and remove the "<!" and it should work. :p
06-27-2004 07:59 AM
Profile PM Web Find Quote Report
Web_Master
Full Member
***

Avatar


Posts: 406
– / Male / –
Joined: Feb 2003
O.P. RE: javascipt / html - help
touche! :) thanks

still doesnt explain the mistake the magazine made.

This post was edited on 06-27-2004 at 10:04 AM by Web_Master.
--------------------------------------------------------
5 out of 4 people don't understand fractions.
--------------------------------------------------------
06-27-2004 10:02 AM
Profile E-Mail PM Web Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: javascipt / html - help
<! should be <!--, to remark off the java scripts in case browser didn't recognize it at all

"ahref" should be "a href" of course, because it's an A tag with HREF attribute/property :)
06-27-2004 10:06 AM
Profile PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: javascipt / html - help
What the magazine should print is:
<script language="javascript">
<!--
document.write('<a href=mailto:'+'jacobcass'+'@'+'hotmail.com>jacobcass'+'@'+'hotmail.com</a>')
-->
</script>

Anyways, this will stop indeed some spiders/crawlers, but certainly not all! It will only stop those who look at the html source, not the ones who look at the html-page itself.
.-= A 'frrrrrrrituurrr' for Wacky =-.
06-27-2004 11:54 AM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: javascipt / html - help
Try
code:
<a href="javascript:launchMail()">E-mail Me</a>
with
code:
<script type="text/javascript">
<!--
function launchMail()
{
    var email = "<user-name>";
    email = email + "@";
    email = email + "<domain-name>";
    window.location = "mailto:" + email;
}
// -->
</script>
Put the <script> part between the <head> tags, and the <a> anywhere where you want your e-mail link.

This code works: it's lifted from my own webpage.

This post was edited on 06-27-2004 at 08:09 PM by RaceProUK.
[Image: spartaafk.png]
06-27-2004 08:08 PM
Profile PM Web Find Quote Report
saralk
Veteran Member
*****

Avatar

Posts: 2598
Reputation: 38
35 / Male / Flag
Joined: Feb 2003
RE: javascipt / html - help
y cant u just make a php script which sends the e-mail?
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
06-27-2004 09:11 PM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: javascipt / html - help
PHP is server-side yes? Therefore, is t places more load on the server. A JavaScript/HTML solution puts the load on the client, which I believe is better all round.
[Image: spartaafk.png]
06-27-2004 09:15 PM
Profile PM Web Find Quote Report
Web_Master
Full Member
***

Avatar


Posts: 406
– / Male / –
Joined: Feb 2003
O.P. RE: RE: javascipt / html - help

quote:
Originally posted by CookieRevised
What the magazine should print is:
<script language="javascript">
<!--
document.write('<a href=mailto:'+'jacobcass'+'@'+'hotmail.com>jacobcass'+'@'+'hotmail.com</a>')
-->
</script>

Anyways, this will stop indeed some spiders/crawlers, but certainly not all! It will only stop those who look at the html source, not the ones who look at the html-page itself.


If you changed the code to as below then the spiders shouldnt pick it up

<script language="javascript">
<!--
document.write('<a href=mailto:'+'jacobcass'+'@'+'hotmail.com>email'+'me</a>')-->
</script>

--------------------------------------------------------
5 out of 4 people don't understand fractions.
--------------------------------------------------------
06-28-2004 05:57 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On