我無法在互聯網上找到我想要的東西。如何只用url加載隱藏的內容框?
我有這個div,在我的index.php
<div id="navigatie_box" class="about">
<h1 class="navigate_title">About</h1>
<div class="about_image"></div>
</div>
在點擊我這個隱藏內容框加載內容我在子圖已經greated,內容/ about.php
:
<div class="content"></div>
點擊內容框顯示並加載其中的內容/ about.php。
這是我使用該
$(document).ready(function(){
/* about click */
$('.about').click(function() {
$('.about').hide("fast");
$('.work').hide("fast");
$('.cv').hide("fast");
$('.contact').hide("fast");
$(".content").slideDown("fast");
$(".content").load("content/about.php");
});
我現在想的是在我的網址位置的JavaScript,所以如果我型www.example.com/about,隱藏的內容框中顯示了和負載其中的內容/ about.php。
我認爲這一個noob問題,但我真的不能找到它了!
我希望你能幫助我。
一些改善「所以,如果我輸入www.example。 com/about「你是什麼意思?如果你在哪裏輸入? –
我的意思是在我的瀏覽器中。 – user3313356