Mark Guzdial <[EMAIL PROTECTED]> wrote:
> Can JavaScript be written to detect the existence of the Squeak 
> Plugin?  I was thinking that it would be cool if a user doesn't have 
> the Squeak Plugin tried to visit a Project page, they'd get:
> - a GIF image of what the page looks like and
> - a link to get the plugin
> 
> Since GIF images are created and uploaded already, that wouldn't be hard, no?
> 


Does <embed> have an end tag, e.g.:

        <embed src="..." content-type="application/yummy-squeak-stuff" ...>
     </embed>

If so, all you should have to do is insert default text within the
<embed> tag.  Browsers that can't display the requested item, should
show the alternative HTML.


If this fails, by the way, it would seem acceptible to put the
instructions at the bottom of the page.  "Did the project fail to load? 
You may need to download *the Squeak plugin*".

-Lex

Reply via email to