<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>前端之路 &#187; 前端技术</title>
	<atom:link href="http://www.simcn.com/category/html_css_javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://www.simcn.com</link>
	<description>网站开发, 前端开发, 高性能前端开发</description>
	<lastBuildDate>Thu, 03 Nov 2011 02:08:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>延时弹出层控制</title>
		<link>http://www.simcn.com/%e5%bb%b6%e6%97%b6%e5%bc%b9%e5%87%ba%e5%b1%82%e6%8e%a7%e5%88%b6</link>
		<comments>http://www.simcn.com/%e5%bb%b6%e6%97%b6%e5%bc%b9%e5%87%ba%e5%b1%82%e6%8e%a7%e5%88%b6#comments</comments>
		<pubDate>Tue, 01 Mar 2011 02:14:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端技术]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[延时控制]]></category>

		<guid isPermaLink="false">http://www.simcn.com/?p=390</guid>
		<description><![CDATA[&#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62; &#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34; xml:lang=&#34;en&#34;&#62; &#60;head&#62; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html;charset=UTF-8&#34; /&#62; &#60;title&#62;延时弹出层控制&#60;/title&#62; &#60;script type=&#34;text/javascript&#34;&#62; var isPopLayer = false; var time = null; //打开弹出层 function poplay(){ if(!isPopLayer){ //延迟1秒显示层 time = setTimeout(function(){ document.getElementById('poplay').style.display = 'block'; clplay(); isPopLayer = true; }, 1000); } } //鼠标移走时执行 function clplay(){ clearTimeout(time); time = null; } //关闭弹出层 [...]]]></description>
			<content:encoded><![CDATA[<pre name="code" class="brush:html">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot;&gt;
&lt;head&gt;
	&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=UTF-8&quot; /&gt;
	&lt;title&gt;延时弹出层控制&lt;/title&gt;
        &lt;script type=&quot;text/javascript&quot;&gt;
            var isPopLayer = false;
	    var time = null;
            //打开弹出层
            function poplay(){
                if(!isPopLayer){
                    //延迟1秒显示层
		    time = setTimeout(function(){
                        document.getElementById('poplay').style.display = 'block';
			clplay();
                        isPopLayer = true;
                    }, 1000);
                }
            }

	    //鼠标移走时执行
	    function clplay(){
		clearTimeout(time);
		time = null;
	    }

            //关闭弹出层
            function poclose(){
                document.getElementById('poplay').style.display = 'none';
                isPopLayer = false;
            }
        &lt;/script&gt;

        &lt;style type=&quot;text/css&quot;&gt;
            #poplay{ padding:1em; position:absolute; border: 3px solid #000; display:none;}
        &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
        &lt;a href=&quot;#&quot; onmouseover=&quot;poplay()&quot; onmouseout=&quot;clplay()&quot;&gt;文字1&lt;/a&gt; 这个都是胡乱写的
        &lt;a href=&quot;#&quot; onmouseover=&quot;poplay()&quot; onmouseout=&quot;clplay()&quot;&gt;文字2&lt;/a&gt; 这个都是胡乱写的
        &lt;a href=&quot;#&quot; onmouseover=&quot;poplay()&quot; onmouseout=&quot;clplay()&quot;&gt;文字3&lt;/a&gt; 这个都是胡乱写的
        &lt;div id=&quot;poplay&quot;&gt;
            &lt;p class=&quot;classname&quot;&gt;弹出层的内容&lt;/p&gt;
            &lt;p class=&quot;classname&quot;&gt;弹出层的内容&lt;/p&gt;
            &lt;p class=&quot;classname&quot;&gt;弹出层的内容&lt;/p&gt;
            &lt;p class=&quot;classname&quot;&gt;弹出层的内容&lt;/p&gt;
            &lt;button onclick=&quot;poclose()&quot;&gt;关闭&lt;/button&gt;
        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.simcn.com/%e5%bb%b6%e6%97%b6%e5%bc%b9%e5%87%ba%e5%b1%82%e6%8e%a7%e5%88%b6/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>关于网站后台缩略图综合解决方法</title>
		<link>http://www.simcn.com/site_admin_thumbnail_php</link>
		<comments>http://www.simcn.com/site_admin_thumbnail_php#comments</comments>
		<pubDate>Mon, 17 Jan 2011 07:00:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端技术]]></category>
		<category><![CDATA[后端技术]]></category>
		<category><![CDATA[开源]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[thumbnail]]></category>
		<category><![CDATA[后台]]></category>
		<category><![CDATA[图片生成]]></category>
		<category><![CDATA[缩略图]]></category>

		<guid isPermaLink="false">http://www.simcn.com/?p=357</guid>
		<description><![CDATA[这两天给一个iphone 的应用程序写支持数据时遇到的关于缩略图的问题! 写出来分享一下. 直接上代码. 我们要达到这样的效果! 功能点 1. 图片上传的格式与大小尺寸是变化的，所以我们需要一个程序来实缩略图(php) 2. 常用的功能封装成jquery插件形式来使用。 html结构代码 编号 标题 来源 日期 缩略图 12 为什么是黄小明' 新浪 2011-01-15 upload/thumbnail/2011/01/15/1295081305.jpg 11 测度2730211069556' 新浪 2011-01-15 upload/thumbnail/2011/01/15/1295095094.jpg 编号 标题 来源 日期 缩略图 jquery插件代码 (function($){ /** * 显示缩略图插件 * 接收缩略图php地址 * @author mark.chen maxtank@gmail.com www.simcn.com * @date 2011-1-17 **/ $.fn.thumb = function(thumb){ $(this).hover(function(){ var url = $(this).text(); [...]]]></description>
			<content:encoded><![CDATA[<p>这两天给一个iphone 的应用程序写支持数据时遇到的关于缩略图的问题!<br />
写出来分享一下. 直接上代码.</p>
<p>我们要达到这样的效果!<br />
<a href="http://www.simcn.com/site_admin_thumbnail_php/need_to_be-achieved" rel="attachment wp-att-363"><img src="http://www.simcn.com/wp-content/uploads/2011/01/Need_to_be-achieved.png" alt="" title="Need_to_be achieved" width="596" height="289" class="alignnone size-full wp-image-363" /></a></p>
<p>功能点<br />
1. 图片上传的格式与大小尺寸是变化的，所以我们需要一个程序来实缩略图(php)<br />
2. 常用的功能封装成jquery插件形式来使用。</p>
<p>html结构代码</p>
<pre name="code" class="brush:html">
<table cellspacing="0" cellpadding="0" border="0" id="EditTable" class="display">
<thead>
<tr>
<th class="sorting">编号</th>
<th class="sorting">标题</th>
<th class="sorting">来源</th>
<th class="sorting">日期</th>
<th class="sorting">缩略图</th>
</tr>
</thead>
<tbody>
<tr type="" id="12" class="odd">
<td>12</td>
<td id="post_title" class="edit">为什么是黄小明'</td>
<td id="post_name" class="edit">新浪</td>
<td id="post_date" class="edit">2011-01-15</td>
<td><a href="upload/thumbnail/2011/01/15/1295081305.jpg" class="pw">upload/thumbnail/2011/01/15/1295081305.jpg<span class="thumb" style="display: none;"><img width="200" src="thumb.php?f=upload/thumbnail/2011/01/15/1295081305.jpg"></span></a></td>
</tr>
<tr>
<td>11</td>
<td id="post_title" class="edit">测度2730211069556'</td>
<td id="post_name" class="edit">新浪</td>
<td id="post_date" class="edit">2011-01-15</td>
<td><a href="upload/thumbnail/2011/01/15/1295095094.jpg" class="pw">upload/thumbnail/2011/01/15/1295095094.jpg<span class="thumb" style="display: none;"><img width="200" src="thumb.php?f=upload/thumbnail/2011/01/15/1295095094.jpg"></span></a></td>
</tr>
</tbody>
<tfoot>
<tr>
<th class="sorting">编号</th>
<th class="sorting">标题</th>
<th class="sorting">来源</th>
<th class="sorting">日期</th>
<th class="sorting">缩略图</th>
</tr>
</tfoot>
</table>
</pre>
<p>jquery插件代码</p>
<pre name="code" class="brush:js">
(function($){
    /**
     * 显示缩略图插件
     * 接收缩略图php地址
     * @author  mark.chen maxtank@gmail.com www.simcn.com
     * @date 2011-1-17
     **/
    $.fn.thumb = function(thumb){
        $(this).hover(function(){
            var url = $(this).text();
            var isAppend = $(this).find('span')[0];
            if(!isAppend){
                $(this).append($('<span class="thumb"><img width="200" src="'+ thumb + '?f=' +url+'" /></span>'));
            }else{
                $(this).find('span').show();
            }
            //console.log("url的值为: %s", url);
        },
        function(){
            $(this).find('span').hide();
        });
    }
})(jQuery);

//使用方法
//$('.pw').thumb('thumb.php');
</pre>
<p>php生成缩略图代码(部分代码来源于互联网，也不知道是谁发表的)</p>
<pre name="code" class="brush:php">
/**
 * 生成缩略图
 * http://www.simcn.com
 * @param $_GET['f'] 图片地址
 * @param $_GET['w'] 图片宽度 默认为200
 * @param $_GET['h'] 图片高度 默认为200
 * @author mark.chen maxtank@gmail.com
 * @version 1.0
 **/

ini_set('memory_limit', '-1');

//传入参数
$width  = isset($_GET['w']) ? intval($_GET['w']) : '200' ;
$height = isset($_GET['h']) ? intval($_GET['h']) : '200' ;
$f		= trim($_GET['f']);

if(empty($f)){
	exit('需要传入f');
}

$info_orig = getimagesize($f);
$width_orig  = $info_orig[0];
$height_orig = $info_orig[1];

header('Content-type: '.$info_orig['mime']);
//header('Content-type: image/jpeg');
//header('Content-type: image/png');

$ratio_orig = $width_orig/$height_orig;
if($width/$height > $ratio_orig) {
   $width_ = $width;
   $width = $height*$ratio_orig;
   $pos_x = intval(($width_ - $width)/2); //位移X轴
   $pos_y = 0;
} else {
   $height_ = $height;
   $height = $width/$ratio_orig;
   $pos_x = 0;
   $pos_y = intval(($height_ - $height)/2); //位移Y轴
}

// 建立画布
$im = imagecreatetruecolor(200, 200);
$color = imagecolorallocate($im, 255, 255, 255);
imagefill($im, 0, 0, $color);		//填充背景为白色
//imagecolortransparent($im,$color);	//将背景透明化

switch($info_orig['mime']){
	case 'image/jpeg':
		$image  = imagecreatefromjpeg($f);
		imagecopyresampled($im, $image, $pos_x, $pos_y, 0, 0, $width, $height, $width_orig, $height_orig);
		imagejpeg($im, null, 100);
		break;
	case 'image/png':
		$image  = imagecreatefrompng($f);
		imagecopyresampled($im, $image, $pos_x, $pos_y, 0, 0, $width, $height, $width_orig, $height_orig);
		imagepng( $im );
		break;
	case 'image/gif':
		$image  = imagecreatefromgif($f);
		imagecopyresampled($im, $image, $pos_x, $pos_y, 0, 0, $width, $height, $width_orig, $height_orig);
		imagegif($im, null, 100);
		break;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.simcn.com/site_admin_thumbnail_php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>直接使用网页进行打印</title>
		<link>http://www.simcn.com/web-print_js-print_css-print</link>
		<comments>http://www.simcn.com/web-print_js-print_css-print#comments</comments>
		<pubDate>Tue, 14 Sep 2010 08:03:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端技术]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.simcn.com/?p=311</guid>
		<description><![CDATA[网页打印内容有很多便利的地方，而且不需要安装其他软件 会打印机页眉与页脚并且在有些在程序中不好去掉. &#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62; &#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34; xml:lang=&#34;en&#34;&#62; &#60;head&#62; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html;charset=UTF-8&#34; /&#62; &#60;title&#62;&#60;/title&#62; &#60;style type=&#34;text/css&#34; media=&#34;print&#34;&#62; *{margin:0; padding:0;} p{ background-color:#333; color:#fff; margin:1mm;} .page-break-after{page-break-after : always} button{display:none;} &#60;/style&#62; &#60;script type=&#34;text/javascript&#34;&#62; function webprint(){ window.print(); } &#60;/script&#62; &#60;/head&#62; &#60;body&#62; &#60;p&#62;1&#60;/p&#62; &#60;div class=&#34;page-break-after&#34;&#62;&#38;nbsp;&#60;/div&#62; &#60;p&#62;2&#60;/p&#62; &#60;div class=&#34;page-break-after&#34;&#62;&#38;nbsp;&#60;/div&#62; &#60;p&#62;3&#60;/p&#62; &#60;button onclick=&#34;webprint()&#34;&#62;print&#60;/button&#62; &#60;/body&#62; &#60;/html&#62;]]></description>
			<content:encoded><![CDATA[<p>网页打印内容有很多便利的地方，而且不需要安装其他软件</p>
<p>会打印机页眉与页脚并且在有些在程序中不好去掉.</p>
<pre name="code" class="brush:html">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot;&gt;
&lt;head&gt;
	&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=UTF-8&quot; /&gt;
	&lt;title&gt;&lt;/title&gt;

	&lt;style type=&quot;text/css&quot; media=&quot;print&quot;&gt;
		*{margin:0; padding:0;}
		p{ background-color:#333; color:#fff; margin:1mm;}
		.page-break-after{page-break-after : always}
		button{display:none;}
	&lt;/style&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;
	function webprint(){
		window.print();
	}
	&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;p&gt;1&lt;/p&gt;
	&lt;div class=&quot;page-break-after&quot;&gt;&amp;nbsp;&lt;/div&gt;
	&lt;p&gt;2&lt;/p&gt;
	&lt;div class=&quot;page-break-after&quot;&gt;&amp;nbsp;&lt;/div&gt;
	&lt;p&gt;3&lt;/p&gt;
	&lt;button onclick=&quot;webprint()&quot;&gt;print&lt;/button&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.simcn.com/web-print_js-print_css-print/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>通过script标签增加JS</title>
		<link>http://www.simcn.com/script_src_add_script_js</link>
		<comments>http://www.simcn.com/script_src_add_script_js#comments</comments>
		<pubDate>Sun, 21 Feb 2010 10:48:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端技术]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.simcn.com/?p=253</guid>
		<description><![CDATA[工作需要在前端的代码通过xxx.js?m=m&#038;x=x 的方法来通过js加载JS文件。 JS: //MS闭包，不让代码互相影响，我也用的不多 (function(){ var simcn = { src:[], init:function(){ var __g = document.getElementById('simcnworkframe'); this.srcUrl(__g.src); }, run:function(){ this.init(); var head = document.getElementsByTagName('head')[0]; var j=0; for(i in this.src){ var t = document.createElement('script'); t.src = this.src[i] + '.js' ; t.id = "simc_" + this.src[i]; head.appendChild(t); } }, srcUrl:function(_u){ var jl = _u.split('.js?')[1].split('&#038;'); for(i in jl){ this.src.push(jl[i].split('=')[1]); [...]]]></description>
			<content:encoded><![CDATA[<p>工作需要在前端的代码通过xxx.js?m=m&#038;x=x 的方法来通过js加载JS文件。</p>
<pre class="brush:html">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <script type="text/javascript" id="simcnworkframe" src="simcn.js?m=m&#038;c=c&#038;v=v">
        </script>
    </head>
    <body>
     </body>
</html>
</pre>
<p>JS:</p>
<pre class="brush:javascript">
//MS闭包，不让代码互相影响，我也用的不多
(function(){

	var simcn = {
		src:[],
		init:function(){
			var __g = document.getElementById('simcnworkframe');
			this.srcUrl(__g.src);
		},
		run:function(){
			this.init();
			var head = document.getElementsByTagName('head')[0];
			var j=0;
			for(i in this.src){
				var t = document.createElement('script');
				t.src = this.src[i] + '.js' ;
				t.id  = "simc_" + this.src[i];
				head.appendChild(t);
			}
		},
		srcUrl:function(_u){
			var jl = _u.split('.js?')[1].split('&#038;');
			for(i in jl){
				this.src.push(jl[i].split('=')[1]);
			}
		}
	};	

	simcn.run();

})()

//m.js
alert('m.js')

//c.js
alert('c.js')

//v.js
alert('v.js')
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.simcn.com/script_src_add_script_js/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>数组随机排序</title>
		<link>http://www.simcn.com/array-random-sort</link>
		<comments>http://www.simcn.com/array-random-sort#comments</comments>
		<pubDate>Thu, 10 Sep 2009 00:51:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端技术]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[客服]]></category>

		<guid isPermaLink="false">http://www.simcn.com/?p=199</guid>
		<description><![CDATA[var wangwangList = ['咨询online','咨询online1','咨询online2','咨询online3']; /** * 随机排预 * @param 旺旺名字列表 * @returns HTML代码 **/ function randomWangWang(A){ var B,C; var X = []; var j=0; for(i=A.length;i>=1;i--){ C=Math.floor(Math.random() * A.length); X[j] = outWangWangCode(A[C]); A.splice(C,1) j++; } return X } /** * 转化为HTML链接形式 * @param 旺旺名字 * @returns HTML代码 **/ function outWangWangCode(n){ var _n = encodeURIComponent(n); var html=''; [...]]]></description>
			<content:encoded><![CDATA[<pre name="code" class="brush:javascript">
var wangwangList = ['咨询online','咨询online1','咨询online2','咨询online3']; 

	/**
	 * 随机排预
	 * @param 旺旺名字列表
	 * @returns HTML代码
	 **/
	function randomWangWang(A){
	    var B,C;
	    var X = [];
	    var j=0;
	    for(i=A.length;i>=1;i--){
		C=Math.floor(Math.random() * A.length);
		X[j] = outWangWangCode(A[C]);
		A.splice(C,1)
		j++;
	    }
	    return X
	}

	/**
	 * 转化为HTML链接形式
	 * @param 旺旺名字
	 * @returns HTML代码
	 **/
	function outWangWangCode(n){
	    var _n = encodeURIComponent(n);
	    var html='';
	    html += '
<li><a title="点击这里给我发消息" target="_blank" class="img" href="http://amos.im.alisoft.com/msg.aw?v=2&amp;uid='+_n+'&amp;site=cntaobao&amp;s=1&amp;charset=utf-8">';
	    html += '<img border="0" alt="点击这里给我发消息" src="http://amos.im.alisoft.com/online.aw?v=2&amp;uid='+_n+'&amp;site=cntaobao&amp;s=1&amp;charset=utf-8"/></a>'+n+'</li>

';
	    return html;
	}

	/**
	 * 转出全部列表
	 * @param 写模式还是返回模式
	 * @returns HTML代码
	 **/
	function writeWangWangHTML(write){
	    var html = '
<ul>';
	    var x = randomWangWang(wangwangList);
	    for(i in x ){
		html += x[i];
	    }
	    html += '</ul>

';
	    return html;
	}

	//显示码
	document.write(writeWangWangHTML());
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.simcn.com/array-random-sort/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript中confirm的用法</title>
		<link>http://www.simcn.com/javascript%e4%b8%adconfirm%e7%9a%84%e7%94%a8%e6%b3%95</link>
		<comments>http://www.simcn.com/javascript%e4%b8%adconfirm%e7%9a%84%e7%94%a8%e6%b3%95#comments</comments>
		<pubDate>Fri, 19 Dec 2008 08:00:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端技术]]></category>
		<category><![CDATA[confirm]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[确认]]></category>

		<guid isPermaLink="false">http://www.simcn.com/?p=115</guid>
		<description><![CDATA[configrm 用于删除或者其他时提示返回 t , f 例 if(window.confirm("确定删除吗?")){ $.get("../member/action.php?act=del", { snapID: id}, function(data){ if(data==1){ alert('success'); removeNode1(obj.parentNode.parentNode); }else{ alert('error'); } } ); } return false;]]></description>
			<content:encoded><![CDATA[<p>configrm 用于删除或者其他时提示返回 t , f</p>
<p>例</p>
<pre lang="javascript">
	if(window.confirm("确定删除吗?")){
		$.get("../member/action.php?act=del", { snapID: id},
		   function(data){
				if(data==1){
					alert('success');
					removeNode1(obj.parentNode.parentNode);
				}else{
					alert('error');
				}
		   }
		);
	}
	return false;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.simcn.com/javascript%e4%b8%adconfirm%e7%9a%84%e7%94%a8%e6%b3%95/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>动态给ifram添加内容,兼容ie和FF</title>
		<link>http://www.simcn.com/%e5%8a%a8%e6%80%81%e7%bb%99ifram%e6%b7%bb%e5%8a%a0%e5%86%85%e5%ae%b9%e5%85%bc%e5%ae%b9ie%e5%92%8cff</link>
		<comments>http://www.simcn.com/%e5%8a%a8%e6%80%81%e7%bb%99ifram%e6%b7%bb%e5%8a%a0%e5%86%85%e5%ae%b9%e5%85%bc%e5%ae%b9ie%e5%92%8cff#comments</comments>
		<pubDate>Fri, 12 Dec 2008 01:42:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端技术]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[js]]></category>

		<guid isPermaLink="false">http://www.simcn.com/?p=110</guid>
		<description><![CDATA[第一次知道,还可以这样写 &#60;iframe width=&#8217;100%&#8217; height=&#8217;100%&#8217; name=&#8217;boot&#8217; id=&#8217;boot&#8217; src=” frameborder=&#8217;0&#8242; scrolling=&#8217;no&#8217;&#62;&#60;/iframe&#62; &#60;SCRIPT   LANGUAGE=”JavaScript”&#62;   &#60;!&#8211;   var iframe = window.frames['boot']; iframe.document.open(); iframe.document.write(&#8216;&#60;!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&#62;\n&#8217;); iframe.document.write(&#8216;&#60;html xmlns=”http://www.w3.org/1999/xhtml”&#62;\n&#8217;); iframe.document.write(&#8216;&#60;head&#62;\n&#8217;); iframe.document.write(&#8216;&#60;meta http-equiv=”Content-Type” content=”text/html; charset=gb2312&#8243; /&#62;\n&#8217;); iframe.document.write(&#8216;&#60;/head&#62;\n&#8217;); iframe.document.write(&#8216;&#60;body&#62;\n&#8217;); iframe.document.write(&#8216;请等待&#8230;&#8217;); iframe.document.write(&#8216;&#60;/body&#62;\n&#8217;); iframe.document.write(&#8216;&#60;/html&#62;\n&#8217;); iframe.document.close(); //&#8211;&#62;   &#60;/SCRIPT&#62;]]></description>
			<content:encoded><![CDATA[<p>第一次知道,还可以这样写</p>
<p>&lt;iframe width=&#8217;100%&#8217; height=&#8217;100%&#8217; name=&#8217;boot&#8217; id=&#8217;boot&#8217; src=” frameborder=&#8217;0&#8242; scrolling=&#8217;no&#8217;&gt;&lt;/iframe&gt;<br />
&lt;SCRIPT   LANGUAGE=”JavaScript”&gt;  <br />
&lt;!&#8211;  <br />
var iframe = window.frames['boot'];<br />
iframe.document.open();<br />
iframe.document.write(&#8216;&lt;!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd%22%3E/n">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;\n&#8217;</a>);<br />
iframe.document.write(&#8216;&lt;html xmlns=”<a href="http://www.w3.org/1999/xhtml%22%3E/n">http://www.w3.org/1999/xhtml”&gt;\n&#8217;</a>);<br />
iframe.document.write(&#8216;&lt;head&gt;\n&#8217;);<br />
iframe.document.write(&#8216;&lt;meta http-equiv=”Content-Type” content=”text/html; charset=gb2312&#8243; /&gt;\n&#8217;);<br />
iframe.document.write(&#8216;&lt;/head&gt;\n&#8217;);<br />
iframe.document.write(&#8216;&lt;body&gt;\n&#8217;);<br />
iframe.document.write(&#8216;请等待&#8230;&#8217;);<br />
iframe.document.write(&#8216;&lt;/body&gt;\n&#8217;);<br />
iframe.document.write(&#8216;&lt;/html&gt;\n&#8217;);<br />
iframe.document.close();<br />
//&#8211;&gt;  <br />
&lt;/SCRIPT&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simcn.com/%e5%8a%a8%e6%80%81%e7%bb%99ifram%e6%b7%bb%e5%8a%a0%e5%86%85%e5%ae%b9%e5%85%bc%e5%ae%b9ie%e5%92%8cff/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>javascript与php类型转换</title>
		<link>http://www.simcn.com/javascript%e4%b8%8ephp%e7%b1%bb%e5%9e%8b%e8%bd%ac%e6%8d%a2</link>
		<comments>http://www.simcn.com/javascript%e4%b8%8ephp%e7%b1%bb%e5%9e%8b%e8%bd%ac%e6%8d%a2#comments</comments>
		<pubDate>Thu, 27 Nov 2008 01:32:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端技术]]></category>
		<category><![CDATA[后端技术]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[类型转换]]></category>

		<guid isPermaLink="false">http://www.simcn.com/?p=106</guid>
		<description><![CDATA[1. 字符串转换为整型 //php intval(); //php floatval();//php浮点 strval(); //javascript toString(); //转化为整型 parseInt(); //js 转化为整型 parseFloat(); //转化为浮点 Number(); //js, 这个会自动转]]></description>
			<content:encoded><![CDATA[<p>1. 字符串转换为整型<br />
//php<br />
intval(); //php<br />
floatval();//php浮点<br />
strval();</p>
<p>//javascript<br />
toString(); //转化为整型<br />
parseInt(); //js 转化为整型<br />
parseFloat(); //转化为浮点<br />
Number(); //js, 这个会自动转</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simcn.com/javascript%e4%b8%8ephp%e7%b1%bb%e5%9e%8b%e8%bd%ac%e6%8d%a2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>两种常用的图文排版实现(CSS)</title>
		<link>http://www.simcn.com/two-text-pic</link>
		<comments>http://www.simcn.com/two-text-pic#comments</comments>
		<pubDate>Sat, 22 Nov 2008 03:20:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端技术]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[图文]]></category>
		<category><![CDATA[基础布局]]></category>
		<category><![CDATA[排版]]></category>

		<guid isPermaLink="false">http://www.simcn.com/?p=93</guid>
		<description><![CDATA[一般的图文排版方式有两种, 1. 图文并排 2. 图文绕排 代码如下 body{ font-size:14px;} #p1{ width:300px; min-height:160px; _height:160px; border:1px solid #efefef; padding:0.5em;} #p1 img{ float:left; margin:0 1em 1em 0em;} #p2{ position:relative; padding:0.5em; padding-left:137px; width:170px; min-height:160px; _height:160px; border:1px solid #efefef;} #p2 img{ position:absolute; left:0.5em;} #p3{ position:relative; padding:0.5em; padding-left:137px; min-height:160px; _height:160px; border:1px solid #efefef;} #p3 img{ position:absolute; left:0.5em;} h2{ font-size:14px; color:blue;} 简约视界&#124;www.simcn.com 图文并排(固定度宽) [...]]]></description>
			<content:encoded><![CDATA[<p>一般的图文排版方式有两种,<br />
1. 图文并排<br />
2. 图文绕排</p>
<p>代码如下</p>
<pre class="brush:css">
<style>
body{ font-size:14px;}
#p1{ width:300px; min-height:160px; _height:160px; border:1px solid #efefef; padding:0.5em;}
#p1 img{ float:left; margin:0 1em 1em 0em;}

#p2{ position:relative; padding:0.5em; padding-left:137px; width:170px; min-height:160px; _height:160px; border:1px solid #efefef;}
#p2 img{ position:absolute; left:0.5em;}

#p3{ position:relative; padding:0.5em; padding-left:137px; min-height:160px; _height:160px; border:1px solid #efefef;}
#p3 img{ position:absolute; left:0.5em;}

h2{ font-size:14px; color:blue;}
</style>
</pre>
<pre class="brush:html">
<body>
<h1><a href="http://www.simcn.com">简约视界|www.simcn.com</a></h1>
<h2>图文并排(固定度宽)</h2>
<p id="p2"><img src="http://image.cmfu.com/books/1046441/1046441.jpg" alt="image" /> 生活中，无数的物品正随着时光的流逝而变旧，破损，数不清的财富在不经意间消失，杨欣的发家史是一个不为人知的秘密，化腐朽为神奇这种事情，就算他不隐瞒，别人也不会相信。
　　一个生活在大都市的拾荒者，为了自己的梦想和家人而不断打拼，从社会的最底层，逐步走上巅峰，当金钱，荣誉，美女接踵而至，他能否把....
<h2>图文绕排(固定度宽)</h2>
<p id="p1"><img src="http://image.cmfu.com/books/1046441/1046441.jpg" alt="image" /> 生活中，无数的物品正随着时光的流逝而变旧，破损，数不清的财富在不经意间消失，杨欣的发家史是一个不为人知的秘密，化腐朽为神奇这种事情，就算他不隐瞒，别人也不会相信。
　　一个生活在大都市的拾荒者，为了自己的梦想和家人而不断打拼，从社会的最底层，逐步走上巅峰，当金钱，荣誉，美女接踵而至，他能否把....
<h2>图文并排(不固定宽度)</h2>
<p id="p3"><img src="http://image.cmfu.com/books/1046441/1046441.jpg" alt="image" /> 生活中，无数的物品正随着时光的流逝而变旧，破损，数不清的财富在不经意间消失，杨欣的发家史是一个不为人知的秘密，化腐朽为神奇这种事情，就算他不隐瞒，别人也不会相信。
　　一个生活在大都市的拾荒者，为了自己的梦想和家人而不断打拼，从社会的最底层，逐步走上巅峰，当金钱，荣誉，美女接踵而至，他能否把....生活中，无数的物品正随着时光的流逝而变旧，破损，数不清的财富在不经意间消失，杨欣的发家史是一个不为人知的秘密，化腐朽为神奇这种事情，就算他不隐瞒，别人也不会相信。
　　一个生活在大都市的拾荒者，为了自己的梦想和家人而不断打拼，从社会的最底层，逐步走上巅峰，当金钱，荣誉，美女接踵而至，他能否把....生活中，无数的物品正随着时光的流逝而变旧，破损，数不清的财富在不经意间消失，杨欣的发家史是一个不为人知的秘密，化腐朽为神奇这种事情，就算他不隐瞒，别人也不会相信。
　　一个生活在大都市的拾荒者，为了自己的梦想和家人而不断打拼，从社会的最底层，逐步走上巅峰，当金钱，荣誉，美女接踵而至，他能否把....生活中，无数的物品正随着时光的流逝而变旧，破损，数不清的财富在不经意间消失，杨欣的发家史是一个不为人知的秘密，化腐朽为神奇这种事情，就算他不隐瞒，别人也不会相信。
　　一个生活在大都市的拾荒者，为了自己的梦想和家人而不断打拼，从社会的最底层，逐步走上巅峰，当金钱，荣誉，美女接踵而至，他能否把....

</body>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.simcn.com/two-text-pic/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>min-height属性在ie6下表现</title>
		<link>http://www.simcn.com/min-height-ie6</link>
		<comments>http://www.simcn.com/min-height-ie6#comments</comments>
		<pubDate>Fri, 14 Nov 2008 07:06:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端技术]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[min-height]]></category>

		<guid isPermaLink="false">http://www.simcn.com/?p=80</guid>
		<description><![CDATA[selector { min-height:500px; height:auto !important; height:500px; } /*另一种*/ selector { min-height:500px; _height:500px; } ie6 的 height 属性具有像 min-height的功能 也就是说当内容高度比较 height高是会扩展开]]></description>
			<content:encoded><![CDATA[<pre lang="brush:css">
selector {
  min-height:500px;
  height:auto !important;
  height:500px;
}
/*另一种*/
selector {
  min-height:500px;
  _height:500px;
}
</pre>
<p>ie6 的 height 属性具有像 min-height的功能 也就是说当内容高度比较 height高是会扩展开</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simcn.com/min-height-ie6/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

