Click to See Complete Forum and Search --> : calling an email address


SNAKE
04-21-2003, 11:02 PM
I have a web site that has pages which are generated by CGI. Once a viewer clicks on a particular category, the CGI generated page for that category is displayed. I want to show banners which are specific to that category on the particular page. We have a JS which filters the url of the query string that selects the correct banner for the CGI page for each category. We have the JS working to filter correctly, and it displays the banners correctly. We are even able to attach a href to the banners as a hyperlink to other sites. What we cannot get to work is a "mailto" attached in the script for the banner.
For instance: a href=mailto:tom@tomsplace.net will open the email program but will address the email to "tom.net" instead of "tom@tomsplace.net" Here is the section of script that is giving us problems:

if(docloc==urls[0]){
document.write("<a href=mailto:tom@tomsplace.net><img src =http://www.somewhere.com/Bannerforsomebody.jpg></a>")
}

AdamBrill
04-21-2003, 11:10 PM
Hmm... Everything looks right. I even tried it to make sure and it worked fine for me, so I don't know what to tell you... Do you have a link to your site?

DrDaMour
04-21-2003, 11:51 PM
"<a href='mailto:tom@tomsplace.net'><img..></a>"

maybe the @ is throwing it off, and it needs to be a string?