日期:2014-05-17 浏览次数:20565 次
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title></title> <style type="text/css"> * { padding: 0; margin: 0; } li { list-style: none; } body { background: #eee; } .float_layer { width: 300px; border: 1px solid #aaaaaa; display: none; background: #fff; } .float_layer h2 { height: 25px; line-height: 25px; padding-left: 10px; font-size: 14px; color: #333; background: url(title_bg.gif) repeat-x; border-bottom: 1px solid #aaaaaa; position: relative; } .float_layer .min { width: 21px; height: 20px; background: url(min.gif) no-repeat 0 bottom; position: absolute; top: 2px; right: 25px; } .float_layer .min:hover { background: url(min.gif) no-repeat 0 0; } .float_layer .max { width: 21px; height: 20px; background: url(max.gif) no-repeat 0 bottom; position: absolute; top: 2px; right: 25px; } .float_layer .max:hover { background: url(max.gif) no-repeat 0 0; } .float_layer .close { width: 21px; height: 20px; background: url(close.gif) no-repeat 0 bottom; position: absolute; top: 2px; right: 3px; } .float_layer .close:hover { background: url(close.gif) no-repeat 0 0; } .float_layer .content { height: 120px; overflow: hidden; font-size: 14px; line-height: 18px; color: #666; text-indent: 28px; } .float_layer .wrap { padding: 10px; } .style1 { color: #0000FF; } </style> <script type="text/javascript"> function miaovAddEvent(oEle, sEventName, fnHandler) { if (oEle.attachEvent) { oEle.attachEvent('on' + sEventName, fnHandler); } else { oEle.addEventListener(sEventName, fnHandler, false); } } function load() { var oDiv = document.getElementById('miaov_float_layer'); var oBtnMin = document.getElementById('btn_min'); var oBtnClose = document.getElementById('btn_close'); var oDivContent = oDiv.getElementsByTagName('div')[0]; oDiv.style.display = 'block'; var iMaxHeight = 0; var isIE6 = window.navigator.userAgent.match(/MSIE 6/ig) && !window.navigator.userAgent.match(/