I really like your messager, but I've been struggling to figure out a way to change the origin point of the 'showType' option.
$.messager.show({
title:'My Title',
msg:'Message will be closed after 5 seconds.',
timeout:5000,
showType:'slide'
});
If I want a $.messager instance to slide in from the top of the page, instead of the bottom...how do I do this?
NOTE:
I see that I can hardcode the change in jquery.messager.js, obviously:
win.window("window").css({
left: "",
top: "",
right: 0,
zIndex: $.fn.window.defaults.zIndex++,
bottom: -document.body.scrollTop - document.documentElement.scrollTop
});
But this is highly undesirable because as a matter of practice I'll have to convert all of these hacks manually on the next release. I'm trying to figure out a way to prototype the function while retaining scope for all the private variables you reference...
Wish you would have just added a position option.