Script not working in FP 2003

M

Mark G.

Am trying to get this script to work. Is supposed to allow me to attach an
image to an email to link with bots being able to pick it up. Got it from
someone on here and thought I had everything right, but guess not! Can
anyone please help? Would be much appreciated. Thanks much.

<p><script type="text/javascript">
<!--
var us,dm,addy;
us = "cadman_meg2";
dm = "comcast.net"
addy = username + chr(64) + dm
document.write("<a href=\"mai" + "lto:" + us + chr(64) + dm + \">")
document.write("<img src=\"email.gif" width=\"40\"
height="\20\" alt=\"\">")
document.write("</a>")
// -->
</script>
<noscript>Email me Here</noscript>
</p>
 
R

Ronx

Change
var us,dm,addy;
to
var us,dm;

and delete
addy = username + chr(64) + dm;
which is not used, and username is not declared anywhere.

Also, it might help to be consistent with the ; terminating each line
(from a reading-the-code point of view)
 
S

Stefan B Rusynko

Nothing to do w/ FP
Check w/ the script supplier

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Am trying to get this script to work. Is supposed to allow me to attach an
| image to an email to link with bots being able to pick it up. Got it from
| someone on here and thought I had everything right, but guess not! Can
| anyone please help? Would be much appreciated. Thanks much.
|
| <p><script type="text/javascript">
| <!--
| var us,dm,addy;
| us = "cadman_meg2";
| dm = "comcast.net"
| addy = username + chr(64) + dm
| document.write("<a href=\"mai" + "lto:" + us + chr(64) + dm + \">")
| document.write("<img src=\"email.gif" width=\"40\"
| height="\20\" alt=\"\">")
| document.write("</a>")
| // -->
| </script>
| <noscript>Email me Here</noscript>
| </p>
|
|
 
Top