Hi, Mahesh-

You need to include the namespace for SVG and XLink in the SVG root, 
like this:

<svg xmlns='http://www.w3.org/2000/svg'
    xmlns:xlink='http://www.w3.org/1999/xlink'
    width="100%" height="100%" style="fill: white; fill-opacity:0.7">

This tells FF (and conforming SVG viewers) that the document is an SVG 
document, and not just some XML that has elements of the same name.

Also, please note that as of right now, FF doesn't support declarative 
animation.  You could use my smilScript [1] JS lib to simulate it, if 
you really need it.

[1] http://www.vectoreal.com/smilscript/


Regards-
-Doug

Mahesh Basantani wrote:
> Dear Members, 
> 
> I have written a small SVG code:
> 
> <svg width="100%" height="100%" style="fill: white; fill-opacity:0.7">
> 
> <rect x="45" width="12" height="12" fill="purple">
>     <animateTransform attributeName="transform" type="rotate"
>                       from="0" to="90" dur="10s"
> repeatCount="indefinite"/>
> </rect>
> 
> <rect x="135" y="35" width="500" height="100" rx="10" ry="10"
> style="fill:olive; stroke:purple; stroke-width:6; fill-opacity:0.1;
> stroke-opacity:1"/>
> 
> <text x="205px" y="110px"
> style="fill:purple;font-size:70;font-family:lucida sans italic;
> opacity:1">BIOPHILES</text>
> 
> 
> <a xlink:href="http://www.arabidopsis.org/";><text x="130" y="250"
> style="fill:purple; fill-opacity:1">TAIR Arabidopsis Database</text></a>
> 
> <a xlink:href="http://www.tigr.org/tdb/e2k1/ath1/";><text x="130"
> y="295" style="fill:purple; fill-opacity:1">TIGR Arabidopsis
> Database</text></a>
> 
> <a
> xlink:href="http://www.ncbi.nlm.nih.gov/mapview/map_search.cgi?taxid=3702";><text
> x="130" y="340" style="fill:purple; fill-opacity:1"> Arabidopsis
> Genome View at NCBI</text></a>
> 
> <a
> xlink:href="http://www.ncbi.nlm.nih.gov/mapview/static/arabidsearch.html";><text
> x="130" y="385" style="fill:purple; fill-opacity:1">NCBI Arabidopsis
> Genome </text></a>
> 
> </svg>
> 
>  I saved the Notepad file with .svg extension. Now, when i open the
> file with Internet Explorer, it works well. The code executes
> properly. But when i try to open it with Firefox 2, it doesn't work. A
> window opens and asks "What should Firefox do with this file?" Open
> with ... (IE (default) or other ) or Save to disk...
> Could anyone suggest how to fix the problem? 
> 
> thanks





-----
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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> 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/
 

Reply via email to