<HTML>
<HEAD>
<TITLE>Re: [Seaside] [2.6]Images and anchors</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana"><SPAN STYLE='font-size:12.0px'>Hi Carl,<BR>
<BR>
I’ve found some solutions for this. The first is for relative paths. And the second for an absolute path for the image:<BR>
<BR>
Html anchorWithUrl: ‘<a href="http://www.amazon.com¹">http://www.amazon.com’</a> do: [html image: ‘/cartoon.jpg’]<BR>
<BR>
Html anchorWithUrl: ‘<a href="http://www.amazon.com¹">http://www.amazon.com’</a> do: [html image: ‘<a href="http://www.foo.com/cartoon.jpg¹]">http://www.foo.com/cartoon.jpg’]</a><BR>
<BR>
To get the image to serve relative paths I use the slug of code at the beginning of the David Shaffer tutorial that allows me to put images in a folder called FileRoot. <BR>
<BR>
Anyway, that’s my solution. I’d be happy to told that there’s a better way by someone on this list. <BR>
<BR>
Chris <BR>
<BR>
<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><SPAN STYLE='font-size:12.0px'><FONT FACE="Arial">What's the easiest way to use an image for an anchor? Is there a simple way to include an image spec like so between the start and end tags without subclassing or modifying what's there? I've poked around but nothing jumped out at me.<BR>
</FONT><FONT FACE="Verdana"> <BR>
</FONT><FONT FACE="Arial"> <a blah blah><img src="image.gif"></a><BR>
</FONT><FONT FACE="Verdana"> <BR>
</FONT><FONT FACE="Arial">-Carl Gundel<BR>
<a href="http://www.runbasic.com">http://www.runbasic.com</a><BR>
</FONT><FONT FACE="Verdana"><BR>
</FONT></SPAN></BLOCKQUOTE>
</BODY>
</HTML>