I don't know for a mec but I use it on a PC <div id="svg"></div> <script language="JavaScript"> var hasSVGSupport = false; var useVBMethod = false; if (navigator.mimeTypes != null && navigator.mimeTypes.length > 0) { if (navigator.mimeTypes["image/svg-xml"] != null) hasSVGSupport = true; }else{ useVBMethod = true; } </script>
<script language="VBScript"> On Error Resume Next If useVBMethod = true Then hasSVGSupport = IsObject(CreateObject("Adobe.SVGCtl")) End If </script> <script language="JavaScript"> if (hasSVGSupport == true) { document.getElementById('svg').innerHTML='<EMBED SRC="URL.svg" height=150 width=150 TYPE="image/svg-xml"><br>'; } else { document.getElementById('svg').innerHTML='Vous devriez télécharger le PLUGIN SVG Viewer afin d\'afficher le fichier SVG présents sur le site <br> <a href="http://download.adobe.com/pub/adobe/magic/svgviewer/win/3.x/3.01/fr/SVGView.exe" target=_blank>Cliquez ici pour télécharger</a>'; } </script> ----- Original Message ----- From: "Holger Will" <[EMAIL PROTECTED]> To: <svg-developers@yahoogroups.com> Sent: Sunday, May 15, 2005 8:20 AM Subject: Re: [svg-developers] Re: plugin detection in macintosh? > Richard Gnyla wrote: > >>Well flash has a detection why not SVG? (Holger?) >> >> > <ironie> > oh sorry ,i must have forgtten when i wrote the spec > </ironie> > no for real i think you are mixing up things here, SVG is a file format > like SWF. SWF has no detection either, there are scripts to detect the > flash viewer. > and indeed there is a standard way of detecting SVG namely the object > tag with its fallback mechanism.(its not my fault object is broken in IE) > >>Supppose if he worked for Macromedia he would have said the same! >> >> > who? > >>If some people weren’t up their own ar(s)e so much and actually helped >>rather than criticise >> > personaly i find contructive criticism very helpful, that might not be > true for everyone though. > >>and come up with their own stupid theories on how >>things should be done than SVG would be bigger >> >> > thanks that was helpful !, no really!!, now i know the title for my > blog,"stupid theories"... sounds cool! :-) > >>Flash has a detection utility, hello, couple of million people can't be >>wrong, >> >> > ooohhh!!what do you know? they can, just look in a history book. > >>Yes we do need a detection utility. Flash has it so why not SVG? >> >> > see above > >> >>All the best Hannes, and if you do an SVG detect please post WE ALL NEED >>ONE. >> >> >> > ok maybe im a bit idealistic here, and a script like the one hannes > writes is more pracmatic for the moment. > > Holger > > > > > ----- > To unsubscribe send a message to: > [EMAIL PROTECTED] > -or- > visit http://groups.yahoo.com/group/svg-developers and click "edit my > membership" > ---- > Yahoo! Groups Links > > > > > > > > > -- > Aucun virus n'a _t_ trouv_ dans ce message > Checked by AVG Anti-Virus. > Version: 7.0.308 / Virus Database: 266.11.10 - Release Date: 2005-05-13 > > -- Aucun virus n'a _t_ trouv_ dans ce message Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.10 - Release Date: 2005-05-13 ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/