...

View Full Version : I'm Trying To Hide E-Mail Using A Button



JakeSpace
09-09-2008, 06:03 AM
I found a javascript somewhere that wooks well for hiding it, but I'm not having much luck coming up with a functional button. Any help would be appreciated!

Javascript
<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
<!--
var addr1 = "mailto:"
var addr2 = "so_and_so"
var addr3 = "@"
var addr4 = "where_ever.com"
document.write( ' <A HREF=" ' + addr1 + addr2 + addr3 + addr4 + ' "> ' )
document.write ( ' Email Me</A> ' )
//-->
</SCRIPT>

Current Button
<INPUT type="button" name="Button" value="E-Mail" onMouseOver="this.style.color='#a04020'" onMouseOut="this.style.color='#ffffff'" style="width:98px; color:#ffffff; font-family:Times New Roman; font-size:15px; font-weight:bold;background-color:#000000;border-width:0px;cursor: url(cursor/JDBottle01.cur)" onClick="parent.frame2.location=('mailto:so_and_so@where_ever.com?subject=Hi There!')" title="Contact Me">

Philip M
09-09-2008, 08:09 AM
<form>
<input type = "button" value = "Click Here to Write to Me" onclick = "go()">
</form>

<script type = "text/javascript">
function go() {
var addr1 = "where_ever.com";
var addr2 = "&#64"; // more obfuscation! @ sign concealed - changed to &#64
var addr3 = "so_and_so";
var fullAddr = addr3 + addr2 + addr1;
parent.location= 'mailto:' + fullAddr + '?subject=Hello there!'
}
</script>You can tart up the appearance of the button to suit.


The whole aim of practical politics is to keep the populace alarmed (and hence clamorous to be led to safety)
by menacing it with an endless series of hobgoblins, all of them imaginary.
H.L. Mencken 1880-1956, American Editor, Author, Critic, Humorist



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum