×

Loading...
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务

@

Here you go! - a cleaned copy. I tried using both .phtml and .php file extension.

本文发表在 rolia.net 枫下论坛<head>
<script type="text/javascript">document.adoffset = 0;</script>
<link rel="stylesheet" href="/css-js/main.css" type="text/css">
<link rel="stylesheet" href="/css-js/homepage.css" type="text/css">
</head>

<body onLoad="cnnHandleCSIs();initColor();runLQ();autoplayFB();">
<div id="HomeNav"><script type="text/javascript" src="/css-js/navigation.js"></script>

<table><tr>
<td class="Page1"><div><a href="page1.html" class="navtext">page 1</a></div></td>
<td class="Page2" onMouseover="dropdownmenu(this, event, 'navmenu1')">
<div><a href="page2.html" class="navtext">page 2</a></div></td>
<td class="Page3" onMouseover="dropdownmenu(this, event, 'navmenu2')">
<div><a href="page3.html" class="navtext">page 3</a></div></td>
</tr></table>

<span id="navmenu1" class="navlinkcss">
<a href="page2.html">page 2</a>
</span>

<span id="navmenu2" class="navlinkcss">
<a href="page3.html">page 3</a>
</span>

</div>


<?php

define('CURSCRIPT', 'index');

require_once './include/common.inc.php';
require_once .....
<!-- ......the rest are the if's and $something = ..., etc -->
?>

</body>更多精彩文章及讨论,请光临枫下论坛 rolia.net
Report

Replies, comments and Discussions:

  • 工作学习 / 专业知识杂谈 / A new dummy question: is it possible to combine a html page using javascripts/css and a php page? if so, how? i know it's lame but i could only add the html part (with the <head> containing some .css linkages) to the end of php file to work.
    if i add the html portion to the top of php portion (the way it should be), the php won't show properly at all.

    thanks for any help or tips!
    • by my experience. if the SGML/HTML tag is proper used(no open tag, quote keyword properly as string), javascript won't affect php execution.
      • and php5 will give you warning by executing .php file in command line. check the warning or error message.
        • no warning. everything seems hunky dorey on cmd line.
      • thx for ur reply. i did ensure those. :(
        • paste a sample.
          • Here you go! - a cleaned copy. I tried using both .phtml and .php file extension.
            本文发表在 rolia.net 枫下论坛<head>
            <script type="text/javascript">document.adoffset = 0;</script>
            <link rel="stylesheet" href="/css-js/main.css" type="text/css">
            <link rel="stylesheet" href="/css-js/homepage.css" type="text/css">
            </head>

            <body onLoad="cnnHandleCSIs();initColor();runLQ();autoplayFB();">
            <div id="HomeNav"><script type="text/javascript" src="/css-js/navigation.js"></script>

            <table><tr>
            <td class="Page1"><div><a href="page1.html" class="navtext">page 1</a></div></td>
            <td class="Page2" onMouseover="dropdownmenu(this, event, 'navmenu1')">
            <div><a href="page2.html" class="navtext">page 2</a></div></td>
            <td class="Page3" onMouseover="dropdownmenu(this, event, 'navmenu2')">
            <div><a href="page3.html" class="navtext">page 3</a></div></td>
            </tr></table>

            <span id="navmenu1" class="navlinkcss">
            <a href="page2.html">page 2</a>
            </span>

            <span id="navmenu2" class="navlinkcss">
            <a href="page3.html">page 3</a>
            </span>

            </div>


            <?php

            define('CURSCRIPT', 'index');

            require_once './include/common.inc.php';
            require_once .....
            <!-- ......the rest are the if's and $something = ..., etc -->
            ?>

            </body>更多精彩文章及讨论,请光临枫下论坛 rolia.net
            • 今早还没起床我就预感到问题在哪里了:缺了最后一个收尾的</span>。不过我这里贴的code整理过,你看不出有错。多谢流浪的步行万里指引了正确方向!- 真是个巨笨的问题!:)
              • next time, use tidy
                • u da man! thanks. just installed it from the ports tree.