jquery - Why can't I get jGrowl or Sliding Message library working? -




i'm trying delayed message slide in right side of screen after delay, tried 2 different libraries without success. neither library anything.

jquery sliding messages method

<script type="text/javascript" src="/sites/all/libraries/jquery-sliding-message/jquery.slidingmessage.js"></script>     <script type="text/javascript"> (function ($) {   'use strict';   drupal.behaviors.flyoutmessage = {     attach: function(context, settings) {       var options = {id: 'message_from_top',                      position: 'right',                      size: 300,                      backgroundcolor: 'red',                      delay: 1500,                      speed: 500,                      fontsize: '30px'                     };       $.showmessage("hello world!", options);     },   }; })(jquery); </script> 

jgrowl method

<script type="text/javascript" src="/sites/all/libraries/jgrowl/jquery.jgrowl.js"></script>     <script type="text/javascript"> (function ($) {   drupal.behaviors.showannouncement = {     attach: function (context, settings) {       $.jgrowl("hello world!", { sticky: true });         },   }; })(jquery); </script> 

i checked source, , there no "hello world!" message anywhere found, , no errors in console either. have tried on 2 different websites sure.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -