none
Adding js to masterpage question

    คำถาม

  • Hi

    I am trying to add some custom javascript to my masterpage (v4.master), to show a banner. The javascript is:

    The javascript is (you can see the popup at the top):

    http://cookiesdirective.com

    Can I just add all of the below to the bottom of the page, just before the closing of the body tag?

    <script type="text/javascript">
       function cookiesDirectiveScriptWrapper(){
           // Cookie creating scripts etc here.... 
        
       }
    </script>

    <script type="text/javascript" src="http://js.cookiesdirective.com/1.5.js" />

    <script type="text/javascript">
        // The position of the disclosure ('top' or 'bottom')
        // Number of times to display disclosure. Enter 0 to show it forever!!!!
        // The URI of your privacy policy
        cookiesDirective('top',5,'privacy.html');
    </script>

    Thanks

    21 มิถุนายน 2555 16:35

คำตอบ

ตอบทั้งหมด