<a href="javascript:vod(0)" onclick="$('#linkname').val($('#title').val().split(' ').join('-'))">从名称读取 </a>


关键是这个!
.split(' ').join('-')


做url 下面的这个方案更好  

<a href="javascript:vod(0)" onclick="$('#linkname').val($('#title').val().replace(/ +/g,'-'))">从名称读取 </a>

$pattern='/<body [^>]*?>.*?<\/body>/si';
$subject = $htmltext;

preg_match($pattern, $subject, $matches);
     print_r($matches);;

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
.fourlist{ width:200px; height:150px;  background-color:#FC0; margin:5px 2px 5px 2px !important; margin:5px; display:inline-block !important; zoom:1!important;display:inline;  }
</style>
</head>

<body>
<p>一行四列非float演示</p>
<p>&nbsp;</p>
<div style="width:900px;">
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
<div class="fourlist"></div>
</div>
</body>
</html>

  $pattern1='/SELECT+ .*?from/si';
            $all_rs = $db->rows(preg_replace($pattern1, 'SELECT count(0) as pagecount FROM', $sqlstr,1));
            $total= $all_rs['pagecount'];    //总得记录
jquery代码

$(document).ready(function(){  
  //$(".trclass:odd>td").addClass("tr1");
  $(".trclass:even>td").addClass("tr2");
  $(".trclass>td").mouseover(function(){
      $(this).siblings().addClass("tr3");
    $(this).addClass("tr4");
    }).mouseout(function(){
    $(this).siblings().removeClass("tr3");
    $(this).removeClass("tr4");
      });
  

    });

Tags:
jquery 交流群:62203220
   if(!$("input:checked[name='id[]']").eq(0).val())
       {

            alert("请选择操作ID");
            return
       }
        
        if(!$("input:radio[name='do'][checked]").eq(0).val())
        {
            alert("请选择操作的动作");
            return
        }


代码经过测试可以用!

用最新的checked检查表单,有没有选择,ff,ie6+,chrome测试可用!
这个就是head里要放的代码
<script src="js/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
  $(document).ready(function(){
    $("a[rel=external]").each(function(i){
        this.target="_blank";  
    });
});
</script>


然后把你原来有_blank给删除了,

换成这个


<a href="{lst['url']}" title="{lst['content']}" rel="external">{lst['title']}</a>


只要有jquery 就不用在为你的_blank烦恼了!
Tags: , ,

function pedit(ids)
{
    if($("#p"+ids).attr("src")==tempale+"yes.gif")
    {

        $.ajax({
            type: "POST",
            url: "adminajax.php?act=pedit",
            data: "&id="+ids+"&"+$("#tr"+ids+" input").serialize(),
            success: function(msg){
                $("input:text", "#tr"+ids).each(function(i,n){
                    $("#tr"+ids+">td>span").eq(i).text($(n).val());
                  
                });
                $("#msg").html(ids+msg);


                $("#p"+ids).attr("src",tempale+"edit.gif");
            }
        });

    }
    else
    {
        $("#p"+ids).attr("src",tempale+"yes.gif");
        var lenarr = ["85px","50px"];
        var typear = ["text","text"];
        var namear = ["price","zhekou"];
        $("span", "#tr"+ids).each(function(i,n){
            $(n).html("<input name='"+namear[i]+"' style='width:"+lenarr[i]+";' type='"+typear[i]+"' value='"+$(n).text()+"' />");
        });
    }
}
Baidu的sitemap的地址是sitemap.baidu.com
Quotation
百度sitemap协议

    百度sitemap协议是百度支持的网页收录标准,站长可以将网站中的网页url制作成标准的sitemap文件,用于指引百度搜索引擎快速、全面的抓取或更新网站上内容及处理错误信息。百度sitemap支持标准的XML格式sietmap文件以及文本格式的sitemap文件,如果您有多个sitemap文件,还可以使用sitemap索引文件提交。


XML格式sitemap说明:

XML格式举例:


<?xml version="1.0" encoding="UTF-8"?>
<urlset>
     <url>
       <loc>http://www.example.com/</loc>
       <lastmod>2010-01-01</lastmod>
       <changefreq>always</changefreq>
       <priority>1.0</priority>
     </url>
</urlset>


我添加的地址是 厦门机票 (xml内容查看这里 sitemap)

更多baidu sitemap的内容 http://www.baidu.com/search/sitemap_help.html
KindEditor是一套开源的HTML可视化编辑器,主要用于让用户在网站上获得所见即所得编辑效果,兼容IE、 Firefox、Chrome、 Safari、Opera等主流浏览器。 KindEditor使用JavaScript编写,可以无缝的与Java、.NET、PHP、ASP等程序接合。这次版本主要增加了ASP、 ASP.NET、JSP演示程序,并包含很多bugfix,详细变更记录为如下:

3.4.4版本是3.4.3版本的BUG修复版本,使用3.4.3版本的同学们建议升级到3.4.4版本。

修改过的文件:
* kindeditor.js
* skins/default.css
* skins/tinymce.css
* skins/default/default.gif

修改记录:
——–
* BUG: 修改了在IE上焦点自动移动到编辑区域的问题。
* BUG: 修改了在IE上打开类型无法修改成当前窗口的问题。
* BUG: 修改了全选后无法取消超级链接的问题。
* BUG: 修改了切换代码模式时编辑器轻微抖动的问题。
* BUG: 修改了在IE上切换代码模式时有时候不出现滚动条的问题。
* BUG: 修改了在Chrome 5.0上反复切换代码模式有时候出现崩溃页面的问题。
* 改善: 显示菜单后再点将关闭此菜单。

演示:
http://www.kindsoft.net/demo.php

下载:
http://www.kindsoft.net/down.php

Pages: 3/40 First page Previous page 1 2 3 4 5 6 7 8 9 10 Next page Final page [ View by Articles | List ]