Php 用于加载到div中的页面的面包屑
我的网站只包含一个页面,所有其他页面都加载到一个div中,我想做的是创建面包屑来跟踪div中加载的页面,我在互联网上找到的所有解决方案都只适用于整个窗口中加载的页面,所以有人有更好的想法吗? 我的页面:Php 用于加载到div中的页面的面包屑,php,javascript,jquery,ajax,breadcrumbs,Php,Javascript,Jquery,Ajax,Breadcrumbs,我的网站只包含一个页面,所有其他页面都加载到一个div中,我想做的是创建面包屑来跟踪div中加载的页面,我在互联网上找到的所有解决方案都只适用于整个窗口中加载的页面,所以有人有更好的想法吗? 我的页面: <div id="nav" class="mmenu" style="float: left; position: fixed;"> <ul type="none"> <li><a class="upper" id="1" sty
<div id="nav" class="mmenu" style="float: left; position: fixed;">
<ul type="none">
<li><a class="upper" id="1" style="border-top-left-radius: 6px; border-top-right-radius: 6px; background-image:url('menu icons/user-blue.gif'); background-repeat: no-repeat; background-position: left; background-position-x: 5px;" target="collabsoft" href= "ProfilePage.php?property_variable=mine">My Profile</a></li>
<li><a id="2" style="background-image:url('menu icons/comments.png'); background-repeat: no-repeat; background-position: left; background-position-x: 5px;" target="collabsoft" href= "viewMessages.php">Messages</a></li>
<li><a id="3" style="background-image:url('menu icons/newspaper.gif'); background-repeat: no-repeat; background-position: left; background-position-x: 5px;" target="collabsoft" href= "userHomepage.php">My Conferences</a></li>
<li><a id="4" style="background-image:url('menu icons/pageflip.gif'); background-repeat: no-repeat; background-position: left;background-position-x: 2px;" target="collabsoft" href= "availableConferences2.php">Conferences</a></li>
<li><a id="5" style="background-image:url('menu icons/users.gif'); background-repeat: no-repeat; background-position: left; background-position-x: 5px;" target="collabsoft" href= "incomingRequests.php">Requests</a></li>
<li><a id="6" style="background-image:url('menu icons/book.gif'); background-repeat: no-repeat; background-position: left;background-position-x: 5px;" target="collabsoft" href= "viewNews.php" >News</a></li>
<li><a class="lower" id="7" style="border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; background-image:url('menu icons/gear.gif'); background-repeat: no-repeat; background-position: left;background-position-x: 5px;" target="collabsoft" href= "generalOptions.php" >Options</a></li>
</ul>
</div>
<table id="collabsoft_table" style="border: 0px;">
<tr>
<td id="collabsoft_td"style="border:0px;">
<div scrolling="no" id="collabsoft" name="collabsoft" style="color: #003366; left:200px; display:none;position: absolute; border: 5px #1f487c solid; width: fit-content; height: fit-content; border-radius: 10px;"></div>
</td>
</tr>
</table>
使用浏览器历史记录小部件来跟踪页面。通过这种方式,您可以启用“后退”按钮,并且可以跟踪用户访问的所有页面。请注意,is的学习曲线有点陡峭 是的,我想jQuery烧烤很棒。但就我最近的情况而言,我用。。它简单、轻便,为我完成了这项工作 我没有使用面包屑,但是对于页面标题,我使用了
$(“#pageheader”).text(“div1/div2的标题”)代码>使用jQuery加载相应的div时
$("#nav a").click(function(event) {
event.preventDefault();
var page = $(this).attr("href");
$("#collabsoft").slideUp("500",function() {
$("#collabsoft").load(page,function() {
$(this).slideDown(500);
});
});
return false;
});