2009-09-28 5 views
0

다른 창에서 창을 열려고하면 찾을 수 없습니다.jquery.windows-engine - 다른 창에서 창 열기 시도 중

jQuery를 - 윈도우 - 엔진 - 플러그인

감사합니다! 이 라이브러리 (js.windows 엔진)를 사용하는 사람들을위한

<html> 
<head> 
<title>Test</title> 

<link type="text/css" rel="stylesheet" href="jquery.windows-engine.css" /> 
<script type="text/javascript" src="jquery.js"></script> 
<script type="text/javascript" src="jquery.windows-engine.js"></script> 
<script type="text/javascript"> 

$(document).ready(function() { 
$("#menu").newWindow({ 
    windowTitle:"menu", 
    content: "<ahref='#' id='example2' >Example 2</a>   Here", 
    width:160,height:230,posx:10,posy:120, 
}); 
$("#example2").newWindow({ 
    windowTitle:"Example1", 
    content: "example2", 
    posx:200,posy:100, 
    resizeable:false, maximizeButton:false, 
}); 
}); 
</script> 
</head> 
<body> 
<div> 
<ahref="#" id="menu" >menu</a><br/> 
<ahref="#" id="example2" >Example 2</a><br/> 
</div> 
</body> 
</html> 
+1

와 '꽃다발 : 120,'나는 사람들을 제거하는 것이 좋습니다. –

+1

또한 'ahref', 'a href'에는 공백이 필요합니다. –

답변

0

은 주요 문제는 여기에 객체가 된 div에 생성되지 않도록했지만, 원래 창 자체에. 사용자는이 경우 클릭으로이를 감쌀 필요가 있습니다. 예 :

$("#menu").click(function(){ 
     $.newWindow({ 
      windowTitle:"menu", 
      content: $("#example2").html(), 
      width:160, 
      height:230, 
      posx:10, 
      posy:120, 
     }); 
    }); 

Here is a JS Fiddle with the completed solution

IE는 'maximizeButton : 거짓,'후 가지고있는 여분의 의견을 질식 것