javascript novice question

  • Thread starter Thread starter oscar
  • Start date Start date
O

oscar

Hi, firstly may I congradulation the contributers to this group on a
fantastic resource. I am very much the novice webmaster and have
learned heaps from it!

I have found piece a handy tip on how to hide email addresses and wish
to use it. http://www.newtutorials.com/web-design-tips.html

I have entered the code into (FP2003) my webpage but cannot get it
visible.

http://www.jetpro.co.nz/contact.htm

Under "info@*********" the hyperlink exists but I cant get it to show.

TIA.
 
First of all, you didn't change your javascript to actaully send the e-mail
to you.

You need to change this:
<script type="text/javascript">
name ="you"
domain ="domain"
extension ".net"
document.write('<a href="mailto:' + name + '@' + domain + extension +' " '
+'>e-mail link here ');
</script>

to this:
<script type="text/javascript">
name ="info"
domain ="jetpro"
extension =".co.nz"
document.write('<a href="mailto:' + name + '@' + domain + extension +' " '
+'>e-mail link here ');
</script>

Secondly, I think the text you want to display (info@*********) needs to go
after the script.

Hope this helps.
 
It's in the formatting of your links. The reason you can't see the link
"e-mail link here" is because it's white text on a white background. In
Code view find this line:

<body bgcolor="#000000" leftmargin="4" topmargin="0" link="#FFFFFF"
vlink="#FFFFFF" alink="#FFFFFF">

Change all those link colors from white (#FFFFFF) to whatever color you
want. You can find hex values for colors here
(http://www.w3schools.com/html/html_colornames.asp) or you can use color
names within the quotes (like link="navy" vlink="red" alink="blue").
 
Back
Top