John..
I have implemented this after much debugging and testing.
I'm placing counters and text indicators over my images used as buttons.
Example.
Button is on my screen named Menu.
Name of button is "mobileimageJobs"
Javascript is
code
//Call this function on Page show event
function showMenuCounters() {
//shows counts over Menu screen Icons
var counter = localStorage.getItem('SendCounter');
if (counter > 0 localStorage.getItem('TotalRecordCount') > 0 localStorage.getItem('PicsToSendCounter') > 0) {
setTimeout(function() {displayCounters();},1000);
}
}
function displayCounters() {
var counter = localStorage.getItem('SendCounter');
var tasksend = Tiggzi('mobileimageConnect').parent(); //get Div of connections pic
var taskmsg = counter + " Unsent"
var mode = 'ScreenMenu';
var picstosend = showPicsToSend(mode); //Get pics to send count
var picsend = Tiggzi('mobileimagePhotos').parent(); //get Div of pic Photos
var picmsg = picstosend + " Unsent"
var jobsdo = Tiggzi('mobileimageJobs').parent(); //get Div of Jobs Pic
$('#jobscount').remove();//Remove any existing Jobs counter style first
$('#taskscount').remove();//Remove any existing Data To send Count msg first
$('#picscount').remove();//Remove any existing Pics To send Count msg first
var jobscount = localStorage.getItem('TotalRecordCount');
var StyleTask = {'text-align': 'center', 'position':'absolute', 'color': 'white', 'text-shadow': '10px 10px 1px #000', 'font-weight': 'bold', 'font-size': '100%', 'margin-left':'15px','margin-top':'-15px'};
var StyleJob = {'text-align': 'center', 'position':'absolute', 'color': 'lime', 'text-shadow': '8px 8px 1px #000', 'font-weight': 'bold', 'margin-left':'65px','margin-top':'-32px'};
if (jobscount > 0 ) {$('<p id="jobscount">').appendTo(jobsdo).text(jobscount).css(StyleJob);}
if (counter > 0 ) {$('<p id="taskscount">').appendTo(tasksend).text(taskmsg).css(StyleTask);}
if (picstosend > 0 ) {$('<p id="picscount">').appendTo(picsend).text(picmsg).css(StyleTask);}
}
/code
My example updates and shows counters over 3 buttons. Tweak the JS and css to suit.
Example of app..