묻고답하기
[플래쉬] 팝업 올리는 법 알려주세요.
2007.10.10 18:38
안녕하세요,
기존 팝업 창에서 불러오던 이미지를 플래쉬 파일로 변경하려고 합니다.
이미지 삽입 부분을 플래쉬 파일로 변경하였는데, 'HTTP404 찾을 수 없습니다' 라고 뜨면서 파일을 못 불러옵니다.
무엇을 수정해야 하나요? 며칠 째 이것저것 해보고 있는데...방법을 못 찾겠네요..
1. index.php의 <head> 내용
<?
session_start();
?>
<html>
<head>
<title>pictionary.co.kr</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link href="/style/style.css" rel="stylesheet" type="text/css">
<script src="/js/showactivex.js" type="text/javascript"></script>
<SCRIPT language="JavaScript">
function cookieVal(cookieName)
{
thisCookie = document.cookie.split("; ");
for(i=0; i<thisCookie.length; i++)
{
if(cookieName == thisCookie[i].split("=")[0])
{
return thisCookie[i].split("=")[1];
}
}
return "x";
}
if (cookieVal("eventpop") != "1"){
window.open("book.html","eventpop","scrollbars=no,resizable=yes,left=20, top=20, width=550, height=420");
}
</SCRIPT>
</head>
2. 팝업창 내용. book.html
<html>
<head>
<title>pictionary.co.kr</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<SCRIPT language="JavaScript">
<!--
function setCookie(name, value, expiredays)
{
var todayDate = new Date();
todayDate.setDate(todayDate.getDate() + expiredays);
document.cookie = name + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function closeWin()
{
setCookie( "eventpop", "1" , 1);
self.close();
}
//-->
</SCRIPT>
<style>
td{font-family:굴림,굴림체; font-size:12px; font-style: normal; line-height: 120%; color: #474747;}
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="550" height="420" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div id="bookfla" style="display: none;">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="550" height="400">
<param name="movie" value="../media/book.swf">
<param name="quality" value="high">
<embed src="../media/book.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="400"></embed>
</object></div><script type="text/javascript">ShowActiveX("bookfla"); </script></td>
</tr>
<tr>
<td height="20" align="center" style="background-image:url(images/etc/popup_050428_back.gif); background-repeat:no-repeat;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<form>
<tr>
<td align="center"><input type="checkbox" name="eventpop" onClick="javascript:closeWin();"><FONT COLOR="666666">오늘은 그만 볼게요^^</FONT> </td>
</tr>
</form>
</table></td>
</tr>
</table>
</body>
</html>
1)
index.php 파일에서 popup_03.html 파일을불러오네요
팝업파일로 수정하세요
2)
book.html 파일에
<script src="js/showactivex.js" type="text/javascript"></script>
소스가 빠져 있습니다
<html>
<head>
<title>pictionary.co.kr</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script src="js/showactivex.js" type="text/javascript"></script>