<script type="text/javascript">
onmousemove = function adfy() {
adfy_id = '.html'; //replace with your ID
for (var i = 0; i < document.links.length; i++) {
var hrefer = document.links[i].href;
if (hrefer.match(".html") || hrefer.match("javascript:") || hrefer.match("#")) {
document.links[i].href = document.links[i].href;
} else {
document.links[i].href = document.links[i].href + adfy_id;
}
}
}
</script>
<a href="test.html">com .html</a>
<a href="test">sem .html</a>
To use this adfly coding for .html in the links on my site, there are more than 300 so I do not have to do it manually. It worked very well, but it is disrupting other links that do not need it.
I would like to know if it has only one div to work on?