PHP implements level three navigation bar effect

Source: Internet
Author: User

1. Data configuration file db.php

  1. Return Array (
  2. Array
  3. ' One ' = ' About Us ',
  4. ' Both ' = Array (
  5. Array
  6. ' Three_tit ' = ' Company Introduction ',
  7. ' Three_cont ' = Array (
  8. ' Corporate profile ',
  9. ' Organizational Structure ',
  10. ' Development History ',
  11. ' Corporate culture ',
  12. ' Service concept '
  13. )
  14. ),
  15. Array
  16. ' Three_tit ' = ' Enterprise Honors ',
  17. ' Three_cont ' = Array (
  18. ' Award Certificate ',
  19. ' Industry contribution ',
  20. ' Qualification certification ',
  21. ' Association activities ',
  22. ' Achievements of the company ')
  23. ),
  24. Array
  25. ' Three_tit ' and ' Sales network ',
  26. ' Three_cont ' = Array (
  27. ' Northeast ',
  28. ' North China ',
  29. ' Middle East ',
  30. ' South China ',
  31. ' Southwest ',
  32. Northwest
  33. )
  34. )
  35. )
  36. ),
  37. Array
  38. ' One ' = ' product showcase ',
  39. ' Both ' = Array (
  40. Array
  41. ' Three_tit ' = ' export trade ',
  42. ' Three_cont ' = Array (
  43. ' Digital Products ',
  44. ' Latest energy ',
  45. ' Fresh fruit ',
  46. ' Meat food ',
  47. ' Clothes ',
  48. ' Gold and silver jewellery '
  49. )
  50. ),
  51. Array
  52. ' Three_tit ' = ' business Services ',
  53. ' Three_cont ' = Array (
  54. ' Accreditation ',
  55. ' Talent development ',
  56. ' Hot product recommendation ',
  57. ' Latest Technology Frontier '
  58. )
  59. )
  60. )
  61. ),
  62. Array
  63. ' One ' = ' news Center ',
  64. ' Both ' = Array (
  65. Array
  66. ' Three_tit ' = ' Enterprise Dynamics ',
  67. ' Three_cont ' = Array (
  68. ' Company News ',
  69. ' New listings ',
  70. ' Enterprise News '
  71. )
  72. ),
  73. Array
  74. ' Three_tit ' = ' industry dynamics ',
  75. ' Three_cont ' = Array (
  76. ' Media spotlight ',
  77. ' Industry concerns ',
  78. ' Domestic market ',
  79. ' International quotes '
  80. )
  81. )
  82. )
  83. ),
  84. Array
  85. ' One ' = ' Contact Us ',
  86. ' Both ' = Array (
  87. Array
  88. ' Three_tit ' = ' contact ',
  89. ' Three_cont ' = Array (
  90. ' Online customer service ',
  91. ' Correspondence address ',
  92. ' Phone fax ',
  93. ' Online message '
  94. )
  95. ),
  96. Array
  97. ' Three_tit ' and ' talent recruiting ',
  98. ' Three_cont ' = Array (
  99. ' Project manager ',
  100. ' Assistant Secretary ',
  101. ' Channel Agent ',
  102. ' Website engineer '
  103. )
  104. )
  105. )
  106. )
  107. );
  108. ?>
Copy Code
2.index file
    1. Header (' Content-type:text/html;charset=utf-8 ');
    2. Loading data
    3. $data = include './db.php ';
    4. Loading HTML files
    5. Include './nav.html ';
    6. ?>
Copy Code
3.nav.html file
  1. Untitled Document
    • Website Home
Copy Code
Php
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.