묻고답하기
레이아웃에 미드별로 다른 그림넣고 싶을때
2011.06.19 10:54
<!--@if($mid=='acom01'+
')-->
<script language="javascript">displayMultimedia('/fa/images/info01.swf',1004,288,'','','transparent')</script>
<!--@elseif($mid=='bcha01')-->
<script language="javascript">displayMultimedia('/fa/images/info02.swf',1004,288,'','','transparent')</script>
<!--@elseif($mid=='bcha02')-->
<script language="javascript">displayMultimedia('/fa/images/info02.swf',1004,288,'','','transparent')</script>
<!--@elseif($mid=='bcha03')-->
<script language="javascript">displayMultimedia('/fa/images/info02.swf',1004,288,'','','transparent')</script>
<!--@elseif($mid=='cmem01')-->
<script language="javascript">displayMultimedia('/fa/images/info03.swf',1004,288,''+
','','transparent')</script>
<!--@elseif($mid=='cmem02')-->
<script language="javascript">displayMultimedia('/fa/images/info03.swf',1004,288,'','','transparent')</script>
<!--@elseif($mid=='cmem03')-->
<script language="javascript">displayMultimedia('/fa/images/info03.swf',1004,288,'','','transparent')</script>
<!--@elseif($mid=='dcat01')-->
<script language="javascript">displayMultimedia('/fa/images/info03.swf',1004,288,'','','transparent')</script>
<!--@elseif($mid=='eser01')-->
<script language="javascript">displayMultimedia('/fa/images/info06.swf',1004,288,'','','transparent')</script>
<!--@elseif($mid=='eser02')-->
<script language="javascript">displayMultimedia('/fa/images/info06.swf',1004,288,'','','transparent')</script>
<!--@elseif($mid=='eser03')-->
<script language="javascript">displayMultimedia('/fa/images/info06.swf',1004,288,'','','transparent')</script>
<!--@elseif($mid=='eser04')-->
<script language="javascript">displayMultimedia('/fa/images/info06.swf',1004,288,'','','transparent')</script>
<!--@else-->
<script language="javascript">displayMultimedia('/fa/images/info01.swf',1004,288,'','','transparent'+
')</script>
<!--@end-->
위의 소스를 더 간략하게 안될까요?
그러니까
<!--@elseif($mid=='bcha01'),($mid=='bcha02'),($mid=='bcha03'),-->
<script language="javascript">displayMultimedia('/fa/images/info02.swf',1004,288,'','','transparent')</script>
이런식으로 묶어주고 싶은데.. 구분자가 틀려서인지 에러 발생..
정확한 소스가 뭔가요?
저도 완전 초짜라 힘드네요~
부탁합니다^^
댓글 3
-
송동우
2011.06.19 11:12
-
물비늘
2011.06.19 11:46
-
열심이
2011.06.19 23:28
<!--@ if($mid=="bcha02" || $mid=="bcha03" || $mid=="bcha04")-->
이렇게 했더니 안되는데요??
이미지가 아니라 플래쉬라..
더 어렵네요
이런식으로 해 보세요....