PDA

View Full Version : Dreamweaver page script problem



dmitry_makarov
11-15-2007, 04:31 PM
Hello,

I'm working on a Dreamweaver website. Need to protect my e-mail adresses from spam.

I've found several scripts:

<A onmouseover="email = new Array('i','n','f','o','@','h','a','n','d','e','l', 'g','a','t','e','.','c','o','m');this.href='mailto :';for(i=0;i<email.length;i++){this.href+=email[i]}" href="you@relays.osirusoft.com"><SCRIPT>text = new Array('i','n','f','o','@','h','a','n','d','e','l', 'g','a','t','e','.','c','o','m');for(i=0;i<text.length;i++) {document.write(text[i])}</SCRIPT></A>

or

<script language="javascript"> function guard() {
var p1, p2, p3, p4, p5, p6;
p1 = '<a href="mai'
p2 = 'info'
p3 = '">'
p1 += 'lto:'
p2 += '@'
p5 = '</a>'
p6 = 'info@handelgate.com'
p2 += 'handelgate.com'
p4 = p6
document.write(p1+p2+p3+p4+p5)
}
guard();
</script>


But when I paste them between the body tags it never appears.

Should I move part of it to the head tags? How do I do that (if that is the problem)?

Ive been trying to solve this problem for quite a long, now i think its because im using dreamweaver...

Thank you

Karen Mac
11-15-2007, 05:19 PM
The place where u got the scripts doesnt explain this to you? I believe it goes where your email address appears, just before and after it, but id have to see where u got the script and how they applied it. If this is from dynamicdrive.com they are usually pretty explicit about how to do this, what parts go where, what has to be uploaded as a seperate document etc etc.

Go back where u got the script and find the instructions.

Karen