//Specify iframe to display. Change src and other attributes except "position" and "left/top":
var subIframetag='<iframe id="subdiv" src="Jscript/qq.htm" width="100px" height="542px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" style="position: absolute; left: -400px; top: -250px;"></iframe>'

//specify x coordinates of iframe ("right" for right corner, or a pixel number (ie: "20px")):
var subdivleft="right"

//specify y coordinates of iframe ("bottom" for bottom of page, or a pixel number (ie: "20px")):
var subdivtop="60"

var ie=(document.all || window.opera) && document.getElementById
var iebody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body

if (ie)
document.write(subIframetag)

function subpositionit(){
subdivobj=document.getElementById("subdiv")
var subwindow_width=ie && !window.opera? iebody.clientWidth : window.innerWidth-2
subwindow_height=ie && !window.opera? iebody.clientHeight : window.innerHeight
var dsocleft=ie? iebody.scrollLeft : pageXOffset
var subdivwidth=subdivobj.width
subdivheight=subdivobj.height
subdivobj.style.left=(subdivleft=="right")? subwindow_width-subdivwidth-2 : subdivleft
setInterval("subrepositionit()", 100)
}

function subrepositionit(){
if (ie){
dsoctop=ie? iebody.scrollTop : pageYOffset
subdivobj.style.top=(subdivtop=="bottom")? subwindow_height-subdivheight-14+dsoctop : parseInt(subdivtop)+dsoctop
}
}

if (window.attachEvent)
window.attachEvent("onload", subpositionit)


