我如何在Wordpress Post中使用该代码?

我如何在Wordpress Post中使用该代码?,wordpress,Wordpress,我想在Wordpress Post中使用该代码 当我在没有Wordpress的情况下使用该代码时,它是有效的。我的意思是我创建了一个php文件,并在其中粘贴了这段代码。它是有效的。但它在Wordpress post中不起作用 我该怎么办 请帮帮我。提前谢谢 <html> <head> <title>test</title> <style type="text/css" media="screen"> textarea { resize:

我想在Wordpress Post中使用该代码

当我在没有Wordpress的情况下使用该代码时,它是有效的。我的意思是我创建了一个php文件,并在其中粘贴了这段代码。它是有效的。但它在Wordpress post中不起作用

我该怎么办

请帮帮我。提前谢谢

<html>
<head>
<title>test</title>
<style type="text/css" media="screen">
textarea { resize: none; }
.hide{ display: none; }
#popupoverlay { background-color: #000000; bottom: 0px; display: none; left: 0px; opacity: .75; position: fixed; right: 0px; top: 0px; }
#popupwindow { background-color: #FAFAD2; border: solid 2px #cccccc; display: none; height: 150px; left: 50%; margin: -75px 0 0 -35px; position: absolute; left: 350px; top: 80px; width: 800px; height: 630px }
#popupwindow a { background-color: #ff3333; display: block; font-size: 9px; height: 20px; left: 50%; margin: -309px 0 0 370px; position: absolute; text-align: center; text-decoration: none; top: 50%; width: 25px; }
#popupwindow h1 { background-color: #cccccc; display: block; margin: 0; padding: 3px 5px; text-align: center; }
#popupwindow p { font-size: 9pt; margin: 0px; padding: 5px; }
body{font: 9pt Verdana;list-style:none;margin:0;padding:-10}
td{font: 9pt Verdana;}
th{font: 9pt Verdana; text-align: left; font-weight: bold;}
</style>
<SCRIPT>
function checkEmail(myForm) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.email.value)){
return (true)
}
alert("Please check your email.")
return (false)
}
//  End -->
</script>
<script>
function SayiKontrol(e) {
    olay = document.all ? window.event : e;
    tus = document.all ? olay.keyCode : olay.which;
    if(tus<48||tus>57) {
        if(document.all) { olay.returnValue = false; } else { olay.preventDefault(); }
    }
}

function HarfKontrol(e) {
    olay = document.all ? window.event : e;
    tus = document.all ? olay.keyCode : olay.which;
    if(tus>=48&&tus<=57) {
        if(document.all) { olay.returnValue = false; } else { olay.preventDefault(); }
    }
}
</script>
    <script type="text/javascript">
    function OpenPopup() {
        document.getElementById('PopupOverlay').style.display = 'block';
        document.getElementById('PopupWindow').style.display = 'block';
    }
    function ClosePopup() {
        document.getElementById('PopupOverlay').style.display = 'none';
        document.getElementById('PopupWindow').style.display = 'none';
    }
    </script>
    <script language="JavaScript" type="text/javascript">
/*<![CDATA[*/
function HostingSpec(rad){
 var rads=document.getElementsByName(rad.name);
 var all=['first_giz','first_giz_1','second_giz']
 var ary=[
  ['first_giz','first_giz_1'],
  ['second_giz']
 ]
 for (var z0=0;z0<all.length;z0++){
  document.getElementById(all[z0]).style.display='none';
 }
 for (var z1a,z1=0;z1<rads.length;z1++){
  if (rads[z1].checked&&ary[z1]){
   for (z1a=0;z1a<ary[z1].length;z1a++){
    document.getElementById(ary[z1][z1a]).style.display='block';
   }
   return;
  }
 }

}
/*]]>*/
</script>
</head>
<body>
<form name="myform" action="submit.php" method="POST" onSubmit="return checkEmail(this)">
       <a href="javascript: void(0)" onClick="OpenPopup();"><img border="0" src="submit.jpg"></a>
    </p>

    <div id="PopupOverlay"></div>
    <div id="PopupWindow">
<h1>Test</h1>
<table border="0" width="100%" cellspacing="1">
<tr>
<th width="333">Name</th>
<th width="249">Surname</th>
<th width="258">No<th width="182">Email</th>
</tr>
            <tr><td width="333"><input type="text" name="name" size="45"></td>
                <td width="249">
                <!--webbot bot="Validation" s-display-name="name" s-data-type="Integer" s-number-separators="x" i-maximum-length="12" --><input type="text" name="name2" size="10" maxlength="11"></td>
                <td width="258"> 
                &nbsp;<input type="text" name="name3" size="10" maxlength="11"></td>
                <td width="182"><input type="text" name="email" size="20"></td>
        </tr>
            <tr>
                <td width="333">&nbsp;</td>
                <td width="249">&nbsp;</td>
                <td colspan="2">&nbsp;</td>
            </tr>
<tr><th width="333">Address</th>
    <th width="249">area 1</th>
<th colspan="2">area 2</th>
            </tr>
            <tr>
                <td width="333">
        <textarea rows="4" name="address" cols="39"></textarea></td>
                <td width="249">

        <input type="text" name="area1" size="20"><br>
        <b>area 3</b><br>
        <input type="text" name="area2" size="20"></td>
                <td colspan="2">

        <input type="text" name="area3" size="20"><br>
        <b>area 4</b><br>
        <input type="text" name="area4" size="20" maxlength="4"></td>
            </tr>
            <tr>
<th width="333">&nbsp;</th>
<th width="249">area 5</th>
<th colspan="2">area 6</th>
            </tr>
            <tr>
                <td width="333"> 

        &nbsp;</td>
                <td width="249"> 

        <input type="text" name="area5" size="20">
        <font color="#666666">(description)<br>
&nbsp;</font></td>
                <td colspan="2">

<input type="text" name="area6" size="20"><font color="#666666">(description)</font></td>
            </tr>
            <tr>
<th width="333">additional information</th>
<th width="249">&nbsp;</th>
<td colspan="2">&nbsp;</td>
            </tr>
            <tr>
                <td colspan="4">

                  <textarea name="message" cols="93" rows="5"></textarea></td>
            </tr>
            <tr>
                <td width="333" align="center">
                <p align="left">div 1 
<INPUT type="radio" name="hosting_package" id="hosting_package_1" value="1" class="validate[required] radio" onClick="HostingSpec(this);" /></td>
                <td width="249" align="center">
                <p align="left">div 2
              <input type="radio" name="hosting_package" id="hosting_package_2" value="2" class="validate[required] radio" onClick="HostingSpec(this);" />
                <br>
                </td>
<td colspan="2"><br>
</td>
            </tr>
            <tr id="first_giz" style="display:none;">
<th width="333">Company</th>
<th width="249">
&nbsp;</th>
                <td colspan="2">&nbsp;</td>
            </tr>
            <tr id="first_giz_1" style="display:none;">
<td width="333"><select size="1" name="company">
        <option>test 1</option>
        <option>test 2</option>
        </select></td>
<td width="249"><br>
&nbsp;</td>
                <td colspan="2">&nbsp;</td>
            </tr>
            <tr id="second_giz" style="display:none;">
                <td width="333">
<b>company 2<br>
<br>
</b>
<select size="1" name="company2">
<option>test 1</option>
<option>test 2</option>
<option>test 3</option>
        </select><br>
<br>
<br>
<br>
<br>
<br>
&nbsp;</td>
                <td width="249">
<b>company 3<br>
</b>
<select size="1" name="company3">
        <option>test 1</option>
        <option>test 2</option>
        <option>test 3</option>
        </select><b><br>
<br>
area 7<br>
        </b><input type="text" name="test1" size="10"><b><br>
    area 8<br>
        </b>


        <input type="text" name="test2" size="10"><br>
&nbsp;</td>
                <td colspan="2">
&nbsp;</td>
            </tr></table>
<table border="0" width="1151" cellspacing="0" cellpadding="0">
    <tr>
        <td width="1151">

    <tr>
        <td width="1151">

<blockquote>
    <blockquote>
        <blockquote>
            <blockquote>
                <blockquote>
                    <blockquote>
                        <blockquote>
                            <blockquote>
                                <blockquote>
                                    <input type="submit" name="button" value="Submit" style="height: 50px; width: 200px; font-size:14pt; font-weight:bold; float:right"></blockquote>
                            </blockquote>
                        </blockquote>
                    </blockquote>
                </blockquote>
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
        </td>
    </tr>
</table>
</form></p>
        <a href="javascript: void(0)" onClick="ClosePopup();">
        <font color="#FFFFFF" style="font-size: 9pt">x</font></a><span style="font-size: 9pt">
        </span>
        </div>
</body>

测试
text区域{调整大小:无;}
.hide{display:none;}
#popupoverlay{背景色:#000000;底部:0px;显示:无;左侧:0px;不透明度:.75;位置:固定;右侧:0px;顶部:0px;}
#弹出窗口{背景色:#FAFAD2;边框:实心2px#cccccc;显示:无;高度:150px;左侧:50%;边距:-75px 0-35px;位置:绝对;左侧:350px;顶部:80px;宽度:800px;高度:630px}
#弹出窗口a{背景色:#ff3333;显示:块;字体大小:9px;高度:20px;左侧:50%;边距:-309px 0 370px;位置:绝对;文本对齐:中心;文本装饰:无;顶部:50%;宽度:25px;}
#PopupWindowH1{背景颜色:#cccccc;显示:块;边距:0;填充:3px 5px;文本对齐:中心;}
#popupwindow p{字体大小:9pt;边距:0px;填充:5px;}
正文{font:9pt Verdana;列表样式:无;边距:0;填充:-10}
td{font:9pt Verdana;}
th{font:9pt Verdana;文本对齐:左;字体大小:粗体;}
功能检查电子邮件(myForm){
如果(/^\w+([\.-]?\w+*@\w+([\.-]?\w+*(\.-])+$/.test(myForm.email.value)){
返回(真)
}
提醒(“请检查您的电子邮件。”)
返回(假)
}
//结束-->
功能Sayik控制(e){
玉兰油=文件。
To.=文档?ALL。
国际单项体育联合会(第57届){
如果(文档.all){OLay.ReTurnValue= false;} {玉兰油.EnvestDebug();}
}
}
功能HARFCONTROL(e){
玉兰油=文件。
To.=文档?ALL。
如果(tus>=48&&tus
试验
名称
姓
NoEmail
地址
区域1
区域2

区域3

区域4
区域5 第6区 (说明)
(说明) 补充资料

第1部分 第2部分

单位 测试1 测试2
公司2

测试1 测试2 测试3





公司3
测试1 测试2 测试3

区域7

区域8

尝试此链接


通过这种方式,您可以使用with shortcode将php代码直接包含到您的文章中。我希望这会对您有所帮助。

您介意解释原因吗?如果您想在博客文章中显示整个网页,最好使用一个。如果我正确理解您的问题,您的意图是包含HTML、php、CSS和Javascript、 或者wordpress帖子中的其他代码。有很多插件可以做到这一点。但是,有些插件可能由于主题不同而无法正常工作

我最近遇到了一个名为的插件,它正在与我的多个博客紧密配合。请按照中指示的说明安装它,然后再试一次