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
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