Add javascript to all links in post/page
-
Hello all,
I’m developing a site for a client and what he wants requires all links in the posts to have javascript attached to it automatically.
It goes something like this. Let’s say in the post he creates a link with the name of LINKNAME. Here’s what needs to happen automatically:
<a href="URL" onMouseOver="setReadOut(LINKNAME)">LINKNAME</a>
Where the javascript gets added automatically when he publishes the page and the LINKNAME becomes a variable passed to the javascript.
Any takers?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add javascript to all links in post/page’ is closed to new replies.