<%@ 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 runat="server">
    <title>无标题页</title>
    <link rel="stylesheet" href="css/themes/flora/flora.all.css" type="text/css" media="screen" title="Flora (Default)" />
    <link rel="stylesheet" href="css/facebox.css" type="text/css" media="screen"  />
</head>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.ui.js"></script>
<script type="text/javascript" src="js/plugins/chili/jquery.chili.js"></script>
<script type="text/javascript" src="js/plugins/chili/recipes.js"></script>
<script type="text/javascript" src="js/plugins/facebox.js"></script>

<script type="text/javascript"> 
     
    ChiliBook.lineNumbers = true;
//    ChiliBook.automatic = false;
//ChiliBook.lineNumbers = true;
//$( function() {
//	$( '#highlight' )
//	.one( 'click', function() {
//		var time1 = new Date();
//		var $chili = $( '#jq' ).chili();
//		var time2 = new Date();
//		var delta = time2 - time1;
//		var spans = $chili.find( 'span' ).length;
//		var rate = Math.round( spans / delta * 100 ) / 100;
//		$( '#highlight' ).html( 
//			'highlight done in ' + delta + ' milliseconds'
//			+ ' with ' + spans + ' spans'
//			+ ' at a rate of ' + rate * 1000 + ' span/sec'
//		);
//	} )
//	.show()
//	;
//} );

jQuery(document).ready(function() {
     jQuery('a[rel*=facebox]').facebox();
   });
   
  
</script>



<body >
    <form id="form1" runat="server">
   
    <div>
    <a href="#jq" rel="facebox">Terms</a>
    </div>

    </form>
    
    <pre style="background-color:#EBEBEB; width:700px; margin-left:150px; padding-left:10px;"><code id="jq" class="csharp">
Test test = new Test();
test.Entity.Age = 20;
test.Entity.Name = "Winson";
test.AppendEntity();
test.CreateEntity();
test.Entity.Datetime = System.DateTime.Now;
test.Entity.Context = "asldkfjasld;f";
test.Entity.Pic = b;
test.AppendEntity();
if (test.AddBatch())
   Response.Write("success");
else
   Response.Write("fail");
NameValueCollection paramValue = new NameValueCollection();
public void Abc();
 </code></pre>

  <pre style="margin-left:40px;margin-top:-5px;"><code class="html">
&lt;script type=&quot;text/javascript&quot; src=&quot;SOMEWHERE_ELSE/jquery.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javaScript&quot; src=&quot;SOMEWHERE/jquery.chili-2.2.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
alert('this code is normal');
alert('this code will show twice');
&lt;/script&gt; 


</code></pre>


<pre><code  class="js">
// matches a starting tag of an element (with attrs)
// like &quot;&lt;div ... &gt;&quot; or &quot;&lt;img ... /&gt;&quot;
, tag_start: { 
	  _match: /(&lt;\w+)((?:\w|[?%]&gt;|\W)*?)(\/&gt;|&gt;)/ 
	, _replace: function( all, open, content, close ) { 
		  return &quot;&lt;span class='tag_start'&gt;&quot; + this.x( open ) + &quot;&lt;/span&gt;&quot; 
			  + this.x( content, '/tag_attrs' ) 
			  + &quot;&lt;span class='tag_start'&gt;&quot; + this.x( close ) + &quot;&lt;/span&gt;&quot;;
	}
	, _style: &quot;color: navy; font-weight: bold;&quot;
}
 </code></pre>
 
</body>
</html>
<script>


ShowDialog = function(_title,_msg){
//对话框参数设置
var _opacity = 0.5;
var _okButton = " 确定 ";
var _width = "300";
var _height = "200";
var _minHeight = "180";
var _minWidth = "280";
var _css = "flora";
var _modal = true;
        $('body').append('<div id="MsgBox"></div>');		
        $('#MsgBox').html('<div class="icon"></div>'+_msg).css('display','block').dialog({
            title:_title, 
            modal: _modal,
            overlay: { opacity: _opacity, background: 'black' },
            buttons: { ' 确 定 ': function() { $(this).dialog('close'); }},
            width:_width,
            height:_height,
            minHeight:_minHeight,
            minWidth:_minWidth,
            dialogClass:_css
		});
	}
	
 jQuery.facebox('#jq');
</script>