This is an example how to create customized draggable and closeable Post-It Note for your site using the various "Custom Code" textareas of Admin > Look & Feel panel.
Please note that this trick requires jQuery and jQuery UI feature enabled and was originally tested in Tiki 6.
First paste this piece of code for example in the Admin > Look & Feel > General Layout > Custom Center Column Header textarea or in a custom module:
XHTML Code Copy to clipboard
Hello World!
I'm an example of a Post-It like note! Feel free to drag me around! You can close me too but I'd like to stay visible longer! :)
Then put the following JavaScript with jQuery to the Miscellaneous tab > Custom Code > Custom JavaScript:
JavaScript Copy to clipboard if (getCookie('postitnote') != 'hidden') {
$('#postitnote').removeClass('hidden').hide().delay('500').fadeIn('slow').draggable();
}
Now just hit the Apply button and your new post-it note should appear at your site "sticked" on the position specified by top and right values!
If you want more post-it-like notes on your site, just do copy'n'paste and add a number after every postitnote text found in the code (because the identifier must be unique for every one of them).
You can also optimize and put the inline CSS (in the style attribute) to your Custom CSS tab textarea of course and try other tricks. Enjoy!
By the way, You can see a live example of the code above appearing on this page ! (unless you or someone closed it in your browser already ð)
Hello World!
I'm an example of a Post-It like note! Feel free to drag me around! You can close me too but I'd like to stay visible longer! :)
Related:
Alias names for this page:
Post-it | postit | warning note | warningnote | warnings | warning | Sticky Note | Sticky_Note
|