/********************************************************** * Popup Window Definition Part * * * * To add a popup window, add a string definition below. * * To include the item in the printing friendly page, * * modify the longStr by adding the item to it. * * Don't change anything else. * **********************************************************/ var htmlOpener = "Tooltip and Popup Window Demo"+ "

" var htmlCloser = "" demo1 = "

Title Here.

It is fun. Don't forget to put a line break here.

" demo2 = "No title in this window. Just plain text.

" demo3 = "How much is a picture worth?

"+ "

" /****END OF STRING DEFINITION*****/ var popupWin var wholeWin function popup(term) // write corresponding content to the popup window { popupWin = window.open("", "puWin", "width=480,height=200,scrollbars,dependent,resizable"); popupWin.document.open("text/html", "replace"); popupWin.document.write(htmlOpener); popupWin.document.write(term); popupWin.document.write(htmlCloser); popupWin.document.close(); // close layout stream popupWin.focus(); // bring the popup window to the front } function closeDep() { if (popupWin && popupWin.open && !popupWin.closed) popupWin.close(); if (wholeWin && wholeWin.open && !wholeWin.closed) wholeWin.close(); } /***********************END OF FUNCTION POPUP******************************/ function printwhole() { longStr ="

Annotated Output for Proc Univariate

"; longStr += demo1 + demo2 + demo3; wholeWin = window.open("","wWin", "width=800,height=500,dependent=yes,scrollbars=yes,resizable=yes,toolbar=yes,menubar=yes"); wholeWin.document.open("text/html","replace"); wholeWin.document.write(htmlOpener); wholeWin.document.write(longStr); wholeWin.document.write(htmlCloser); wholeWin.document.close(); wholeWin.focus();} /*******End of popup window stuff*********/ /***************************Tooltip Part Begins***************************/ var style = ((NS4 && document.test) || IE4) ? 1 : 0; var timerID = null; var padding = 3; // < 4 recommended var bgcolor = "beige"; var borWid = 1; // for no border, assign null var borCol = "#0000cc"; var borSty = "solid"; var str = ""; if (style) { document.write(str); if (NS4) window.onload = init; } /************************************************** * Making your tooltip text here * * This is the only place that need to be modified.* * The first argument is the name of the tooltip. * * The second argument is the width and last one * * is the content of the tooltip. * **************************************************/ makeEl("map", 200, "This will do an interval regression using your data against the chromosome you just selected "); makeEl("chrs", 200, "This will allow you to choose the chromosome you want to do the interval mapping"); makeEl("normal", 200, "This will generate a graph to assess if your data is normally distributed"); makeEl("link", 200, "This will do a Marker Regression using your data."); makeEl("save", 200, "This will save the data you just input into a text file"); /*************************End of making tooltip text*************************/ function init() { setTimeout("window.onresize = redo", 1000); } function redo() { window.location.reload(); } function makeEl(id, width, code) { if (!style) return; var str = ""; str += "
" + code + "
"; document.write(str); } function displayEl(left, top) { if (NS4) document.releaseEvents(Event.MOUSEMOVE); document.onmousemove = null; var whichEl = (NS4) ? document[active] : document.all[active].style; whichEl.left = left; whichEl.top = top; whichEl.visibility = (NS4) ? "show" : "visible"; } function clearEl() { if (!style) return; var whichEl = (NS4) ? document[active] : document.all[active].style; whichEl.visibility = (NS4) ? "hide" : "hidden"; active = null; if (timerID) clearTimeout(timerID); if (NS4) document.releaseEvents(Event.MOUSEMOVE); document.onmousemove = null; } function activateEl(id, e) { if (!style) return; active = id; if (NS4) document.captureEvents(Event.MOUSEMOVE); document.onmousemove = checkEl; checkEl(e); } function checkEl(e) { if (timerID) clearTimeout(timerID); var left = (NS4) ? e.pageX : event.clientX + document.body.scrollLeft; var top = (NS4) ? e.pageY + 20 : event.clientY + document.body.scrollTop + 20; timerID = setTimeout("displayEl(" + left + ", " + top + ")", 300); }