more info www.naraicoms.com
From: REH Wolfgang <[EMAIL PROTECTED]> Reply-To: "Batik Users" <[EMAIL PROTECTED]> To: 'Batik Users' <[EMAIL PROTECTED]> Subject: AW: Custom cursor Date: Thu, 22 Jan 2004 15:17:14 +0100
-----Urspr�ngliche Nachricht----- Von: Thomas DeWeese [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 22. J�nner 2004 14:22 An: Batik Users Betreff: Re: Custom cursor
REH Wolfgang wrote:
> > I am trying to assign a custom cursor to an element. If I load a SVG > file like: > > <g style="cursor:url(#magglass)">
> this always results in an error. Batik (I'm using version 1.5) > complains > about an 'invalid CSS declaration'. But as far as I can see the style > attribute for the <g>-element is correct. Opening the file with > squiggle shows:
If you read the SVG specification closely it _requires_ that the cursor property end with one of the 'identifier' cursors. So your specification needs to be something like:
style="cursor:url(#magglass),crosshair"
Sorry, I missed that point. The line you suggested works fine.
Thanks for the fast reply, Wolfgang Reh
> org.w3c.dom.DOMException: file:/D:/Documents/SVG/CursorTest.svg:
> The attribute "style" represents an invalid CSS declaration
> ("cursor:url(#magglass)").
> Original message:
> A malformed value was assigned to a "cursor" property.
> at org.apache.batik.css.engine.CSSEngine.getCascadedStyleMap(Unknown
> Source)
> at org.apache.batik.css.engine.CSSEngine.getComputedStyle(Unknown
> Source)
> at org.apache.batik.bridge.CSSUtilities.getComputedStyle(Unknown
> Source)
> at org.apache.batik.bridge.CSSUtilities.convertDisplay(Unknown Source)
> at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
> at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
> at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
> at org.apache.batik.swing.svg.GVTTreeBuilder.run(Unknown Source)
>
>
> Regards
> Wolfgang Reh
>
>
>
> * Wolfgang Reh
>
> *Scheydgasse 41
> 1210 Wien
>
> mailto:[EMAIL PROTECTED]
>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
