-3

如何运行这个javascript:

<script type='text/javascript'>
//<![CDATA[FANS='****'//]]>
</script>
<style>#fblikepop{background-color:#fff;display:none.....</style>
<script src='/facebookpop/jquery.js' type='text/javascript'></script>
<script src='http://connect.facebook.net/en_US/all.js#xfbml=1' type='text/javascript'></script>
<script src='/facebookpop/mbtlikebox2.js' type='text/javascript'></script>
<script language='javascript'>
//<![CDATA[
    $(document).ready(function(){                       
        $().FANS({
            timeout: 30,
            wait: 0,
            url: 'http://www.facebook.com/****',
            closeable: true     });
    });
//]]></script><div id='fbtpdiv'></div>

在这个 JavaScript 的“++++2nd JAVASCRIPT++++”位置?

<script type="text/javascript">
if(document.cookie.search(/(^|;)facebookpopc=/) > -1) {
    return false;
} else {

    ++++2nd JAVASCRIPT++++

}
</script>

谢谢你。

4

2 回答 2

1
<script type="text/javascript">
if(document.cookie.search(/(^|;)facebookpopc=/) > -1) {
    return false;
} else {
    $(document).ready(function(){                       
        $().FANS({
            timeout: 30,
            wait: 0,
            url: 'http://www.facebook.com/****',
            closeable: true     });
    });
}
</script>
于 2012-05-10T22:34:33.803 回答
1
<script type="text/javascript">
 $(document).ready(function(){
     if(document.cookie.search(/(^|;)facebookpopc=/) > -1) {
         return false;
      } else {                
        $().FANS({
            timeout: 30,
            wait: 0,
            url: 'http://www.facebook.com/****',
            closeable: true     });
         });
     }
});
</script>
于 2012-05-10T22:35:31.860 回答