음 :
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
링크 : 여기
은 Dreamweaver에서 생성 된 코드입니다. 유효한 HTML이기도합니다.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Test popup</title>
</head>
<body>
<script type="text/javascript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<p>the link:
<img src="notice.png"
alt="Google"
width="241" height="200"
style="border: 0;"
onclick="MM_openBrWindow('http://www.google.com','google','scrollbars=yes,width=650,height=500')">
</body>
</html>
그리고 이것이 더 나은 :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Test popup</title>
</head>
<body>
<script type="text/javascript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<p>the link:
<a href="http://www.google.com" onclick="MM_openBrWindow('http://www.google.com','google','scrollbars=yes,width=650,height=500'); return false;">
<img src="notice.png"
alt="Google"
width="241" height="200"
style="border: 0;"></a>
</body>
</html>
(a)는 링크가 있기 때문에 마우스의 "손"아이콘이 표시됩니다 그래서, 더 나은; (b) 링크가 실제로 어딘가에 들어가기 때문에 자바 스크립트가 해제 된 사람들은 여전히 콘텐츠에 접근 할 수 있습니다. ("onclick"속성의 "return false"속성은 자바 스크립트가 켜져있는 사람들 만 팝업 링크를 얻음을 의미합니다. "false"는 정상 링크 다음에 브라우저를 중지시킵니다.)
실제 html/js 출력은 다음과 같습니다. 드림위버? 이미지를 클릭하면 어떻게됩니까? –
아무 것도 없다. 나를 클릭하지 않을 것이다. – user208987
동의 함. 우리는 누군가가 진단하기 전에 실제 HTML과 자바 스크립트를 봐야 할 것입니다. –