Hello, I would like your help please
I have created a code in which you are taking the first picture of the messages and displays the topics_blog_box, for example see here
http://www.thegreeksenergy.com/f40-forum
I'd like the same code to add to displays the images from the video of Youtube after several attempts do not succeed.
Thank you!
I have created a code in which you are taking the first picture of the messages and displays the topics_blog_box, for example see here
http://www.thegreeksenergy.com/f40-forum
I'd like the same code to add to displays the images from the video of Youtube after several attempts do not succeed.
- Code:
$(".blog_message").each(function () {
if ($(this).find("img").length) {
img_logsee = "";
$(this).find("img").each(function () {
if ($(this).attr("src").search("smiles") == -1) {
img_logsee = $(this).attr("src");
return false
} else {
if (img_logsee == "") {
img_logsee = "http://i17.servimg.com/u/f17/17/06/15/51/no_ima10.jpg"
}
}
})
} else {
img_logsee = "http://i17.servimg.com/u/f17/17/06/15/51/no_ima10.jpg"
}
$(this).text($(this).text());
$('<img src="' + img_logsee + '" class="img_logsee" />').prependTo(this)
});
Thank you!