Tyme wrote:
Unfortunately, according to my Mac/Safari tester, that did not work.
Here is what I last tested:
script language=JavaScript type=text/javascript
if(navigator.useragent.indexof(AppleWebKit) -1) {
document.getElementById(tblBannerNav).style.height=88px;
}
//--
/script
The browser
: Re:[wdvltalk] Safari tweaking help
Tim:
My JavaScript is getting a bit rusty, but it seems I recall that you
need to use indexOf (note the capitalization). Same problem exists if
you don't capitalize getElementById correctly, it just fails when you
use it (I spent an hour once long ago trying
Is it the browser detection that not working?
Try this instead:
if(navigator.useragent.indexof(AppleWebKit) -1){
document.getElementById(tblBannerNav).style.height=88 + px;
Might be the problem.
Thanks,
Perry Gerenday
http://www.webinitiative.net
Quoting T-- [EMAIL PROTECTED]:
Unfortunately, according to my Mac/Safari tester, that did not work. Here
is what I last tested:
script language=JavaScript type=text/javascript
if(navigator.useragent.indexof(AppleWebKit) -1) {
document.getElementById(tblBannerNav).style.height=88px;
}
//--
/script
The browser
I sadd it was untested ;) Couple of typos on my part:
if(navigator.userAgent.indexOf(AppleWebKit) -1) {
document.getElementById(tdMenuSolutions).style.height=88px;
}
seems to work for me. Note the spellings of indedOf and userAgent.
hth,
Stephen
On 8/11/05, T-- [EMAIL