
Originally Posted by
DeltaDave
While this is a great little script it is just not useable on pages that are likely to be accessed by a browser that doesn't support Position:Fixed ie Mobile Safari on iPhone, iPad etc.
How would anyone suggest modifying it so that one of these Browsers didn't display ESB content at all.
David
The script currently does detect browsers on desktop that do not support CSS fixed and not show the bar. To do the same for mobile browsers, you might try changing:
Code:
if (!cssfixedsupport || window.opera)
inside the .js file to:
Code:
if (!cssfixedsupport || window.opera || navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i))
The above code is untested, as I do not have an net enabled mobile phone. If it doesn't work, you might try doing a search on google for JavaScript code to detect mobile devises, then add that detection into the original conditional statement above to screen for them.
Bookmarks