FBC's-Templates

 

JAVA-scripts

Page history last edited by Blaine 1 yr ago

These JAVA scripts perform different functions in your pages.

 

Because there are SPAM-bots that browse the WWW in search of email addresses to copy and send back to their owners for SPAM purposes, it is not safe to post complete email addresses on web pages. The following two examples of code break phone numbers and email addresses up into unrecognizable separate text strings that SPAM-bots pass over. The email addresses are displayed as usable links, even though they are actually broken into pieces within the web page.

 

 

 

 


 

This JAVA script breaks the stored text string of your phone number on the page, yet displays the number as a readable text string. 

BROKEN PHONE NUMBER = COMPLETE PHONE NUMBER DISPLAYED

 

<script type="text/javascript">

var my_addr = "AREA CODE"+"-"+"DIRECTORY CODE"+"-"+"NUMBER";

document.write(my_addr);

</script>

 

 

 

Highlight and copy the four lines above. In the page-edit toolbar of your own page, click on *Insert Plugin*, then click on *PBwiki Magic*, then click on *HTML* and paste the code. Edit the code and replace the CAPITAL letters AREA CODE, DIRECTORY CODE, NUMBER with the proper numbers of the phone number you're adding. Do not alter any other code. Save your page and check the result.

 


 

This JAVA script breaks the stored text string of your email address on the page, yet displays the address as a readable text string which in this case is displayed as the actual email address. 

BROKEN EMAIL ADDRESS = ACTUAL EMAIL ADDRESS DISPLAYED

 

<script type="text/javascript">

var my_addr = "USER NAME"+"@"+"ISP"+".COM, .ORG OR .NET";

document.write('<a href="mailto:'+my_addr+'">'+my_addr+'</a>');

</script>

 

Highlight and copy the four lines above. In the page-edit toolbar of your own page, click on *Insert Plugin*, then click on *PBwiki Magic*, then click on *HTML* and paste the code. Edit the code and replace the CAPITAL letters with the proper information you're adding. Replace USER NAME with the user name only. Replace ISP with the name of the Internet Service Provider only. Finally, replace the string .COM, .ORG or .NET with the proper suffix. Do not alter any other code. Save your page and test the link.

Example;  Replace USER NAME with somebody. Replace ISP with hotmail. Replace .COM, .ORG or .NET with .com so you'll end up displaying somebody@hotmail.com

 


 

This JAVA script breaks the stored text string of your email address on the page, yet displays the address as a readable text string which in this case is displayed as a description rather than the actual email address.  

BROKEN EMAIL ADDRESS = DESCRIPTION

 

 

<script type="text/javascript">

var my_addr = "USER NAME"+"@"+"ISP"+".COM, .ORG OR .NET";

document.write('<a href="mailto:'+my_addr+'">DESCRIPTION</a>');

</script>

 

Highlight and copy the four lines above. In the page-edit toolbar of your own page, click on *Insert Plugin*, then click on *PBwiki Magic*, then click on *HTML* and paste the code. Edit the code and replace the CAPITAL letters with the proper information you're adding. Replace USER NAME with the user name only. Replace ISP with the name of the Internet Service Provider only. Finally, replace the string .COM, .ORG OR .NET with the proper suffix. Do not alter any other code. Then also replace DESCRIPTION with the text that you want displayed. Save your page and test the link. 

 


 

 


 

This is not JAVA script but html code which displays a URL link as a description. You have the same options in different formats in the *Link* and *Insert Plugin* tabs.

 

<a href="LINK">DESCRIPTION</a>

 

You can put your link in the capital LINK and your description in the capital DESCRIPTION. NOTE that this code goes into the page while editing in *Source* mode NOT wysiwyg or what-you-see-is-what-you-get mode. You have to click on the *Source* tab when you start editing.

 

 


 

 

Comments (0)

You don't have permission to comment on this page.