Blogspot 在侧面板中添加带有链接的图像

发布于 2024-09-27 03:11:43 字数 343 浏览 0 评论 0原文

我在 blogspot 上有一个博客,我想在右侧面板中添加带有链接的图像。当访问者点击它时,它将打开该链接。

例如,假设我添加了“纽约时报”的徽标,用户单击它并打开纽约时报页面。

编辑:我尝试了小工具添加 JavaScript/Html 代码,我输入了此代码

   <a href="www.nytimes.com" >
   <img src="logo.png" height="15" width="80" />
   </a>

,但它尝试链接到 myblogXXX.blogspot.com/www.nytimes.com 谢谢

I have a blog in blogspot and I would like to add in my right panel an image with a link. When the visitor clicks on it it will open that link.

For example, let say I add the logo of "NYTimes" and the user clicks on it and the nytimes page opens.

Edit: I tried the Gadget Add JavaScript/Html code and I put this

   <a href="www.nytimes.com" >
   <img src="logo.png" height="15" width="80" />
   </a>

but it try to link to myblogXXX.blogspot.com/www.nytimes.com
Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

樱花坊 2024-10-04 03:11:43

这个想法是绝对正确的。只需将“添加 http”更改为您的地址,博主将停止尝试在您的博客中查看:

<a href="http://www.nytimes.com" >
<img src="logo.png" height="15" width="80" />
</a>

这对我有用。

The idea is absolutely correct. Just change add http to your address and blogger will stop trying to look within your blog:

<a href="http://www.nytimes.com" >
<img src="logo.png" height="15" width="80" />
</a>

That works for me.

走过海棠暮 2024-10-04 03:11:43

是的,一切都是正确的,但我通常将 targetalt 属性与链接一起使用。

alt="_LITTLE_DESCRIPTION_" 当页面出现问题且图片无法加载时显示。

target="_blank" 始终在新选项卡中打开链接。这样您就可以让访问者在您的页面上停留更长时间。

<a href="_YOUR_LINK_"><img style="border:0;" src="_YOUR_PICTURE_LINK_" alt="_LITTLE_DESCRIPTION_" target="_blank" height="15" width="80"/></a>

Yes all is correct but I usually use target and alt attributes with link.

alt="_LITTLE_DESCRIPTION_" Shows up when something wrong and picture don't load in page.

target="_blank" Always open links in new tab. So you can keep visitors in your page longer.

<a href="_YOUR_LINK_"><img style="border:0;" src="_YOUR_PICTURE_LINK_" alt="_LITTLE_DESCRIPTION_" target="_blank" height="15" width="80"/></a>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文