I am looking at trying to place a hover() method onto each array element. Then when the cursor rolls over the character, it is copied into another div. I am kinda lost. Do you have suggestions?
<html>
<head>
<script type="text/javascript" scr="http://code.jquery.com/jquery.min.js">
</head>
<body>
<script type="text/javascript">
var str="one two three four five";
var a1 = new Array();
a1=str.split("");
//document.write(a1.join(" <br /> "));
//document.write(str.split("") + "<br />");
for (var i=0;i<a1.length;i++) {
// for each array element attach hover method, when rollover then feed to over div magnifyView
$("a1[i]").hover(function () {
// put into magnifyView upon hover on array element
});
}
</script>
<div id='stringToView'><script type="text/javascript">document.getElementById('stringToView').innerHTML = str;</script> </div>
<br /><br />
<div id='magnifyView' style="font-size:36px;"> what's here</div>
</body>
</html>