Blogspot 在侧面板中添加带有链接的图像
我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这个想法是绝对正确的。只需将“添加 http”更改为您的地址,博主将停止尝试在您的博客中查看:
这对我有用。
The idea is absolutely correct. Just change add http to your address and blogger will stop trying to look within your blog:
That works for me.
是的,一切都是正确的,但我通常将 target 和 alt 属性与链接一起使用。
alt="_LITTLE_DESCRIPTION_"
当页面出现问题且图片无法加载时显示。target="_blank"
始终在新选项卡中打开链接。这样您就可以让访问者在您的页面上停留更长时间。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.