在 html 中插入 javascript 保留表单

Insert javascript reservation form in html

本文关键字:保留 表单 javascript 插入 html      更新时间:2023-09-26

我正在尝试在将放置在酒店网站标题中的图像上插入预订表格。我正在使用Sirvoy。他们给了我一个JavaScript代码,可以粘贴到我的网站中。http://hotelporhe.com/index.php/es/我想将表单放在主图像上方的标题中。

到目前为止,我拥有的代码:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Untitled Document</title>
</head>
<body>
   <table height="763" width="1424"
 background="http://hotelporhe.com/images/pruebaSlider3.jpg">
      <script async type="text/javascript" data-form-id="5671e222201aa" src="https://secured.sirvoy.com/widget/sirvoy.js"></script>>
      <tr>
          <td>Reserva hoy</td>
      </tr>
   </table>
</body>
</html>

这是我从Sirvoy那里得到的具体代码:

 <script async type="text/javascript" data-form-id="5671e222201aa" src="https://secured.sirvoy.com/widget/sirvoy.js"></script>>
图像

有效,但我无法在我的图像上调用预订表格。

我希望有人可以帮助我。

谢谢。

你的html搞砸了,这就是它不起作用的原因。试试这个:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Untitled Document</title>
</head>
<body>
<table height="763" width="1424"
 background="http://hotelporhe.com/images/pruebaSlider3.jpg"> 
<tr><td>    
<script async type="text/javascript" data-form-id="5671e222201aa" src="https://secured.sirvoy.com/widget/sirvoy.js"></script>
</td></tr>
</table>
</body>
</html>