페이지로 접속시 손님에게 "로그인후 청취해주세요 !" 얼럿창 띄우고 싶어요. 정보
페이지로 접속시 손님에게 "로그인후 청취해주세요 !" 얼럿창 띄우고 싶어요.첨부파일
본문
http://ppomzzang.com/music/cast/m4ucast.php
위 주소로 손님이 접속할 경우, "로그인후 청취해주세요 !" 얼럿창을 띄우고 싶습니다.
어떤 소스를 추가하면 되나요?
현재, 위 페이지의 소스는 아래와 같습니다.
<link rel=StyleSheet HREF="style.css" type=text/css title=style>
<table border="0" width="215" height="128" align="center" cellspacing="0" bordercolordark="white" bordercolorlight="black">
<tr>
<td align="center" width="215" height="25" bgcolor="#666666" colspan='3'>
<font color="white"><strong>m4u 캐스트</strong></font></a>
</td>
</tr>
<tr>
<td width="24"></td>
<td width="166" height="103">
<object id="__sayradiowidget" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,22,87" width="166" height="103"><param name="movie" value="http://dl.sayclub.kr/sayclub/sayradio/SayRadioWidgetSmall.swf" /><param name="allowScriptAccess" value="always" /><param name="flashvars" value="playerSize=small&castAddr=http%3A//m4u.saycast.com&autoStart=true" /><param name="wmode" value="transparent" /><embed id="__sayradiowidget" src="http://dl.sayclub.kr/sayclub/sayradio/SayRadioWidgetSmall.swf" width="166" height="103" allowScriptAccess="always" flashvars="playerSize=small&castAddr=http%3A//m4u.saycast.com&autoStart=true" wmode="transparent"></embed></object>
</td>
<td width="25"></td>
</tr>
</table>
위 소스에 아래 소스를 넣어봐도 안됩니다. ㅡㅡ;;
<?
include_once("_common.php");
if ($member[mb_level] < '2') //레벨이 2보다 작다면
alert("권한이 없습니다. 로그인후 이용하세요.. ", "$g4['bbs_path']/login.php?url=$urlencode");
?>
아래 처럼 말이죠..
<?
include_once("_common.php");
if ($member[mb_level] < '2') //레벨이 2보다 작다면
alert("권한이 없습니다. 로그인후 이용하세요.. ", "{$g4['bbs_path']}/login.php?url=$urlencode");
?>
<link rel=StyleSheet HREF="style.css" type=text/css title=style>
<table border="0" width="214" height="128" align="center" cellspacing="0" bordercolordark="white" bordercolorlight="black">
<tr>
<td align="center" width="215" height="25" bgcolor="#666666" colspan='3'>
<font color="white"><strong>m4u 캐스트</strong></font></a>
</td>
</tr>
<tr>
<td width="24"></td>
<td width="166" height="103"><object id="__sayradiowidget" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,22,87" width="166" height="103"><param name="movie" value="http://dl.sayclub.kr/sayclub/sayradio/SayRadioWidgetSmall.swf" /><param name="allowScriptAccess" value="always" /><param name="flashvars" value="playerSize=small&castAddr=http%3A//m4u.saycast.com&autoStart=true" /><param name="wmode" value="transparent" /><embed id="__sayradiowidget" src="http://dl.sayclub.kr/sayclub/sayradio/SayRadioWidgetSmall.swf" width="166" height="103" allowScriptAccess="always" flashvars="playerSize=small&castAddr=http%3A//m4u.saycast.com&autoStart=true" wmode="transparent"></embed></object></td>
<td width="25"></td>
</tr>
</table>
그랬더니...아래와 같은 에러가 출력됩니다.
첨부파일 첫번째는 음악소스만 올린 것이고,
첨부파일 두번째는 음악소스에다가 얼럿창 소스까지 추가한 것입니다.
위 주소로 손님이 접속할 경우, "로그인후 청취해주세요 !" 얼럿창을 띄우고 싶습니다.
어떤 소스를 추가하면 되나요?
현재, 위 페이지의 소스는 아래와 같습니다.
<link rel=StyleSheet HREF="style.css" type=text/css title=style>
<table border="0" width="215" height="128" align="center" cellspacing="0" bordercolordark="white" bordercolorlight="black">
<tr>
<td align="center" width="215" height="25" bgcolor="#666666" colspan='3'>
<font color="white"><strong>m4u 캐스트</strong></font></a>
</td>
</tr>
<tr>
<td width="24"></td>
<td width="166" height="103">
<object id="__sayradiowidget" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,22,87" width="166" height="103"><param name="movie" value="http://dl.sayclub.kr/sayclub/sayradio/SayRadioWidgetSmall.swf" /><param name="allowScriptAccess" value="always" /><param name="flashvars" value="playerSize=small&castAddr=http%3A//m4u.saycast.com&autoStart=true" /><param name="wmode" value="transparent" /><embed id="__sayradiowidget" src="http://dl.sayclub.kr/sayclub/sayradio/SayRadioWidgetSmall.swf" width="166" height="103" allowScriptAccess="always" flashvars="playerSize=small&castAddr=http%3A//m4u.saycast.com&autoStart=true" wmode="transparent"></embed></object>
</td>
<td width="25"></td>
</tr>
</table>
위 소스에 아래 소스를 넣어봐도 안됩니다. ㅡㅡ;;
<?
include_once("_common.php");
if ($member[mb_level] < '2') //레벨이 2보다 작다면
alert("권한이 없습니다. 로그인후 이용하세요.. ", "$g4['bbs_path']/login.php?url=$urlencode");
?>
아래 처럼 말이죠..
<?
include_once("_common.php");
if ($member[mb_level] < '2') //레벨이 2보다 작다면
alert("권한이 없습니다. 로그인후 이용하세요.. ", "{$g4['bbs_path']}/login.php?url=$urlencode");
?>
<link rel=StyleSheet HREF="style.css" type=text/css title=style>
<table border="0" width="214" height="128" align="center" cellspacing="0" bordercolordark="white" bordercolorlight="black">
<tr>
<td align="center" width="215" height="25" bgcolor="#666666" colspan='3'>
<font color="white"><strong>m4u 캐스트</strong></font></a>
</td>
</tr>
<tr>
<td width="24"></td>
<td width="166" height="103"><object id="__sayradiowidget" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,22,87" width="166" height="103"><param name="movie" value="http://dl.sayclub.kr/sayclub/sayradio/SayRadioWidgetSmall.swf" /><param name="allowScriptAccess" value="always" /><param name="flashvars" value="playerSize=small&castAddr=http%3A//m4u.saycast.com&autoStart=true" /><param name="wmode" value="transparent" /><embed id="__sayradiowidget" src="http://dl.sayclub.kr/sayclub/sayradio/SayRadioWidgetSmall.swf" width="166" height="103" allowScriptAccess="always" flashvars="playerSize=small&castAddr=http%3A//m4u.saycast.com&autoStart=true" wmode="transparent"></embed></object></td>
<td width="25"></td>
</tr>
</table>
그랬더니...아래와 같은 에러가 출력됩니다.
첨부파일 첫번째는 음악소스만 올린 것이고,
첨부파일 두번째는 음악소스에다가 얼럿창 소스까지 추가한 것입니다.
댓글 전체
위 소스 처럼 넣으면 작동해야 정상입니다..
오류가 어떻게 나는지 알려주셔야 할 것 같네요
"$g4['bbs_path']/login.php?url=$urlencode"
=>
"{$g4['bbs_path']}/login.php?url=$urlencode"
오류가 어떻게 나는지 알려주셔야 할 것 같네요
"$g4['bbs_path']/login.php?url=$urlencode"
=>
"{$g4['bbs_path']}/login.php?url=$urlencode"
본문에 에러 화면 캡쳐해서 올렸습니다. 도무지 이유를 모르겠네요. ^^;;