묻고답하기
안녕하세요! 질문사항입니다 ! 도와주세요 ㅠㅠㅠ
2013.02.22 13:30
롤링배너를 만들려고 예제를 따와서 대충 수정했는데요
드림위버로 돌려도되고 익스플로러 저장해도되는데
위젯페이지에서 내용직접입력해서 넣으면 오류가 나네요.,.. 조금씩 잘라서 넣으면 저장이되는데 한번에 다 쓰면 저장이 안됩니다.
어떤부분이 XE내에서 오류를 일으키는지 잘모르겠습니다. 도와주세요 ㅠㅠ
<head>
<script language="JavaScript">
var banner_1_mouseEvent = 1;
function banner_roll(div_id, banner_width, banner_delay, banner_speed, this_width)
{
if(eval(div_id + "_mouseEvent")){
var div_tag = document.getElementById(div_id);
var a_tag, i;
this_width = this_width + banner_width/10;
if(this_width < banner_width){
div_tag.style.left = -this_width;
setTimeout("banner_roll('" + div_id + "', " + banner_width + ", " + banner_delay + ", " + banner_speed + ", " + this_width + ");", banner_speed);
}
else{
a_tag = div_tag.getElementsByTagName("TABLE");
div_tag.appendChild(a_tag[0]);
div_tag.style.left = 0;
setTimeout("banner_roll('" + div_id + "', " + banner_width + ", " + banner_delay + ", " + banner_speed + ", 0);", banner_delay);
}
}
else{
setTimeout("banner_roll('" + div_id + "', " + banner_width + ", " + banner_delay + ", " + banner_speed + ", " + this_width + ");", banner_speed);
}
return true;
}
</script>
</head>
<body>
<form name="" method="post">
<table border="0" width="180" height="200" cellpadding="0" cellspacing="0" background="http://mungge1523.cafe24.com/xe/img/siderollingbg.png" style="padding: 35 0 0 10"">
<tr>
<td>
<div style="OVERFLOW: hidden; WIDTH: 160px; HEIGHT: 150px" onMouseover="banner_1_mouseEvent=0" onMouseout="banner_1_mouseEvent=1">
<nobr style="POSITION: relative" id="banner_1" >
<table border="0" cellspacing="0" cellpadding="0" style="DISPLAY: inline" bgcolor="">
<tr>
<td valign="top"><A onfocus=this.blur href="/customer/view.asp?nt_keyNum=101&page=1&keyfield=&keyword="><img src="http://mungge1523.cafe24.com/xe/img/rollingtest/test1.png" border="0" onMouseDown="javascript:click_event('MAIN/BODY/VISUAL영역/대종상');"></a></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" style="DISPLAY: inline" bgcolor="">
<tr>
<td valign="top"><A onfocus=this.blur href="/hanatv/event_education.asp"><img src="http://mungge1523.cafe24.com/xe/img/rollingtest/test2.png" border="0" onMouseDown="javascript:click_event('MAIN/BODY/VISUAL영역/교육이벤트');"></a></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" style="DISPLAY: inline" bgcolor="">
<tr>
<td valign="top"><A onfocus=this.blur href="/customer/view.asp?nt_keyNum=108&page=1&keyfield=&keyword="><img src="http://mungge1523.cafe24.com/xe/img/rollingtest/test3.png" border="0" onMouseDown="javascript:click_event('MAIN/BODY/VISUAL영역/나루토');"></a></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" style="DISPLAY: inline" bgcolor="">
<tr>
<td valign="top"><A onfocus=this.blur href="/hanatv/event_poll.asp"><img src="http://mungge1523.cafe24.com/xe/img/rollingtest/test4.png" border="0" onMouseDown="javascript:click_event('MAIN/BODY/VISUAL영역/poll 이벤트');"></a></td>
</tr>
</table>
</nobr>
</div>
</td>
</tr>
</table>
</form>
<script language="JavaScript">
<!--
banner_roll("banner_1", 257, 3000, 1, 0);
//-->
</script>
</body>