youngScripter
02-12-2003, 04:42 AM
I saw one of your posts that gave a link to your kooky scramble link script, and I looked at your script, and I was wondering why didn't you do it the shorter way? Here's my version of the scrambler:
<script language="JavaScript">
<!--
function scramble(x,w) {
document.getElementById(x).innerText = w;
}
// -->
</script>
then just use:
<a href="#" id="1" onMouseOver="scramble('1','word');" onMouseOut="scramble('1','dorw');">dorw</a>
I'm just wondering why you used the longer version of the script.
-youngScripter
<script language="JavaScript">
<!--
function scramble(x,w) {
document.getElementById(x).innerText = w;
}
// -->
</script>
then just use:
<a href="#" id="1" onMouseOver="scramble('1','word');" onMouseOut="scramble('1','dorw');">dorw</a>
I'm just wondering why you used the longer version of the script.
-youngScripter