|
|
|
@ -362,12 +362,14 @@ function df(myself) {
|
|
|
|
|
var sstr = "";
|
|
|
|
|
$(img).each(function (i) {
|
|
|
|
|
var that = $(this);
|
|
|
|
|
if (that.attr("src").indexOf("http://") >= 0 || that.attr("src").indexOf("https://") >= 0) {
|
|
|
|
|
piccount++;
|
|
|
|
|
if (i == $(img).length - 1)
|
|
|
|
|
sstr += that.attr("src");
|
|
|
|
|
else
|
|
|
|
|
sstr += that.attr("src") + "|";
|
|
|
|
|
if(that.attr("src")) {
|
|
|
|
|
if (that.attr("src").indexOf("http://") >= 0 || that.attr("src").indexOf("https://") >= 0) {
|
|
|
|
|
piccount++;
|
|
|
|
|
if (i == $(img).length - 1)
|
|
|
|
|
sstr += that.attr("src");
|
|
|
|
|
else
|
|
|
|
|
sstr += that.attr("src") + "|";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
uploadpic(sstr,myself);
|
|
|
|
@ -409,12 +411,18 @@ function uploadpic(piclist,myself) {
|
|
|
|
|
var tIndex = 0;
|
|
|
|
|
$(img).each(function (i) {
|
|
|
|
|
var that = $(this);
|
|
|
|
|
if (that.attr("src").indexOf("http://") >= 0 || that.attr("src").indexOf("https://") >= 0) {
|
|
|
|
|
that.attr("src", str[tIndex]);
|
|
|
|
|
that.attr("data-ke-src", str[tIndex]);
|
|
|
|
|
that.parent().attr("href", str[tIndex]);
|
|
|
|
|
that.parent().attr("data-ke-src", str[tIndex]);
|
|
|
|
|
tIndex = tIndex + 1;
|
|
|
|
|
if(that.attr("src")){
|
|
|
|
|
if (that.attr("src").indexOf("http://") >= 0 || that.attr("src").indexOf("https://") >= 0) {
|
|
|
|
|
that.attr("src", str[tIndex]);
|
|
|
|
|
that.attr("data-ke-src", str[tIndex]);
|
|
|
|
|
|
|
|
|
|
//非视频
|
|
|
|
|
if(!(that.parent().attr("class") && that.parent().attr("class") == "mediaIcobox" )) {
|
|
|
|
|
that.parent().attr("href", str[tIndex]);
|
|
|
|
|
that.parent().attr("data-ke-src", str[tIndex]);
|
|
|
|
|
}
|
|
|
|
|
tIndex = tIndex + 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|