▣ 다음 카페 테스트 주소 : http://cafe.daum.net/realinline

▣ 다음 카페 주인백 페이지에 아래 스크립트 삽입.

- 아래 소스가 아닌 메타태그나 location.href 등을 사용시 무한루프에 빠짐

<script>
<!--  
// 자신의 계정 주소로 바꾸세요.
// 반드시 정확히 할것 괜히 잘못쓰면 수정하기 곤란해짐(바로 이동이 되기 때문에 주인백 페이지 열기 힘듬)
var myURL="http://oxtag.com/html/ex/daumcafe/cafe.html";

var msg=
"\n웹 브라우저가 쿠키를 허용하지 않도록 설정되어 있습니다."+
"\n\n웹 브라우저 메뉴의"+
"\n\n도구 >> 인터넷옵션 >> 보안 >> 사용자지정 >> 쿠키설정항목을 찾아서 쿠키를 허용으로 합니다."+
"\n\n또는 도구 >> 인터넷옵션 >> 개인정보 >> 슬라이드를 낮음으로 합니다."+
"\n\n또는 도구 >> 인터넷옵션 >> 개인정보 >> 편집에서 쿠키를 허용하는 사이트로 등록해 줍니다."+
"\n\n쿠키가 허용되지 않으면 연주기 설정이 되지 않습니다."+
"\n쿠키설정을 허용으로 바꾼 후 새로고침을 눌러 주십시오.";

var cookname="installed=";
var idx = document.cookie.indexOf(cookname);
if (idx == -1){
var today = new Date();
var term = new Date(today.getTime()+20*1000);
document.cookie=cookname+"yes; expires="+term.toGMTString();
idx = document.cookie.indexOf(cookname);
if (idx != -1)window.open(myURL,"_top");
else alert(msg);
}
//-->
</script>



▣ cafe.html 내용 수정

- 다른거 수정 하지 마시고 main.html과 bgm.html 경로만 수정!!

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title> 다음카페 BGM 삽입하기 - 카멜롯™의 소스천국 태그피아 </title>
</head>
<frameset rows="*, 21" cols="1*" border="0">
<frame name="top" scrolling="auto" marginwidth="0" marginheight="0" name=One src="http://oxtag.com/html/ex/daumcafe/main.html" noresize>
<frame name="bottom" scrolling="no" marginwidth="0" marginheight="0" src="http://oxtag.com/html/ex/SBP/bgm.html" name=Three noresize>
<noframes>
<body>
<p>
</body>
</noframes>
</frameset>
</html>


▣ main.html 내용 수정

- 첫 화면에 나타날 게시판 주소를 아이프레임에 삽입.
- 그냥 http://cafe.daum.net/realinline 이렇게 삽입하면 스크롤바가 두개가 나타남.
- 반드시 게시판 주소로 넣을것!!
- 알리미는 알아서 삽입.

<HTML>
<HEAD>
<title> 다음카페 BGM 삽입하기 - 카멜롯™의 소스천국 태그피아 </title>

</head>
<body>

<iframe name="main" scrolling="no" frameborder="0" style="width:100%;height:30000;" src="http://cafe75.daum.net/_c21_/bbs_list?grpid=KZcy&fldid=3mVR"></iframe>

<div id="layer1" style="position:absolute; left:2px; top:660px; width:0px; height:0px; z-index:1; border-width:1px; border-style:none;">
<iframe width=183 height=285 src='http://oxtag.com/html/ex/alimi.html' frameborder=0 scrolling=no></iframe>
</div>

</body>
</html>
Posted by 알 수 없는 사용자
,