This modified function from the floatie script (used with the rest of that script and its style):
Code:
function showfloatie(thetext, optbgColor, optWidth, optHeight){
var dsocx=(window.pageXOffset)? pageXOffset: ietruebody().scrollLeft;
var dsocy=(window.pageYOffset)? pageYOffset : ietruebody().scrollTop;
var floatobj=document.getElementById("dhtmlfloatie")
floatobj.style.left="-900px"
floatobj.style.display="block"
floatobj.style.backgroundColor=paramexists(optbgColor)? optbgColor : floatiebgcolor
floatobj.style.width=paramexists(optWidth)? optWidth+"px" : floatiewidth
floatobj.style.height=paramexists(optHeight)? optHeight+"px" : floatieheight!=""? floatieheight : ""
floatobj.innerHTML=thetext
var floatWidth=floatobj.offsetWidth>0? floatobj.offsetWidth : floatobj.style.width
var floatHeight=floatobj.offsetHeight>0? floatobj.offsetHeight : floatobj.style.width
var winWidth=document.all&&!window.opera? ietruebody().clientWidth : window.innerWidth-20
var winHeight=document.all&&!window.opera? ietruebody().clientHeight : window.innerHeight
floatobj.style.left=dsocx+winWidth/2-(floatWidth-5)/2+"px"
floatobj.style.top=dsocy+winHeight/2-(floatHeight+5)/2+"px"
slowhigh(floatobj)
}
Will work. The script's style should be edited to suit (for appearance) and the z-index value change to 300.
With all that, this type of syntax may be used in the menu code:
Code:
submenu0.addItem("Blythes Scott Co. Museum","javascript:showfloatie(floattext[0], '#D9FFD9', 250, 100)");
Note! The event field has been eliminated.
Bookmarks