javascript - Mouse over on iFrame -
The code is supposed to display the summary taken from an array when the user draft is on an inline frame with me all the time , But if the code was not correct then I would love to know why.
function setupframe () {var allAreas = document.getElementsByTagName ("area"); For (i = 0; i & lt; allAreas.length; i ++) {All AREES [i] .index = [i]; AllAreas [i] .onmouseover = writeFrame (); AllAreas [i] .onmouseout = clearFrame (); }} Function writingframe () {var field index = this.index; Var framewine = Documents. Gate Element BIID ("Parts"); Var frame doc = framewain content window.document; FrameDoc.getElementById ("docTitle"). InnerHTML = Title [Area Index]. value; FrameDoc.getElementById ("docSummary"). InnerHTML = Summary [Area Index] .value; } Clear the functionframe () {var fieldIndex = this.index; Var framewine = Documents. Gate Element BIID ("Parts"); Var frame doc = framewain content window.document; FrameDoc.getElementById ("docTitle"). InnerHTML = ""; FrameDoc.getElementById ("docSummary"). InnerHTML = ""; }
Comments
Post a Comment