我想用jQuery模仿行为,你可以在这里看到:http: //edo.webmaster.am/
只需看右下角,向下滚动一下,您就会看到"返回顶部"按钮.
因此,在您向下滚动页面然后显示(动画)之前,它是不可见的.
我怎么能在jQuery中做到这一点?
我已经尝试解除了点击事件的绑定,但它有时会发射两次,有时是5次!! 现在有点厌倦了!
代码来自 modal.asp
$("input[name=add_associate]").live("click",function(){
var addassociateID = $(this).attr("id")
$.ajax({
type: 'POST',
url: '/data/watchlist_save.asp',
data: {m : 'share_watchlist_add', watchListID : <%=WatchListID%>, a : addassociateID},
async:true,
success: function(data) {
$(".associate_users").load("/data/sub_watch_members.asp?watchListID=<%=WatchListID%>",
{cache:false},function() {
$(".search_note").html(data)
$(this).unbind('click').bind('click',handler);
})
},
error: function(data){
$(".search_note").html(data)
}
});
})
Run Code Online (Sandbox Code Playgroud)
更新:
基本上我调用以下代码.associate_users
<div id="associate_list">
<div class="associate_record">
<div class="left" style="padding:8px;"><img src="../imgs/nopic-m.png" style="width:30px;height:30px;" class="img_border" /></div>
<div class="left" style="padding-top:15px;">5)Neil Burton</div>
<div class="right" style="padding-top:10px;margin-right:5px;"><input type="button" class="btn-blue" name="add_associate" id="890" value="Add"></div>
<div style="clear:both;"></div>
</div>
<div style="clear:both;"></div>
</div>
Run Code Online (Sandbox Code Playgroud)
更多信息:
这只发生在我触发事件时,关闭模态对话框然后用不同的方法重新打开它watchListID
数据结构:
我对这里的错误感到困惑......
<script language="javascript" runat="server">
function GMTNow(){return new Date().toGMTString()}
</script>
<%
Const AWS_BUCKETNAME = "uk-bucketname"
Const AWS_ACCESSKEY = "GOES HERE"
Const AWS_SECRETKEY = "SECRET"
LocalFile = Server.Mappath("/test.jpg")
Dim sRemoteFilePath
sRemoteFilePath = "/files/test.jpg" 'Remote Path, note that AWS paths (in fact they aren't real paths) are strictly case sensitive
Dim strNow
strNow = GMTNow() ' GMT Date String
Dim StringToSign
StringToSign = Replace("PUT\n\nimage/jpeg\n\nx-amz-date:" & strNow & "\n/"& AWS_BUCKETNAME & sRemoteFilePath, "\n", vbLf)
Dim Signature
Signature = BytesToBase64(HMACSHA1(AWS_SECRETKEY, StringToSign))
Dim Authorization
Authorization = …Run Code Online (Sandbox Code Playgroud) 所以我有一个图像占位符,我想在DIV大于70px宽度或高度的元素中加载HTML中的第一个图像.然后提供下一个和上一个链接以加载大于70px的下一个图像.
我知道jQuery有一个next&prev选择器,但我不确定如何将它与下一个和上一个链接联系起来或指定一个图像大小.
这是我在Jsonlint进行验证的本地Json。
{
"messages": {
"count": "0",
"items": [
{
"MessageID": "1",
"Starred": 0,
"BodyPrev": "You wouldn't believe what has just happenedYou wouldn't believe what has ",
"FromUserID": "1",
"FromName": "Daisy Purdye",
"FromUN": "daisypurdye",
"Subject": "Yeayeah",
"Body": "You wouldn't believe what has just happenedYou wouldn't believe what has just happenedYou wouldn't believe what has just happenedYou wouldn't believe what has just happenedYou wouldn't believe what has just happenedYou wouldn't believe what has just happened",
"Ctime": "10/4/2012",
"isRead": "1"
},
{
"MessageID": …Run Code Online (Sandbox Code Playgroud)