开发者

is there anyway to dynamically create an image with embedded hyperlinks

开发者 https://www.devze.com 2022-12-16 05:29 出处:网络
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 y

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

精彩评论

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