<! doctype html public "-// w3c // dtd xhtml 1.0 transitional // en" "http://www.w.w.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"><Html xmlns = "http://www.w3.org/1999/xhtml"> <head> <meta http-equiv = "content-type"content = "text/html; charset = utf-8"/<title> 고정 상자 </title> <script id = "xcore"type/javascript " src = "http://www.haiqiancun.com/xwidget-0.1/xcore.js"> </script> <style>*{margin : 0px; padding : 0px;} body {height : 3000px;} </style> <script> $ (function () {$ (function). ") $ (this) var : ' + fb.outerHeight () + 'px; display : none;' + fb.attr ( "style" + ' "> </div>'); fb.after (cd); fb.css ({ 'z-index': 999}). data ({ 'top': fb.offset ()); $ (Wind var h = $ (document) .height (); if (st> pt || st == pt) {cd.show (); if ((st + self.outerheight ())> h) {self.css ({위치 : '고정', 상단 : (h- (st + self.outerheight ())}); } else {self.css ({위치 : '고정', 상단 : 0 -mt}); }} else {cd.hide (); self.css ({위치 : '상대', 상단 : 0}); }})})}) </script> </span> </head> <body> <div> <div style = "margin-top : 50px; 너비 : 100%; 오버플로 : 숨겨진; 배경 : #fff; font-size : 12px;"> <clust> $ (function () {$ ( "); self.attr ( "id") || '고정 상자 _'+math.round (math.random ()*100000); self.attr ( "#"+id); $ ( '<divstyle ")+'"> </div> '); fb.after (cd); fb.css ({'z-index ': 999}). data ({'top ': fb.offset ().'left ': fb.offset () = fb.data ( '왼쪽'); var st = $ () .scrolltop () -10; self.css (위치 : '고정', 상단 : (h- (st+self.outerheight ())}; </script> </div> </div> </body> </html>