hide email script with image involved

R

rsaund

Hi,

I don't really understand javascript well, so if you're kind enough to
reply, please speak slowwwly. I borrowed this script from a website, so
it's not original.

The purpose is to allow an image to be an email link, but include a
hide email script to hide from spammers. The image says "Email Chef"
and involves a mouseover as well.

Here's the trouble: The script works beautifully in IE 6.0, but in
Firefox and Netscape 8, an extra, blank (netscape or firefox browser)
window is opened up, in addition to launching the new email window.
That extra blank window makes it confusing for visitors. It's full
size, so it looks like your browser just crashed even tho it didn't. Is
there a better way to do this (I'm SURE there is!) Or can I modify this
one to fix it? Here's the stuff related to the hideemail in the header:

<script language="JavaScript" type="text/javascript">
<!--
//hide email from robot spys....
function hideEmail(path1,path2,path3){

path = path1
path += path2
path += path3
window.open(path);
}
//-->
</script>

And here's the stuff in my body:

<a onmouseover=

"MM_swapImage('Image3','','fugaise_web/email_on.jpg',1)"
onmouseout=
"MM_swapImgRestore()" href=

"javascript:hideEmail('mailto:red@','newsite','.com')">
<img
id="Image3" height="24"
src="fugaise_web/email.jpg"
width="86" border="0" name=
"Image3"></a>

Thanks in advance, and again, please assume I know very little in your
reply!

Robin
DIY webmistress
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,277
Latest member
VytoKetoReview

Latest Threads

Top