The floating image has a "close" icon on it. You can click it to close the floating image. You can use the following code (custom images are supported ):
<Div id = "hb400" style = "position: absolute">
<Div style = "width: 135; Height: 18px; font-size: 12px; font-weight: bold; text-
Align: Left; cursor: hand; "onclick =" closead (); "> <font color =" ff0000 "> close </font> </div>
<A href = "http://www.400hb.com/lt400.html" target =" _ blank ">
</a>
</Div>
<SCRIPT>
VaR x = 307, y = 307
VaR Xin = true, Yin = true
VaR step = 1
VaR delay = 50
VaR OBJ = Document. getelementbyid ("xixun ")
Function floatad (){
VaR L = T = 0
VaR r = Document. Body. clientWidth-obj.offsetWidth
VaR B = Document. Body. clientHeight-obj.offsetHeight
OBJ. style. Left = x + document. Body. scrollleft
OBJ. style. Top = Y + document. Body. scrolltop
X = x + step * (Xin? 1:-1)
If (x <L) {Xin = true; X = L}
If (x> r) {Xin = false; X = r}
Y = Y + step * (Yin? 1:-1)
If (Y <t) {Yin = true; y = t}
If (Y> B) {Yin = false; y = B}
}
VaR ITL = setinterval ("floatad ()", delay)
OBJ. onmouseover = function () {clearinterval (ITL )}
OBJ. onmouseout = function () {ITL = setinterval ("floatad ()", delay )}
Function closead ()
{
Document. getelementbyid ('hb400'). style. Visibility = 'ddn ';
}
</SCRIPT>