2015-05-07 09:53:34 +08:00
|
|
|
<script type="text/javascript">
|
|
|
|
//头部导航
|
|
|
|
var menuids=["TopUserNav"] //Enter id(s) of SuckerTree UL menus, separated by commas
|
|
|
|
function buildsubmenus(){
|
|
|
|
for (var i=0; i<menuids.length; i++){
|
|
|
|
var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
|
|
|
|
for (var t=0; t<ultags.length; t++){
|
|
|
|
ultags[t].parentNode.getElementsByTagName("a")[0].className="subfolderstyle"
|
|
|
|
ultags[t].parentNode.onmouseover=function(){
|
|
|
|
this.getElementsByTagName("ul")[0].style.display="block"
|
|
|
|
}
|
|
|
|
ultags[t].parentNode.onmouseout=function(){
|
|
|
|
this.getElementsByTagName("ul")[0].style.display="none"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-04-07 13:47:39 +08:00
|
|
|
|
2015-05-07 09:53:34 +08:00
|
|
|
if (window.addEventListener)
|
|
|
|
window.addEventListener("load", buildsubmenus, false)
|
|
|
|
else if (window.attachEvent)
|
|
|
|
window.attachEvent("onload", buildsubmenus)
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/javascript">//侧导航
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function show_newtalk()
|
|
|
|
{
|
|
|
|
$("#about_newtalk").toggle();
|
|
|
|
}
|
2015-05-07 17:38:08 +08:00
|
|
|
|
2015-05-08 13:04:25 +08:00
|
|
|
function show_newtalk1(id)
|
|
|
|
{
|
|
|
|
$(id).toggle();
|
|
|
|
}
|
2015-05-07 09:53:34 +08:00
|
|
|
</script>
|
2015-04-07 13:47:39 +08:00
|
|
|
<% if @project %>
|
|
|
|
<%= render :partial => 'project_show', locals: {project: @project} %>
|
|
|
|
<% elsif @course %>
|
|
|
|
<%= render :partial => 'course_show', locals: {course: @course} %>
|
|
|
|
<% end %>
|