<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Dynamic change of link text using java script</title>
	<atom:link href="http://blog.manchumahara.com/2008/01/06/dynamic-change-of-link-text-using-java-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.manchumahara.com/2008/01/06/dynamic-change-of-link-text-using-java-script/</link>
	<description>&#34;Manchumahara&#34; ...... The virtual crazy emotional vagabond</description>
	<lastBuildDate>Fri, 12 Mar 2010 20:16:01 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: admin</title>
		<link>http://blog.manchumahara.com/2008/01/06/dynamic-change-of-link-text-using-java-script/comment-page-1/#comment-408</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 16 Oct 2008 18:54:42 +0000</pubDate>
		<guid isPermaLink="false">http://manchu.wordpress.com/2008/01/06/dynamic-change-of-link-text-using-java-script/#comment-408</guid>
		<description>@Frank

I will give u feedback soon.</description>
		<content:encoded><![CDATA[<p>@Frank</p>
<p>I will give u feedback soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://blog.manchumahara.com/2008/01/06/dynamic-change-of-link-text-using-java-script/comment-page-1/#comment-407</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Thu, 16 Oct 2008 17:03:19 +0000</pubDate>
		<guid isPermaLink="false">http://manchu.wordpress.com/2008/01/06/dynamic-change-of-link-text-using-java-script/#comment-407</guid>
		<description>I have gotten some ideas and working on getting there but apparently it does not work on all browsers and is just not working for me. 
This is what I have so far:
var list={&quot;speed&quot;:&quot;www.ewagz.com&quot;,&quot;limit&quot;:&quot;www.ewagz.com&quot;};
for(var word in list) 
{
   var url=list[word];

}

var func=new Function(&quot;match&quot;,&quot;var link=document.createElement(\&quot;A\&quot;); link.textContent=match; link.setAttribute(\&quot;href\&quot;,\&quot;&quot;+url+&quot;\&quot;); return link;}&quot;);

function replaceTextContent(regexp,handler) {
	var snapshots=document.evaluate(&quot;//body//text()&quot;,document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);
	for(var num1=0;num1&lt;snapshots.snapshotLength;num1++) {
		regexp.lastIndex=0;
		var node1=snapshots.snapshotItem(num1);
		if (isALink(node1)) continue;
		var match1=regexp.exec(node1.textContent);
		if (match1) {
		
		
		
			var node2=node1.parentNode;
			var node3=node1.nextSibling;
			node2.removeChild(node1);
			while (match1) {
			 	if(isALink(node2)) {

					node2.insertBefore(document.createTextNode(RegExp.leftContext),node3);
					try{node2.insertBefore(handler(match1),node3);}
					catch(ex){node2.insertBefore(document.createTextNode(match1),node3);}
					regexp.lastIndex=0;
					match1=regexp.exec(RegExp.rightContext);
				}
			}
			node2.insertBefore(document.createTextNode(RegExp.rightContext),node3);
		}
	}
}

Do you think you can help me, either by modifying this to work or scratching and starting fresh. Thanks</description>
		<content:encoded><![CDATA[<p>I have gotten some ideas and working on getting there but apparently it does not work on all browsers and is just not working for me.<br />
This is what I have so far:<br />
var list={&#8220;speed&#8221;:&#8221;www.ewagz.com&#8221;,&#8221;limit&#8221;:&#8221;www.ewagz.com&#8221;};<br />
for(var word in list)<br />
{<br />
   var url=list[word];</p>
<p>}</p>
<p>var func=new Function(&#8220;match&#8221;,&#8221;var link=document.createElement(\&#8221;A\&#8221;); link.textContent=match; link.setAttribute(\&#8221;href\&#8221;,\&#8221;"+url+&#8221;\&#8221;); return link;}&#8221;);</p>
<p>function replaceTextContent(regexp,handler) {<br />
	var snapshots=document.evaluate(&#8220;//body//text()&#8221;,document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);<br />
	for(var num1=0;num1&lt;snapshots.snapshotLength;num1++) {<br />
		regexp.lastIndex=0;<br />
		var node1=snapshots.snapshotItem(num1);<br />
		if (isALink(node1)) continue;<br />
		var match1=regexp.exec(node1.textContent);<br />
		if (match1) {</p>
<p>			var node2=node1.parentNode;<br />
			var node3=node1.nextSibling;<br />
			node2.removeChild(node1);<br />
			while (match1) {<br />
			 	if(isALink(node2)) {</p>
<p>					node2.insertBefore(document.createTextNode(RegExp.leftContext),node3);<br />
					try{node2.insertBefore(handler(match1),node3);}<br />
					catch(ex){node2.insertBefore(document.createTextNode(match1),node3);}<br />
					regexp.lastIndex=0;<br />
					match1=regexp.exec(RegExp.rightContext);<br />
				}<br />
			}<br />
			node2.insertBefore(document.createTextNode(RegExp.rightContext),node3);<br />
		}<br />
	}<br />
}</p>
<p>Do you think you can help me, either by modifying this to work or scratching and starting fresh. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://blog.manchumahara.com/2008/01/06/dynamic-change-of-link-text-using-java-script/comment-page-1/#comment-405</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 15 Oct 2008 19:36:52 +0000</pubDate>
		<guid isPermaLink="false">http://manchu.wordpress.com/2008/01/06/dynamic-change-of-link-text-using-java-script/#comment-405</guid>
		<description>@frank

Yes it can be done easily and not too hard. The idea may be link this. After the whole page is loaded I mean the dom, 
1. Get the whole html.
2. Search with regex for specific word (here content in your word)
3.Replace the matched text with specific word.

The task is simple but need some time to do :D</description>
		<content:encoded><![CDATA[<p>@frank</p>
<p>Yes it can be done easily and not too hard. The idea may be link this. After the whole page is loaded I mean the dom,<br />
1. Get the whole html.<br />
2. Search with regex for specific word (here content in your word)<br />
3.Replace the matched text with specific word.</p>
<p>The task is simple but need some time to do <img src='http://blog.manchumahara.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://blog.manchumahara.com/2008/01/06/dynamic-change-of-link-text-using-java-script/comment-page-1/#comment-404</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Wed, 15 Oct 2008 19:24:37 +0000</pubDate>
		<guid isPermaLink="false">http://manchu.wordpress.com/2008/01/06/dynamic-change-of-link-text-using-java-script/#comment-404</guid>
		<description>Hi, 
Just a quick question. I found you page by searching &quot;change text to link&quot;. I am looking for a .js file that I can use on my site http://ewagz.com. What I am trying to do is add a file (.js) that will execute after the page loads, searching the content and changing text to a link (other pages within the site). The text and hyperlink value would be set in the .js file. 
Do you think you can help, or have any suggestions?
Thanks,
frank at ewagz.com</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Just a quick question. I found you page by searching &#8220;change text to link&#8221;. I am looking for a .js file that I can use on my site <a target="_blank" rel="nofollow external" href="http://ewagz.com" rel="nofollow">http://ewagz.com</a>. What I am trying to do is add a file (.js) that will execute after the page loads, searching the content and changing text to a link (other pages within the site). The text and hyperlink value would be set in the .js file.<br />
Do you think you can help, or have any suggestions?<br />
Thanks,<br />
frank at ewagz.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dynamic change of link text using java script &#171; Let&#8217;s start again&#8230;</title>
		<link>http://blog.manchumahara.com/2008/01/06/dynamic-change-of-link-text-using-java-script/comment-page-1/#comment-373</link>
		<dc:creator>Dynamic change of link text using java script &#171; Let&#8217;s start again&#8230;</dc:creator>
		<pubDate>Sat, 06 Sep 2008 04:32:42 +0000</pubDate>
		<guid isPermaLink="false">http://manchu.wordpress.com/2008/01/06/dynamic-change-of-link-text-using-java-script/#comment-373</guid>
		<description>[...] &#124; Tags: anchor text change, change link text, Java script, manchumahara &#124;  This post is moved here. Possibly related posts: (automatically generated)Sanddancer&#8217;s weekend open [...]</description>
		<content:encoded><![CDATA[<p>[...] | Tags: anchor text change, change link text, Java script, manchumahara |  This post is moved here. Possibly related posts: (automatically generated)Sanddancer&rsquo;s weekend open [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sbTkd</title>
		<link>http://blog.manchumahara.com/2008/01/06/dynamic-change-of-link-text-using-java-script/comment-page-1/#comment-259</link>
		<dc:creator>sbTkd</dc:creator>
		<pubDate>Mon, 23 Jun 2008 02:49:13 +0000</pubDate>
		<guid isPermaLink="false">http://manchu.wordpress.com/2008/01/06/dynamic-change-of-link-text-using-java-script/#comment-259</guid>
		<description>You Really did it. ,</description>
		<content:encoded><![CDATA[<p>You Really did it. ,</p>
]]></content:encoded>
	</item>
</channel>
</rss>
