HTML Programming Aid



Shield a Name

<script language=javascript><!--
var shieldName = "Shield This Name"
// ** Change the (double-)quoted value to your desired entry
document.write(shieldName)
//--></script><noscript>JS-PROTECTED</noscript>



Shield an Email Address

<script language=javascript><!--
var targetEname = "Email-Name"
// ** Change quoted value to user's email name (that's before the @)
var targetEserver = "Email-Server"
// ** Change quoted value to email server name (comes after the @)
var targetEtag = "Displayed Address Tag"
// ** Change quoted value to the link 'tag' you want displayed
targetE = '@'; targetE = (targetEname + targetE + targetEserver)
// ** keep next line [document.write()] together as one data string
document.write('<a href=' + 'mail' + 'to:' + targetE + '>' + targetEtag + '</a>')
//--></script><noscript>JS-PROTECTED</noscript>



Shield a Hyperlink

<script language=javascript><!--
var linkpath = "hyperlink.html"
// ** Change quoted value to path+filename (add http:// if needed)
var linkoptions = ' target="_blank"'
// ** Modify link options as necessary
var linktag = "Displayed Link Name"
// ** Change quoted value to the link 'tag' you want displayed
// ** keep next line [document.write()] together as one data string
document.write('<a href="' + linkpath + '"' + linkoptions + '>' + linktag + '</a>')
//--></script><noscript>JS-PROTECTED</noscript>



Shield an Image

<script language=javascript><!--
var imgSRCpath = "image.jpg"
// ** Change quoted value to image path+file (add http:// if needed)
var imgSRCalt = "PopUp ALT Tag"
// ** Change quoted value to the ALT text that you want displayed
var imgSRCoptions = ' border="0"'
// ** Modify image display options as necessary
// ** keep next line [document.write()] together as one data string
document.write('<IMG SRC="' + imgSRCpath + '" alt="' + imgSRCalt + '"' + imgSRCoptions + '>')
//--></script><noscript>JS-PROTECTED</noscript>



Shield a Hyperlinked Image

//--></script> <script language=javascript><!--
var linkpath = "hyperlink.html"
// ** Change quoted value to path+filename (add http:// if needed)
var linkoptions = ' target="_blank"'
// ** Modify link options as necessary
var imgSRCpath = "image.jpg"
// ** Change quoted value to image path+file (add http:// if needed)
var imgSRCalt = "PopUp ALT Tag"
// ** Change quoted value to the ALT text that you want displayed
var imgSRCoptions = ' border="0"'
// ** Modify image display options as necessary
// ** keep next line [document.write()] together as one data string
document.write('<a href="' + linkpath + '"' + linkoptions + '>' + '<IMG SRC="' + imgSRCpath + '" alt="' + imgSRCalt + '"' + imgSRCoptions + '>' + '</a>')
//--></script><noscript>JS-PROTECTED</noscript>

Click here for additional "FreePages-Help"-related code from Moore Crossing

Updated: , by for Moore Crossing