• Duxcms Doccms 熱門關鍵詞代碼示例

    Duxcms Doccms 熱門關鍵詞代碼示例

    Duxcms:

    <a href="javascript:;" onclick="javascript:post('{url('Article/Search/index')}', {id:1,keyword:'領導力培訓'})">領導力培訓</a>
    <script type="text/javascript">
    function post(url, params) {
    var temp = document.createElement("form");
    temp.action = url;
    temp.method = "post";
    temp.style.display = "none";
    for (var x in params) {
    var opt = document.createElement("textarea");
    opt.name = x;
    opt.value = params[x];
    temp.appendChild(opt);
    }
    document.body.appendChild(temp);
    temp.submit();
    return temp;
    }
    </script>

    Doccms:

    <a href="javascript:;" onclick="javascript:post('/search/', {id:1,keyword:'<?php echo $data['title']; ?>'})"><?php echo $data['title']; ?></a>
    <script type="text/javascript">
    function post(url, params) {
    var temp = document.createElement("form");
    temp.action = url;
    temp.method = "post";
    temp.style.display = "none";
    for (var x in params) {
    var opt = document.createElement("textarea");
    opt.name = x;
    opt.value = params[x];
    temp.appendChild(opt);
    }
    document.body.appendChild(temp);
    temp.submit();
    return temp;
    }
    </script>

    a標簽里的關鍵詞自行替換為對應標簽,修改對應提交地址即可,JS是一樣的。

    關鍵詞: 熱門關鍵詞代碼
    2016-03-14 13:41:00 來源:本站 瀏覽:4090
    關閉
    人妖视频在线观看专区,人妖系列网站在线看TS,人妖系列在线精品视频,人与嘼视频免费播放,人与动人物欧美网站