을 적용하는 데 도움이되지만 몇 가지 도움이 필요합니다는, 내가 이전 포스트에서 다음의 발견 이전 게시물
// For VML detection, here's what google maps does (search for "function Xd"):
function supportsVml() {
if (typeof supportsVml.supported == "undefined") {
var a = document.body.appendChild(document.createElement('div'));
a.innerHTML = '<v:shape id="vml_flag1" adj="1" />';
var b = a.firstChild;
b.style.behavior = "url(#default#VML)";
supportsVml.supported = b ? typeof b.adj == "object": true;
a.parentNode.removeChild(a);
}
return supportsVml.supported;
}
내가 다른 페이지 때 사용자를 전환하는 코드를 사용하고 싶습니다를 VML은 지원되지 않습니다. alternative.html이라는 페이지로 전환하는 코드를 작성하고 구현하는 방법을 보여줄 수 있습니까?
자바 스크립트에 대한 지식이 있지만이 수준이 아닙니다.
감사합니다.
감사합니다. 빠른 응답을 얻은 Andy에게 감사드립니다. 작동에 어려움을 겪고 있습니다. 외부 Google 파일에 Google 코드 및 다음 게시물을 게시하는 경우 : function redirectNoVml (if (! supportsVml()) { window.location = "../no-vml.htm"; } } 내 html 페이지의 머리 부분에 redirectNoVml()을 호출하면 이 작업을 수행 하시겠습니까? 감사합니다. – martin
IE에 다음 오류가 표시됩니다. 메시지 : 'document.body'가 null이거나 개체가 아닙니다. – martin
안녕하세요. '
' 태그가 아직로드를 완료하지 않아이 오류가 발생합니다. body 태그 뒤에 또는 onload 이벤트에 스크립트를 추가해야합니다. –