Hi, I'm trying to get the replace() method to work for me - it is working, but not exactly how I want it to.
I want the replace method to run on mouseover, as a substitute for Firefox's content feature, so it will work on different browsers.
I have it working, but at the moment when I mouseover it's going to a new page, instead of just replacing the text that's already there, here's my code:
Hope you can help a beginner out,Code:<script type="text/javascript"> function changeText(){ var str="continue reading"; document.write(str.replace(/continue reading/, "continue reading...")); } </script> <a href="guides-maintenance-f3.html" onmouseover="changeText();">continue reading</a>
Thanks,
Jack



Reply With Quote


Bookmarks