我的php页面需要更长时间才能加载,点击该页面中的某些内容时会弹出一个弹出窗口。
当我点击内容弹出窗口中的iframe需要在弹出窗口中打开时,弹出窗口会立即打开,但弹出窗口中的iframe在页面完成加载之前没有打开。
虽然那个时候弹出窗口可见但是空白;
如何在加载完成之前打开iframe?
我的代码是这样的:
<a style="cursor:pointer" <?php
if (isset($_SESSION['u_id']) && $_SESSION['u_id'] > 0) {
?> href="redirect.php; ?>" <?php
} else {
?> href="iframesignin.php?signpopup=<?php
$encd = 'slr' . $fbanr['s_id'];
echo base64_encode($encd);
?>&id=<?php
echo $fbanr['s_id'];
?>&type=slr&mypage=<?php
echo $fullurl;
?>" data-featherlight="iframe" <?php
}
?> target="_blank" >
GO TO STORE</a>
此处弹出窗口显示为data-featherlight="iframe"
答案 0 :(得分:0)
使用iframe的include / require函数intead
CREATE TABLE products (
id NUMBER(8,0) CONSTRAINT product__id__pk PRIMARY KEY,
product VARCHAR2(20) CONSTRAINT product__product__u UNIQUE
);
CREATE TABLE suggestions (
id NUMBER(8,0) CONSTRAINT product_suggestions__id__pk PRIMARY KEY,
product_id NUMBER(8,0) CONSTRAINT product_suggestions__pid__fk
REFERENCES products ( id )
CONSTRAINT product_suggestions__pid__nn NOT NULL
);
CREATE TABLE product_suggestions (
suggestion_id NUMBER(8,0) CONSTRAINT product_suggestions__sid__fk
REFERENCES suggestions ( id ),
product_id NUMBER(8,0) CONSTRAINT product_suggestions__sid__fk
REFERENCES product ( id ),
CONSTRAINT product_suggestions__pk PRIMARY KEY ( suggestion_id, product_id )
);
我希望这会对你有所帮助