我有一个网站,在一个窗口中可以点击许多锚,总是当用户点击锚=显示div与iframe和显示数据(palyer - golf csore卡),但父窗口刷新,然后当用户打开4 -5(记分卡)和关闭是历史长度,因为每次都是父窗口刷新,它不是那么好,我想点击 - 读取iframe中的数据然后clocse div和点击BACK BUTTON前往上一页
请帮助
JavaScript的:
function fullWindowPopUp(AX, cis_turnaj, os_cis,pocet_kol, priezvisko, meno) {
var Nheight = screen.height;;
var Nwidth = screen.width;
var NovaSirka = (Nwidth/2)-400;
var NovaVyska = 155;
if(pocet_kol=="" || pocet_kol==0) {
document.getElementById("frameKarta").src='components/com_pgs/scorekarta.php?cis_turnaj='+cis_turnaj+'&os_cis='+os_cis+'&neex=1&priezvisko='+priezvisko+'&meno='+meno+' ';
} else {
document.getElementById("frameKarta").src='components/com_pgs/scorekarta.php?cis_turnaj='+cis_turnaj+'&os_cis='+os_cis+'&priezvisko='+priezvisko+'&meno='+meno+' ';
}
var divShow = document.getElementById(AX).style.display="block";
document.getElementById(AX).style.width=Nwidth+"px";
document.getElementById(AX).style.height=Nheight+"px";
document.getElementById("scorePopUp").style.left=NovaSirka+'px';
document.getElementById("scorePopUp").style.top=NovaVyska+'px';
if(pocet_kol==1) { document.getElementById("frameKarta").style.height="298px"; }
if(pocet_kol==2) {document.getElementById("frameKarta").style.height="357px"; }
if(pocet_kol==3) { document.getElementById("frameKarta").style.height="417px"; }
if(pocet_kol=="" || pocet_kol==0) { document.getElementById("frameKarta").style.height="295px"; }
}
function fullWindowPopUpClose (AX) {
divShow = document.getElementById(AX).style.display="none";
document.getElementById("frameKarta").src='components/com_pgs/blank.php';}
HTML:
<div id="dipoupscore" onclick="fullWindowPopUpClose('dipoupscore');" style="display:none;margin:0px auto !important;text-align:center !important;top:0px; left:0px; position:fixed; background:url(templates/pgs_order/images/pozadie.png);z-index:9999;">
<div id="scorePopUp" style="text-align:center;position:relative;overflow:hidden;text-align:center;width:800px;padding:0px;border:7px #DBDBDB solid;border-radius:6px;">
<iframe id="frameKarta" src="components/com_pgs/blank.php" style="border:none; ovreflow:hidden;width:100%; ">
</iframe>
</div>
</div>