저는 실제로 html/css 사람입니다..php에서 JavaScript 사용에 관하여
예약 양식을 내 페이지에 삽입하고 싶지만 양식을 추가하기위한 맞춤 링크가 있습니다. 링크는 단지 기본 스크립트로 구성되어 있으며 html 파일에 복사한다고합니다. 문제는 그것을 .php 파일에 추가해야하며 페이지를 다시로드하면 빈 페이지가 표시됩니다.
나는 내 .php 파일에 기본 div가 있고 이미지 호출을위한 div가 있고 내 스크립트는있다. 내 문제가 어디 있는지 말해 줄 수 있니?
<div id="dine_oliver_cattermole" class="content_holder border"></div>
<div id="dine_oliver_cattermole" class="content_holder border">
<table class="chef_holder" width="100%">
<tr>
<td width="30%" align="left" class="dine_chef_photo"><img src="/wp-content/.." width="290" height="440" /></td>
<td width="40%" align="center" class="dine_chef_text">
<h2>The Tasting Room’s Guiding Principles:</h2>
<h3>-</h3>
<h3>Please allow 3½ hours for this menu.</h3><br />
<p>We do not have a dress code, you dress for the experience you.</p>
<p>Only open for dinner Tuesday</p>
</td>
</tr>
</table>
</div>
<!-- Start Bookatable Code -->
<script type="text/javascript" src="http://ajax...."></script>
<script type="text/javascript" src="https://bda...."></script>
<a id="target" href="#">Book Online</a>
<script type="text/javascript">
$(function() {
$("#target").lbuiDirect({
connectionid : "LITH",
popupWindow : {enabled : true}
});
});
</script>
<!-- End Bookatable Code -->
코드를 사용했지만 빈 칸으로 표시했습니다.
<!-- Start Bookatable Code -->
<script type="text/javascript" src="https://bda....."></script>
<script type="text/javascript">
LBDirect_Embed({
connectionid : "ZA-RES-THELIVINGROOMATLEQUARTIERFRANCAIS_283714:67970"
});
</script>
<!-- End Bookatable Code
<div id="dine_oliver_cattermole" class="content_holder border"></div>
<div id="dine_oliver_cattermole" class="content_holder border">
<table class="chef_holder" width="100%">
<tr>
<td width="30%" align="left" class="dine_chef_photo"><img src="/wp-content/.." width="290" height="440" /></td>
<td width="40%" align="center" class="dine_chef_text">
<h2>The Tasting Room’s Guiding Principles:</h2>
<h3>-</h3>
<h3>Please allow 3½ hours for this menu.</h3><br />
<p>We do not have a dress code, you dress for the experience you.</p>
<p>Only open for dinner Tuesday</p>
</td>
</tr>
서버에서 페이지를 실행하고 있습니까? – Relisora
PHP를 사용하지 않는다면 그냥 .html이라고 부르면 괜찮을 것입니다. – iyop45
PHP 페이지가 필요한 것은 없습니다. 내가 가진 유일한 질문은 jQuery가 페이지에 더 많이 포함되어 있는지 여부와 우리가 볼 수있는 2 개의 스크립트 URL이 질문에서 잘린 것인지 아니면 페이지의 URL과 같은 것인지 여부입니다. – Archer