You don't need navigator.appName now
Prototype 1.5.1_rc0 has Prototype.Browser.(IE|Gecko|WebKit|Opera) booleans
On 3/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
>
> On Mar 13, 5:42 pm, David Dashifen Kees <[EMAIL PROTECTED]> wrote:
> > While I don't know if this is how they did it, but I've done it usually
> > with conditional comments used to change the CSS background-image of a
> > div. That being said, you could use javascript something like this
> > (clearly this is pseudo-code):
> >
> > Event.observe(window, "load", function() {
> > if(browser is IE) {
> > $("logo").replace("<img src=/path/to/gif/logo>");
> > }
> >
> > });
> >
> > The browser detection might be the hardest part, but I'm sure
> > Navigator.appName can be used to do it.
> >
> > -- Dash --
>
> Thanks. That is a little more straight forward than some of the other
> stuff I have found.
>
> I am having a hard time figuring out how they did it, I am beginning
> to think it is server side like the apache that is mentioned
> previously.
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---