开发者

is there anyway to dynamically create an image with embedded hyperlinks

i am created images on the fly in my controller (bitmaps, pngs, gif) and sending them down 开发者_如何学Cto the view. Is there anyway to embed hyperlinks into an image ?


Html ImageMaps is the closest you can get.


No, there is no way to embed hyperlinks into images.


Can't you just wrap the image with an anchor?

<a href="/controller/action/123">
    <img src="/controller/dynamicimage/123" alt="" />
</a>

A html helper method extension might be useful here to generate previous markup.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜