LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-24-2008, 05:01 AM   #1
cyb0rg777
Member
 
Registered: Dec 2004
Location: ~
Distribution: Debian
Posts: 143
Blog Entries: 8

Rep: Reputation: 15
svg link to fragments


I'm trying to put text inside an svg document that will not show until you click a link.If I use the <use> element it works like this:

Code:
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" >
<defs>

<text id="test" x="0" y="10" style="font-size:12px;font-style:normal;font-weight:normal;fill:#0000f0;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"  xml:space="preserve"> a lot of text</text>

</defs>

<use id="a0" xlink:href="#test" ><text x="188" y="131" style="font-size:12px;font-style:normal;font-weight:normal;fill:#0000f0;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" id="text0" xml:space="preserve">test</text>
</use>

</svg>

But I was thinking I could just change the "use" to "a" to create a link to the fragment,so the text will not show until I click it. I must be wrong about that because I sure have wasted enough time trying.

Does anyone know how I can do this? I would prefer to do it without javascript.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OSS not allowing small fragments linuxmandrake Linux - Software 0 06-03-2007 04:11 PM
.svg icons bjb_nyj101 Linux - Software 1 05-02-2007 04:26 PM
cant use svg icons iwen Slackware 12 05-01-2005 11:01 PM
what is svg really? ZaphyR Linux - General 2 01-10-2005 02:09 PM
SVG with firefox devinWhalen Linux - Software 1 04-20-2004 10:52 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration