PDA

View Full Version : antisemail javascript


ssocr
12-30-2001, 08:26 PM
What a great great site. I've downloaded a few javascripts that I have been searching for for a long time. I have a question about one but am not sure where to post it.

I would like to use the anti spam e-mail script called antisemail but would like to insert an animated gif of a rotating @ that I have. Can you tell me how to modify the script to insert an animated gif in lieu of the "@".

Again, what a great site. Please keep up the good work.

Bernie

Dave Swift
12-30-2001, 08:29 PM
No doubt the site you're talking about is A1JavaScripts (http://www.a1javascripts.com) the best place on the web for javascripts, and so this help question is being moved to the Client Side Scripting forum.

Dave Swift
12-30-2001, 08:37 PM
And now to answer your question...

Here is the script, with the changes you want added. The changes are in bold:

<script language="Javascript">
<!--
//this simple script by a1javascripts.com
//please leave credit and instructions intact

//simply enter your emailname and emailserver below
//and copy and paste to entire script where you want it to show.
emailname = "webmaster"
emailserver = "javascripts.com"

//change the font face, color and size below
document.write("<font face='Arial,Helvetica' size=-1>");
document.write("<a href='mailto:" + emailname + "@" + emailserver + "'>");
document.write("<font color='ff0000'>");
document.write(emailname + "<img src='image.gif' border='0'>" + emailserver);
document.write("</a>");
document.write("</font>");
//-->

</script>

ssocr
12-31-2001, 10:25 AM
Dave,

Thank you so much. I had tried that but got my single and double quotes reversed and it wouldn't work. I didn't think of trying the reverse...

Once again, many thnaks.

Bernie