IE에서는 이상없이 잘 되는데 firefox에서는 전혀 스크립트가 먹질 않습니다.. 고수님들의 조언을 구합니다.
요금제를 선택하면 그 바로 밑에 div로 구성된 것을 호출하는 방식과 건당결제시 작품을 선택하면 자동으로 금액이 적용되는 부분 둘다 파이어폭스에서는 적용이 안되고 있습니다...
소스를 다 올렸어요..죄송합니다
-------------------------------------------------------------------------------------------------------------------------
<html>
<head>
<title>결제하기</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
<script language="javascript" src="/js/viewer.js"></script>
<link href="/css/2004.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
<!--
function window_resize(w,h) {
window.resizeTo(w,h);
}
var x = 578;
var y = 440;
window_resize(x,y);
function show_charge(j,k,h){
eval("self.charge_list_" + j).style.display = "";
eval("self.charge_list_" + k).style.display = "none";
tform.fix_type[0].checked = false;
tform.fix_type[1].checked = false;
tform.fix_type[2].checked = false;
eval("self.charge_list_3").style.display = "";
var dd = "0";
var hapx = 30 * dd;
var hh = y + h
if(j==2) { hh = hh + hapx; }
window_resize(x,hh);
}
function show_bill(j,k,h){
var hh = y + h
window_resize(x,hh);
}
function checkoff(){
var X=eval("document.tform.elements")
for (c=0;c<X.length;c++){
if(X[c].name != "charge_choice") {
if(!X[c].disabled){
X[c].checked=false;
}
}
}
}
function add_price(n) {
var np = 0;
var check_count = 0;
var d;
var X=eval("document.tform.elements")
if(n == 'all'){
for (c=0;c<X.length;c++){
if(X[c].name == "vol[]") {
if(!X[c].disabled){
X[c].checked=true;
}
}
}
}
for (c=0;c<X.length;c++){
if(X[c].name == "vol[]") {
if(X[c].checked == true){
d = X[c].value.split("|");
np += parseInt(d[1]);
check_count++;
}
}
}
var sale_spec_count = "5";
var sale_spec_value = "20";
var total_spec_price = "";
var part_count = "8";
var free_count = "0";
if(check_count >= sale_spec_count - free_count){
np = np - (np * (sale_spec_value * 0.01));
}
eval("self.tcash").innerHTML = parseInt(np);
tform.bill_price.value = parseInt(np);
}
function go_bill(){
var X=eval("document.tform.elements")
var cc;
var i;
var my_price = "49600";
for (c=0;c<X.length;c++){
if(X[c].name == "charge_choice") {
if(X[c].checked == true){
cc = X[c].value;
break;
}
}
}
if(cc == '1') {
i=0;
for (f=0;f<X.length;f++) {
if(X[f].name == "fix_type") {
if(X[f].checked == true) {
i++;
var price = X[f].value;
document.tform.bill_price.value = X[f].value;
break;
}
}
}
if(i < 1) {
alert('정액권을 선택해 주세요');
return;
}
if(parseInt(price) > parseInt(my_price)) {
ans = confirm('보유 캐쉬가 부족합니다. 충전하시겠습니까?');
if(ans == true) {
location.href="/billing/billcash.php";
return;
}else{
return;
}
}
ans = confirm('결제 하시겠습니까?');
if(ans == false) {
return;
}
}else if(cc == '2'){
j=0;
for (v=0;v<X.length;v++) {
if(X[v].name == "vol[]") {
if(X[v].checked == true) {
j++;
break;
}
}
}
if(j < 1) {
alert('권(편)을 선택해 주세요');
return;
}
price = parseInt(tform.bill_price.value);
if(parseInt(price) > parseInt(my_price)) {
ans = confirm('보유 캐쉬가 부족합니다. 충전하시겠습니까?');
if(ans == true) {
location.href="/billing/billcash.php";
return;
}else{
return;
}
}
ans = confirm('결제 하시겠습니까?');
if(ans == false) {
return;
}
}else{
alert('요금제를 선택해 주세요');
return;
}
document.tform.action = "/billing/billcomic_process.php";
tform.submit();
}
-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="550" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="/billing/images/bg_title.gif"><img src="/billing/images/title_charge_pay.gif" width="92" height="51"></td>
</tr>
<tr>
<td height="15"> </td>
</tr>
<tr>
<td align="center">
<!-- 보유캐쉬 현황 -->
<table width="520" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="#F7F6F4" style="border:#E4E0D5 1px solid">
<tr>
<td width="61" style="padding-left: 18;"><img src="/billing/images/text_mycash.gif" width="61" height="15"></td>
<td width="437" valign="top" style="padding-top: 7;"> <span style="font-size:12px; color:#0066CC; face:굴림; font-weight:bold;">레인 님</span>의
보유캐쉬는 <span style="font-size:12px; color:#FF6600; face:굴림; font-weight:bold;">49,600</span>
캐쉬 입니다. </td>
<td width="2"><a href="billcash.php"><img src="/billing/images/btn_cash_save.gif" width="78" height="21" hspace="10" border="0"></a></td>
</tr>
</table></td>
</tr>
<tr>
<td height="20"> </td>
</tr>
<tr>
<td align="center" valign="top">
<!--결제할 작품 선택 - 권별로 - 건당제 결제 창입니다.-->
<table width="520" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-bottom: 5;"><img src="/billing/images/title_s_product.gif" width="84" height="17"></td>
</tr>
<tr>
<td valign="top">
<!-- 작품 설명 -->
<table width="520" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><img src="/billing/images/bar01.gif" width="520" height="7"></td>
</tr>
<tr>
<td width="8" background="/billing/images/bar02_bg.gif"><img src="/billing/images/bar02_bg.gif" width="8" height="2"></td>
<td width="504">
<!-- 결제할 작품 설명과 이용요금 -->
<table width="504" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5" colspan="2"></td>
</tr>
<tr>
<td width="342" height="25" style="padding-left: 5;"><span style="font-size:12px; color:#0066CC; face:굴림; font-weight:bold;">어둠속의 목소리</span>는
건당결제와 정액이용권으로 열람이<br>
가능한 작품입니다.</td>
<td width="162" rowspan="3"><img src="/billing/images/image_fix.gif" width="151" height="72" hspace="4"></td>
</tr>
<tr>
<td height="15" background="/billing/images/bg_dot_line_l.gif"><img src="/billing/images/bg_dot_line_l.gif" width="3" height="15"></td>
</tr>
<tr>
<td valign="top" style="padding-left: 5;">
<!-- 이용요금 노출 -->
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td ><img src="/billing/images/text_charge_use.gif" width="56" height="17"></td>
<td><img src="../common_/billing/images/icon_cash01.gif" width="37" height="16"></td>
<td style="padding-left: 5; padding-right: 5;">300 캐쉬</td>
</tr>
</table></td>
</tr>
<tr>
<td height="10"></td>
<td height="10"></td>
</tr>
</table></td>
<td width="8" background="/billing/images/bar03_bg.gif"><img src="/billing/images/bar03_bg.gif" width="8" height="2"></td>
</tr>
<tr>
<td colspan="3"><img src="/billing/images/bar04.gif" width="520" height="8"></td>
</tr>
</table> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="20"> </td>
</tr>
<form name="tform">
<input type="hidden" name="cuid" value="2945">
<input type="hidden" name="vuid" value="">
<input type="hidden" name="pg" value="">
<input type="hidden" name="bill_price" value="0">
<input type="hidden" name="vs" value="">
<tr>
<td align="center" valign="top">
<!-- 결제종류 선택 -->
<table width="520" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-bottom: 5;"><img src="/billing/images/title_s_charge_rule.gif" width="82" height="17"></td>
</tr>
<tr>
<td valign="top"> <table width="520" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><img src="/billing/images/bar01.gif" width="520" height="7"></td>
</tr>
<tr>
<td width="8" background="/billing/images/bar02_bg.gif"><img src="/billing/images/bar02_bg.gif" width="8" height="2"></td>
<td width="504">
<!-- 결제종류 선택 - 섹션 -->
<table width="504" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="261" height="3"><input name="charge_choice" type="radio" value="1" onClick="show_charge(1,2,260)">
정액제 결제</td>
<td width="243"><input name="charge_choice" type="radio" value="2" onClick="show_charge(2,1,221)">
건당 결제</td>
</tr>
</table></td>
<td width="8" background="/billing/images/bar03_bg.gif"><img src="/billing/images/bar03_bg.gif" width="8" height="2"></td>
</tr>
<tr>
<td colspan="3"><img src="/billing/images/bar04.gif" width="520" height="8"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="20"> </td>
</tr>
<tr>
<td align="center" valign="top">
<!-- 정액권 선택 -->
<div id="charge_list_1" style="display:none">
<table width="520" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-bottom: 5;"><img src="/billing/images/title_s_amount.gif" width="83" height="17"></td>
</tr>
<tr>
<td valign="top"> <table width="520" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><img src="/billing/images/bar01.gif" width="520" height="7"></td>
</tr>
<tr>
<td width="8" background="/billing/images/bar02_bg.gif"><img src="/billing/images/bar02_bg.gif" width="8" height="2"></td>
<td width="504">
<!-- 정액권 선택- 섹션 -->
<table width="504" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="3"></td>
</tr>
<tr>
<td><input type="radio" name="fix_type" value="2000">
일정액 이용권으로 보기 - <span style="font-size:12px; color:#cc0000; face:굴림; font-weight:bold;">2,000</span>
캐쉬</td>
</tr>
<tr>
<td height="9" background="/billing/images/bg_dot_line.gif"></td>
</tr>
<tr>
<td><input type="radio" name="fix_type" value="4000">
7일정액 이용권으로 보기 - <span style="font-size:12px; color:#cc0000; face:굴림; font-weight:bold;">4,000</span>
캐쉬</td>
</tr>
<tr>
<td height="9" background="/billing/images/bg_dot_line.gif"></td>
</tr>
<tr>
<td><input type="radio" name="fix_type" value="9000">
30일정액 이용권으로 보기 - <s>15,000</s> 캐쉬 → <span style="font-size:12px; color:#cc0000; face:굴림; font-weight:bold;">9,000</span>
캐쉬</td>
</tr>
<tr>
<td height="9" background="/billing/images/bg_dot_line.gif"></td>
</tr>
<tr>
<td><input type="radio" name="fix_type" value="24000">
90일정액 이용권으로 보기 - <s>36,000</s> 캐쉬 → <span style="font-size:12px; color:#cc0000; face:굴림; font-weight:bold;">24,000</span>
캐쉬</td>
</tr>
<tr>
<td height="3"></td>
</tr>
</table></td>
<td width="8" background="/billing/images/bar03_bg.gif"><img src="/billing/images/bar03_bg.gif" width="8" height="2"></td>
</tr>
<tr>
<td colspan="3"><img src="/billing/images/bar04.gif" width="520" height="8"></td>
</tr>
</table></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td align="center" valign="top">
<div id="charge_list_2" style="display:none">
<table width="520" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-bottom: 5;">
<img src="/billing/images/title_s_product.gif" width="84" height="17">
<a href="javascript:add_price('all');"><img src="/billing/images/btn_selectall.gif" width="52" height="20" border="0" align="absmiddle"></a></td>
</tr>
<tr>
<td valign="top"> <table width="520" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><img src="/billing/images/bar01.gif" width="520" height="7"></td>
</tr>
<tr>
<td width="8" background="/billing/images/bar02_bg.gif"><img src="/billing/images/bar02_bg.gif" width="8" height="2"></td>
<td width="504">
<!-- 정액권 선택- 섹션 -->
<table width="504" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="9" height=10></td>
</tr>
<tr>
<td><input type="checkbox" name="vol[]" value="22215|300" onClick="add_price()" >
<img src="../common_/billing/images/volume/vol01_01.gif" width="21" height="21" align="absmiddle"></td>
<td><input type="checkbox" name="vol[]" value="22216|300" onClick="add_price()" >
<img src="../common_/billing/images/volume/vol01_02.gif" width="21" height="21" align="absmiddle"></td>
<td><input type="checkbox" name="vol[]" value="22217|300" onClick="add_price()" >
<img src="../common_/billing/images/volume/vol01_03.gif" width="21" height="21" align="absmiddle"></td>
<td><input type="checkbox" name="vol[]" value="22218|300" onClick="add_price()" >
<img src="../common_/billing/images/volume/vol01_04.gif" width="21" height="21" align="absmiddle"></td>
<td><input type="checkbox" name="vol[]" value="22219|300" onClick="add_price()" >
<img src="../common_/billing/images/volume/vol01_05.gif" width="21" height="21" align="absmiddle"></td>
<td><input type="checkbox" name="vol[]" value="22220|300" onClick="add_price()" >
<img src="../common_/billing/images/volume/vol01_06.gif" width="21" height="21" align="absmiddle"></td>
<td><input type="checkbox" name="vol[]" value="109966|300" onClick="add_price()" >
<img src="../common_/billing/images/volume/vol01_07.gif" width="21" height="21" align="absmiddle"></td>
<td><input type="checkbox" name="vol[]" value="109967|300" onClick="add_price()" >
<img src="../common_/billing/images/volume/vol01_08.gif" width="21" height="21" align="absmiddle"></td>
</tr>
</table></td>
<td width="8" background="/billing/images/bar03_bg.gif"><img src="/billing/images/bar03_bg.gif" width="8" height="2"></td>
</tr>
<tr>
<td colspan="3"><img src="/billing/images/bar04.gif" width="520" height="8"></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top">
<table width="520" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan=3><img src="/billing/images/bar04_color02.gif" width="520" height="7"></td>
</tr>
<tr>
<td width="8" background="/billing/images/bar02_bg_color.gif"><img src="/billing/images/bar02_bg_color.gif" width="8" height="2"></td>
<td width="504" align="center" bgcolor="#F7F6F4">
<!-- 총 결제금액 -->
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="3"><img src="/billing/images/text_total_charge.gif" width="76" height="18">
</td>
<td><span id="tcash" style="font-size:13px; color:#cc0000; face:굴림; font-weight:bold;"></span>
캐쉬</td>
<td style="padding-left: 15;" class="orange_11">
<img src="/billing/images/icon_arrow.gif" width="4" height="7" align="absmiddle">
5편 이상 결제시 20% 할인
</td>
</tr>
</table></td>
<td width="8" background="/billing/images/bar03_bg_color.gif"><img src="/billing/images/bar03_bg_color.gif" width="8" height="2"></td>
</tr>
<tr>
<td colspan="3"><img src="/billing/images/bar_color_bottom.gif" width="520" height="7"></td>
</tr>
</table></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td height="20"> </td>
</tr>
<tr>
<td align="center">
<div id="charge_list_3" style="display:none">
<table width="520" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-bottom: 5;"><img src="/billing/images/title_s_charge_sort.gif" width="95" height="17"></td>
</tr>
<tr>
<td valign="top"> <table width="520" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><img src="/billing/images/bar01.gif" width="520" height="7"></td>
</tr>
<tr>
<td width="8" background="/billing/images/bar02_bg.gif"><img src="/billing/images/bar02_bg.gif" width="8" height="2"></td>
<td width="504">
<!-- 결제종류 선택 - 섹션 -->
<table width="504" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="261" height="3"><input name="bill_course" type="radio" value="1" onClick="show_bill(1,2,232)" checked>
캐쉬로 결제 </td>
<td width="243"><!--<input name="bill_course" type="radio" value="2" onClick="show_bill(2,1,300)">
바로 결제--></td>
</tr>
</table></td>
<td width="8" background="/billing/images/bar03_bg.gif"><img src="/billing/images/bar03_bg.gif" width="8" height="2"></td>
</tr>
<tr>
<td colspan="3"><img src="/billing/images/bar04.gif" width="520" height="8"></td>
</tr>
</table></td>
</tr>
</table>
<!--
</div>
<div id="bill_choice_1" style="display:none">
-->
<table width="520" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="50" align="center" valign="bottom"><a href="javascript:go_bill()"><img src="/billing/images/btn_charge.gif" width="72" height="34" border="0"></a>
<a href="javascript:self.close();"><img src="/billing/images/btn_cancel.gif" width="72" height="34" hspace="7" border="0"></a>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td height="20"> </td>
</tr>
<tr>
<td align="center" valign="top">
<!-- 결제방식 선택 -->
<div id="bill_choice_2" style="display:none">
<table width="520" border="0" cellspacing="0" cellpadding="0">
<input type="hidden" name="inimethod" value="Card">
<tr>
<td style="padding-bottom: 5;"><img src="/billing/images/title_s_charge_form.gif" width="94" height="17"></td>
</tr>
<tr>
<td valign="top"> <table width="520" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><img src="/billing/images/bar01.gif" width="520" height="7"></td>
</tr>
<tr>
<td width="8" background="/billing/images/bar02_bg.gif"><img src="/billing/images/bar02_bg.gif" width="8" height="2"></td>
<td width="504">
<!-- 결제방식 선택 - 섹션 -->
<table width="504" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="216" height="3"></td>
<td width="143"></td>
<td width="145"></td>
</tr>
<tr>
<td><input name="billType" type="radio" value="danalHP" checked>
휴대폰 </td>
<td><input name="billType" type="radio" value="iniPay" onClick="tform.inimethod.value='Card'">
신용카드</td>
<td>
<input name="billType" type="radio" value="ocb" onClick="tform.inimethod.value='OCBPoint'">
OK Cashbag</td>
</tr>
<tr>
<td height="9" background="/billing/images/bg_dot_line.gif"></td>
<td background="/billing/images/bg_dot_line.gif"></td>
<td background="/billing/images/bg_dot_line.gif"></td>
</tr>
<tr>
<td><input name="billType" type="radio" value="danalKT">
전화인증 (일반전화 거는 방식) </td>
<td><input name="billType" type="radio" value="iniPay" onClick="tform.inimethod.value='DirectBank'">
실시간 계좌이체</td>
<td><input name="billType" type="radio" value="danalPB">
폰빌 (일반전화 받는 방식) </td>
</tr>
<tr>
<td height="9" background="/billing/images/bg_dot_line.gif"></td>
<td background="/billing/images/bg_dot_line.gif"></td>
<td background="/billing/images/bg_dot_line.gif"></td>
</tr>
<tr>
<td><input name="billType" type="radio" value="online">
무통장 입금</td>
<td><input name="billType" type="radio" value="eComiXShop">
포인트</td>
<td><!--<input name="billType" type="radio" value="adsl">
ADSL--></td>
</tr>
<tr>
<td height="3"></td>
<td></td>
<td></td>
</tr>
</table>
</td>
<td width="8" background="/billing/images/bar03_bg.gif"><img src="/billing/images/bar03_bg.gif" width="8" height="2"></td>
</tr>
<tr>
<td colspan="3"><img src="/billing/images/bar04.gif" width="520" height="8"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="50" align="center" valign="bottom"><a href="javascript:go_bill();"><img src="/billing/images/btn_charge.gif" width="72" height="34" border="0"></a>
<a href="javascript:self.close();"><img src="/billing/images/btn_cancel.gif" width="72" height="34" hspace="7" border="0"></a>
</td>
</tr>
</table>
</div>
</td>
</tr>
</form>
<tr>
<td height="1" bgcolor="#DEDCDA"></td>
</tr>
<tr>
<td height="19" bgcolor="#EEECEA"><a id="#bill_bottom"></td>
</tr>
</table>
</body>
</html>
파이어폭스에서 스크립트가 전혀 안먹네요
Who is online
Users browsing this forum: No registered users and 0 guests