单击横幅后显示按钮

时间:2017-01-02 22:12:14

标签: javascript jquery

我想隐藏横幅和显示按钮(表单):



<script type="text/javascript">
;!( function( w, d ) {
    'use strict';
    var ad = { user: "1468238146", width: 234, height: 60, id: 'anetwork-' + ~~( Math.random() * 999999  ) },
    h = d.head || d.getElementsByTagName( 'head' )[ 0 ],
    s = location.protocol + '//static-cdn.anetwork.ir/aw/aw.js';
    if ( typeof w.anetworkParams != 'object' )
    w.anetworkParams = {};
    d.write( '<div id="' + ad.id + '" style="display: inline-block"></div>' );
    w.anetworkParams[ ad.id ] = ad;
    d.write( '<script type="text/javascript" src="' + s + '" async></scri' + 'pt>' );
    })( this, document );</script>
    
    <script>
    function myFunction() {
        document.getElementById("demo").innerHTML = "<form action="http://google.com">
        <input type="submit" value="Go to Google" />
    </form>";
}
</script>
&#13;
&#13;
&#13;

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<p id="demo"></p>

1 个答案:

答案 0 :(得分:0)

横幅点击: 我假设你有横幅[它可能是按钮或任何其他元素]和形式。

Select *
FROM
(SELECT
 @rank :=case   
WHEN concat_ws(':', @Agent, @calltime) = concat_ws(':', Agent_Name, CallStart) 
Then @rank + 1
ELSE 1
END AS num, 
@calltime:=CallStart AS Callstart, @Agent := Agent_Name As AgentName        
FROM granular 
ORDER BY  Callstart, AgentName
) clean
WHERE num=1;