A
A
Alexander Kryukov2021-01-20 13:55:38
JavaScript
Alexander Kryukov, 2021-01-20 13:55:38

How to fix JavaScript when moving ucoz site to https?

Hello. Wrote in support of ucoz and received a response from which did not feel better.

Question:

When the ucoz site moved to https, pop-up images on links stopped working. Replaced http with https where I could, didn't help. An empty block appears. Tell me which way to dig? Thank you.
Examples of problematic pages:
https://u.to/q-3nGg
https://u.to/rP3nGg

Answer:

top64, the problem is in the load.js script, as it doesn't properly describe image loading. Contact the author of the script to correct errors, or contact third-party developers.

There are no contacts with the author, but the script is here:

$(document).ready(function(e) {
$("#load_message a").live({
mouseenter:
function()
{
if($(this).attr('href').indexOf("publ/") != -1)
$(this).prepend("<div class='ajaxdiv'></div>")
$(this).find(".ajaxdiv").fadeIn("fast")
var kartinka = $(this).attr('href') + "?isu #for_script"
$(this).find(".ajaxdiv").load(kartinka);
},
mouseleave:
function()
{
$(this).find(".ajaxdiv").fadeOut("fast");
$(this).find(".ajaxdiv").remove();
}
}
);
};);


Maybe someone will help. Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question