在函数中运行skype javascript
因此,我试图以这样一种方式执行它,即skype按钮只有在从我的html页面调用此函数后才可见。 函数setContentmap{在函数中运行skype javascript,javascript,html,skype,Javascript,Html,Skype,因此,我试图以这样一种方式执行它,即skype按钮只有在从我的html页面调用此函数后才可见。 函数setContentmap{ var contentString = /*'<div id="content">'+ '<div id="siteNotice">'+ '</div>'+ '<h1 id="firstHeading" class="firstHeading">Uluru</
var contentString = /*'<div id="content">'+
'<div id="siteNotice">'+
'</div>'+
'<h1 id="firstHeading" class="firstHeading">Uluru</h1>'+
'<div id="bodyContent">'+
'<p><b>Uluru</b>, also referred to as <b>Ayers Rock</b>, is a large ' +
'sandstone rock formation in the southern part of the '+
'Northern Territory, central Australia. It lies 335 km (208 mi) '+
'south west of the nearest large town, Alice Springs; 450 km '+
'(280 mi) by road. Kata Tjuta and Uluru are the two major '+
'features of the Uluru - Kata Tjuta National Park. Uluru is '+
'sacred to the Pitjantjatjara and Yankunytjatjara, the '+
'Aboriginal people of the area. It has many springs, waterholes, '+
'rock caves and ancient paintings. Uluru is listed as a World '+
'Heritage Site.</p>'+
'<p>Attribution: Uluru, <a href="https://en.wikipedia.org/w/index.php?title=Uluru&oldid=297882194">'+
'https://en.wikipedia.org/w/index.php?title=Uluru</a> '+
'(last visited June 22, 2009).</p>'+ */
'<div id="SkypeButton_Call_Dominic_Martin123_1">'+
' <script type="text/javascript">' +
' Skype.ui({ '+
' "name": "dropdown",'+
' "element": "SkypeButton_Call_Dominic_Martin123_1",'+
'"participants": ["Dominic_Martin123"],'+
' "imageSize": 24'+
'});'+
'</script>'+
'</div>'+
'</div>'+
'</div>';
var infowindow = new google.maps.InfoWindow({
content: contentString
});
var marker = new google.maps.Marker({
position: {lat: 51.376537, lng: -2.327279},
map: map,
title: 'Uluru (Ayers Rock)'
});
marker.addListener('click', function() {
infowindow.open(map, marker);
});
}
我一直收到一个“EOF”错误,我也觉得我没有在这里做任何事情。skype javascript似乎足够基本,我的页面布局足够正确,可以在没有它的情况下正常工作。我如何才能正确实现这一点?我想这是一个在代码中嵌入它的情况?您介意格式化您的代码吗t、 。为什么我不能编辑此代码?此代码是否存在于外部JS文件中,还是处于内联状态?将+替换为+并查看它是否有效。