Javascript IE不从js加载图像
我的问题仅在IE中显示,并且仅当我第一次连接时,当我刷新页面时,图像才会显示!!! 我的页面是用jQuery脚本在顶部构建的,之后是htmlJavascript IE不从js加载图像,javascript,jquery,html,internet-explorer,Javascript,Jquery,Html,Internet Explorer,我的问题仅在IE中显示,并且仅当我第一次连接时,当我刷新页面时,图像才会显示!!! 我的页面是用jQuery脚本在顶部构建的,之后是html <div id="statusbar" > <img class="statusbar_phone" /> <img class="statusbar_text" /> <img class="arrow" style="display:none"
<div id="statusbar" >
<img class="statusbar_phone" />
<img class="statusbar_text" />
<img class="arrow" style="display:none" src="//expertsimages.liveperson.com/images/phonewidget/arrow_up.png" />
</div>
任何建议:你能为此创建一个提琴吗?图像源属性中的“//”是什么意思?@reporter,这样你就不需要http://或https://... 它将以与当前相同的协议继续@免费的谢谢。我以前从未见过它。/expertsimages.liveperson.com/images/phonewidget/txt\u notavailable.png/symbol用于一次,\n用于两次。
function InitExpertStatus() {
service.GetExpertStatus(function (data) {
$('.arrow').show();
switch (data) {
case "online":
{
SetStatusAvailable(true);
InitPhonNumbers();
break;
}
case "offline":
{
SetStatusAvailable(false);
InitPhonNumbers(data);
break;
}
case "busy":
{
$('.phone_status').text("You are busy.");
$('.set_numbers').text("You can only switch phone numbers when you're not busy. Please try after your chat or phone session is over.");
$('.set_numbers').css('color', '#FF7E00');
$(".statusbar_phone").attr("src", "//expertsimages.liveperson.com/images/phonewidget/phone_red.png");
$(".statusbar_text").attr("src", "//expertsimages.liveperson.com/images/phonewidget/txt_busy.png");
$("#phoneIDMessage").hide();
HideNumbers();
break;
}
case "blocked":
{
HideNumbers();
$('.set_numbers').hide();
$('#editNumbersLink').hide();
$('#contactUs').show();
$('.phone_status').text("Your account has been blocked.");
$('.phone_status').css('color', '#FF0000');
SetStatusAvailable(false);
break;
}
default:
}
});
}
function SetStatusAvailable(isAvailables) {
if (isAvailables) {
$(".statusbar_phone").attr("src", "//expertsimages.liveperson.com/images/phonewidget/phone_blue.png");
$(".statusbar_text").attr("src", "//expertsimages.liveperson.com/images/phonewidget/txt_available.png");
$("#phoneIDMessage").show();
}
else {
$(".statusbar_phone").attr("src", "//expertsimages.liveperson.com/images/phonewidget/phone_red.png");
$(".statusbar_text").attr("src", "//expertsimages.liveperson.com/images/phonewidget/txt_notavailable.png");
$("#phoneIDMessage").hide();
}
$('#contactUs').hide();
}