View Single Post
Old 12-06-2003, 09:17 AM   #3
rafarspd
Orange Mole
 
rafarspd's Avatar
 
Join Date: Nov 2003
Location: High Wycombe, Bucks. UK
Posts: 35
Yes there was an extra <!--, caused by commenting out a portion of text that included some java script.
I have now removed that script and it will be stored in a text file untill I wish to use it again.
------------------------

Answer to the missing search results?

I have implemented a method of stopping email address spiders from extracting email addresses from a page. It uses java script.

Example:-

<script language="javascript">
<!-- // Hide
var showtext = "text-to-show"; var mp1 = "email-part1"; var mp2 = "email-part2.org"; document.write("<a href=" + "mail" + "to:" + mp1 + "&#64" + mp2 + ">" + showtext + "</a>") //-->
</script>

I beleive that this javascript is what is causing PhpDig to fail in indexing portions of the text on the page.

I have succeeded in getting the required indexing by implementing the following:-

<!-- phpdigExclude -->
<script language="javascript">
<!-- // Hide
var showtext = "text-to-show"; var mp1 = "email-part1"; var mp2 = "email-part2.org"; document.write("<a href=" + "mail" + "to:" + mp1 + "&#64" + mp2 + ">" + showtext + "</a>") //-->
</script>
<!-- phpdigInclude -->
<font color="#FFFFFF">text-to-show</font>

The last line is infact dummy text for PhpDig to find which replaces the text inside the java script, I have used a colour of white which blends in with my background.

Not the best way but acceptable as a work aroud.

Any other ideas!
__________________
Regards
Bob Finch
rafarspd is offline   Reply With Quote