hypertext in inkscape

Discuss SVG code, accessible via the XML Editor.
Cyg
Posts: 2
Joined: Sun Apr 29, 2012 11:59 pm

hypertext in inkscape

Postby Cyg » Mon Apr 30, 2012 12:08 am

Hi!
Can someone please exlpain to me how I can use hyperlinks in inkscape for my webpages?
Or give me a simple example/tutorial?

I have read http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Web.html, but I didn't understand how I can use it.

Thanks

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: hypertext in inkscape

Postby brynn » Mon Apr 30, 2012 1:05 pm

Image
Welcome to InkscapeForum!

I see that you posted this in SVG/XML forum, which probably means that you want to do this by writing the XML as opposed to using the gui. I actually don't know how to write XML code. But I do know that using the gui automatically writes the XML. And I do know how to insert link using the interface.

I have not read that chapter, but I did once figure out how to insert links. However, my need was for PNGs and once you convert to PNG, the link gets lost. So the content will have to remain as SVG. (The problem with that is that not all browsers can display all SVG images.)

Anyway, just select the object, then right-click > Create Link. Next, right-click again > Link Properties to insert the URL. After that, you have to get the image (with the link.....even if it's text, it's an SVG image) onto a webpage. I have no idea how to do that part. Well that's not entirely true. I know that you use html, or some other webpage code, but I don't know the code.

However, I seriously doubt that's the only way to do it. That's probably a very basic link. I think there are probably other ways to make links, such as with a script, such as javascript. I have no idea about using or writing scripts.

Anyway, this may not help you at all, but for whatever it's worth :D

Cyg
Posts: 2
Joined: Sun Apr 29, 2012 11:59 pm

Re: hypertext in inkscape

Postby Cyg » Mon Apr 30, 2012 10:25 pm

>Anyway, just select the object, then right-click > Create Link. Next, right-click again > Link Properties to >insert the URL. After that, you have to get the image (with the link.....even if it's text, it's an SVG image) >onto a webpage. I have no idea how to do that part. Well that's not entirely true. I know that you use html, >or some other webpage code, but I don't know the code.

Uhm, thank you... that is exactly my question: how do I do THAT part ^^
I know how to create an image-map for png's, but I want use svg-files to do that tedious work for me :-)

So again: I have an svg-file with URLs implemented in several objects - how can I make the links function on my website? Can someone give me a code example (javascript or whatever) that I can re-use? I simply didn't understand the example from the inkscape tutorial.

thanks!
:-)


Return to “SVG / XML Code”