If you just want to use the standard Growl function and you aren't planning on using the code above, you can add the HTML below to make it work: <a href="javascript:growl('TITLE','Message');">Link Name</a> The "TITLE" (in blue) is the title/header that shows in the Growl window. The Message is in green and will be displayed inside the body of the Growl window, this can include HTML tags like <img> The link name (in purple) is what is clicked on to make the Growl window pop up. This also can include <img> (images)
<a href="javascript:growl('TITLE','Message');">Link Name</a>
If you picked a style from above and added the code to your site, follow these instructions on how to use this version of the growl box. Use the HTML below to make this work: <a href="javascript:growl2('TITLE','Message','IMAGE',250);">Link Name</a> The "TITLE" (in blue) is the title/header that shows in the Growl window. The Message is in green and will be displayed inside the body of the Growl window, this can include HTML tags like <img>. You can also use the method in the Site Notification section below to add a formatted block. To add an image in the growl box please note that the two version above use different methods: Basic Growl Box - This style adds an icon in the header. Replace the 'IMAGE' with the URL to your image: http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/info.png Here are some examples: <a href="javascript:growl2('TITLE #1','Hello this is test #1','http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/error.png',200);">Growl Test 1</a> <a href="javascript:growl2('TITLE #2','Hello this is test #2','http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/info.png',300);">Growl Test 2</a> <a href="javascript:growl2('TITLE #3','Hello this is test #3<br>This is a test<br>Hello test<br>Hello','',400);">Growl Test 3</a> Site Matching Growl Box - This style adds an icon in the message area, but on the right side. You could just include the image with the message portion as well. But to add this image type, you'll need to include the entire image tag but don't include any quotes <img style=float:left;margin:5px; width=25 src=http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/info.png> Here are some examples: <a href="javascript:growl2('TITLE #1','Hello this is test #1','<img style=float:right;margin:0px 5px 5px 5px; width=25 src=http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/error.png>',200);">Growl Test 1</a> <a href="javascript:growl2('TITLE #2','Hello this is test #2','<img style=float:left;margin:5px; width=25 src=http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/info.png>',300);">Growl Test 2</a> <a href="javascript:growl2('TITLE #3','Hello this is test #3','',400);">Growl Test 3</a> The number in red sets the width of the growl window. if you leave it blank, it set the width to a default of 300 pixels. The link name (in purple) is what is clicked on to make the Growl window pop up. This also can include <img> (images)
<a href="javascript:growl2('TITLE','Message','IMAGE',250);">Link Name</a>
This method will make a growl window pop up when the site page is loaded. It's best used for important news, but don't include too much information because people will only have a few seconds to read it (10 seconds is the default above). Each portion of the growl window has been separated out for easier reading, but it has the same basic format as the growl links above. I'd recommend only adding this to your home page in a free form text/HTML box. If you add it into the header or footer it'll become really annoying when members are trying to read the forums or mail. <script type="text/javascript"> $(document).ready(function(){ var GrowlTitle = '<font color="red">Guild Notice!</font>'; var GrowlIcon = '<img style=float:right;margin:0px 5px 5px 5px; width=50 src=http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/error.png>'; var GrowlMsg = $('#growlNote').html(); var GrowlWidth = 300; growl2(GrowlTitle,GrowlMsg,GrowlIcon,GrowlWidth); }) </script> <div id="growlNote" style="display:none;"> <img src="http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/t.gif">his is a test of the Guild Messaging System. This growl window shows that you can add images and other styles into this window.<br> <br> Click on the title bar to close this box, or wait 10 seconds.<hr><h2>Headers</h2> and styles including <font color="green">color</font> changes, <b>bold</b> and <i>italics</i>.<br> <div align="center"><img src="http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/blizzlogo.gif"></div> </div> GrowlTitle - This is the growl window title, notice that you can use font coloring to highlight the title GrowlIcon - This is setup for the Site Matching Growl Box, so only use the URL if you're using the Basic Growl Box GrowlMsg - This uses scripting to point to a <div> with the contents you want to include in the message, you could replace the "$('#growlNote').html();" with just text if you desire. Make sure the growlNote (in purple) matches the script and the ID of the div. The text in green is what will be displayed inside the growl box. GrowlWidth - This sets the width of your notification box
<script type="text/javascript"> $(document).ready(function(){ var GrowlTitle = '<font color="red">Guild Notice!</font>'; var GrowlIcon = '<img style=float:right;margin:0px 5px 5px 5px; width=50 src=http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/error.png>'; var GrowlMsg = $('#growlNote').html(); var GrowlWidth = 300; growl2(GrowlTitle,GrowlMsg,GrowlIcon,GrowlWidth); }) </script> <div id="growlNote" style="display:none;"> <img src="http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/t.gif">his is a test of the Guild Messaging System. This growl window shows that you can add images and other styles into this window.<br> <br> Click on the title bar to close this box, or wait 10 seconds.<hr><h2>Headers</h2> and styles including <font color="green">color</font> changes, <b>bold</b> and <i>italics</i>.<br> <div align="center"><img src="http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/blizzlogo.gif"></div> </div>
<style type="text/css"> .tooltip, .preview, .screenshot { cursor:pointer; } #tooltip, #tooltip2, #preview, #screenshot { color:#dddddd; background:#222222; border: 1px solid #333333; padding:5px; display:none; opacity: 0.9; filter: alpha(opacity=90); text-align:left; border-radius: 1em; -moz-border-radius: 1em; -webkit-border-radius: 1em; } </style> <script src="http://www.axiomfiles.com/Files/258012/tooltip.js" type="text/javascript"></script>