博客代码数据:post.Url用作带有图像按钮的可点击链接
Blogger code data:post.url used as clickable link with an image button
我的网站是logjik.com。我在帖子中有两个社交按钮,它们也显示在我的主页上,我使用了这个解决方案,因为即使我在主页上,我也可以分享我的帖子链接(类似于9gag是我的主页):
.shr-btn-scl .twitterbtn{background-image:url(http://i.imgur.com/waBaJl0.png); display:block; background-repeat:no-repeat;
height:42px;
width:185px;}
.shr-btn-scl .facebookbtn{background-image:url(http://i.imgur.com/XNIyP7z.png);display:block;
height:42px;
width:185px; background-repeat:no-repeat;
}
<div class='shr-btn-scl'>
<div class='btncontainer'>
<ul class='share-story'>
<li><a class='facebookbtn' data-title='Facebook' expr:href='"http://www.facebook.com/sharer.php?u=" + data:post.url + "&title="+ data:post.title' onclick='window.open(this.href, 'windowName', 'width=550, height=600, left=24, top=24, scrollbars, resizable'); return false;' rel='nofollow'/>
</li>
<li>
<a class='twitterbtn' data-title='Twitter' expr:href='"http://twitter.com/share?url=" + data:post.url + "&title=" + data:post.title' onclick='window.open(this.href, 'windowName', 'width=550, height=600, left=24, top=24, scrollbars, resizable'); return false;' rel='nofollow'/>
</li>
</ul>
</div>
</div>
和我想添加第三个按钮只是与一个可点击的图像发送我从主页到帖子点击。是否有一种使用数据的方法:post。Url链接与可点击的图像?我如何使这段代码工作:
`<a href="data:post.url" title=""><img border="0" src="http://i.imgur.com/ivHxNCj.jpg"/></a>`
我找到了一些可能对你有帮助的东西。
我以为你说的是Blogger模板。如果是这样,应该可以工作:
<a expr:href="data:post.url" title=""><img border="0" src="http://i.imgur.com/ivHxNCj.jpg"/></a>
相关文章:
- 如何使按钮图像在单击时添加到变量中
- HTML滚动按钮图像:如何使用Internet Explorer
- jquery ui按钮图像没有更改
- 如何检测长按按钮/图像
- 使用 Jquery 的单选按钮图像
- 如何在 jqgrid 中添加新的按钮/图像列
- Javascript,切换具有相同名称的单选按钮图像
- 我怎样才能使这个切换的javascript按钮(图像)不那么笨拙
- w2ui-单击时工具栏更改按钮图像
- Jquery在ajax上设置onclick null并更改按钮图像成功
- 如何更改HTML5音频中的播放/按钮图像
- 日期选择器按钮图像未显示
- jQuery是否验证冲突提交函数,而不是表单按钮(图像/超链接)
- 我需要添加一个图像数组,可以使用JavaScript更改按钮图像或数字条目
- 在firefox中创建自定义按钮(使用自定义按钮插件)不允许我调整按钮图像的大小
- 更改按钮图像onclick
- Angular JS知道什么是用复选框图像和单选按钮图像触发的
- 用按钮图像填充表单文本字段
- javascript表单提交更改提交按钮图像
- 从内联css和JavaScript点击更改按钮图像