Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html><head>
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
- <title>Change Text on Mouseover Script</title>
- <meta name="description" content="">
- <meta name="keywords" content="">
- <meta name="author" content="">
- </head><body>
- <h3>Example One:</h3>
- <p><span id="myText">some text</span></p>
- <p><a href="someurl" onmouseover="document.getElementById('myText').firstChild.data = 'some other text'; return true;" onmouseout="document.getElementById('myText').firstChild.data = 'some text'; return true;">link text</a></p>
- <h3>Example Two:</h3>
- <p><a href="#" onclick="this.innerHTML='<strong>You changed me</strong>';"><em>Change from emphasized to strong.</em></a></p>
- </body></html>
Advertisement
Add Comment
Please, Sign In to add comment