Change Text into Links

Tech-Archive recommends: Fix windows errors by optimizing your registry



I have a page that loads some text into a div
What I'd link to do is (re)create each word into a link.

so loop thru each word in the div with innerHtml and wrapping it with
anchor tag



<script language="javascript" type="text/javascript">
function linkWord(obj){
{
sObj.link="http://groups.google.com/groups/search?q=";;
for(i in obj){
var x = document.body.innerHTML;
var linkStart = '<a href="'+ x +'">';
var linkEnd = '&btnG=Search&sitesearch=groups.google.com</a>';
x = linkStart + x + linkEnd);
document.body.innerHTML = x;
}

</script>


.



Relevant Pages

  • Re: progress indicator long running proc NO Button click
    ... That I cannot do with Ajax ... panel but when page loads first time it takes 30 sec for the procedure the ... I need to show iframe with just a graphic inside the ... with click of second button set parent div with iframe in it display to none ...
    (microsoft.public.dotnet.framework.aspnet)
  • IE and DIV; I am slowly being driven insane.
    ... I'm trying to make a site-specific javascript prompt box. ... The box is a DIV, and I'm loading a DIV inline in the HTML, and then ... When the page loads, ...
    (comp.infosystems.www.authoring.html)
  • Re: Correct Way to Reference Children of a DIV?
    ... > What is the correct way to find all the form elements in a particular ... I'd like to be able to loop through them and disable them. ... var d = document.getElementById; ...
    (comp.lang.javascript)
  • Re: Image Displaying in Mac Safari Only When Cached
    ... I have an issue where a div with a background image (assigned in CSS) ... does not show upon first visit to the page, but loads every time after ...
    (comp.sys.mac.apps)
  • Image Displaying in Mac Safari Only When Cached
    ... I have an issue where a div with a background image (assigned in CSS) ... does not show upon first visit to the page, but loads every time after ...
    (comp.sys.mac.apps)