日期:2014-05-17  浏览次数:20491 次

php 切换背景颜色或背景图片或是切换模板是怎样实现的~
如题:简单点就好!最好是有代码~~!!!一定要说清楚。

------解决方案--------------------
一定要说清楚。你想怎么切换? 你的出发点在哪?
------解决方案--------------------
你究竟想干嘛?
------解决方案--------------------
切换css或者切换文件夹
------解决方案--------------------
光标移到哪个行 那个行背景颜色变黄 光标移开恢复原来颜色的方法:
一.HTML:

<TR style="FONT-WEIGHT: bold; FONT-STYLE: normal; BACKGROUND-COLOR: white; TEXT-DECORATION: none"    onMouseOver="this.style.backgroundColor='yellow'"onMouseOut="this.style.backgroundColor='white'">


二.jQuery:
1.先写好CSS:

<style>
.tr1{ font-weight: bold; font-style:normal; background-color: white; text-decoration:none; }
.over{ background:yellow}
</style>

2.jQuery方法:

<script src="../js/jquery-1.5.1.min.js" type="text/javascript"></script> //记得包含jQuery插件文件
<script type="text/javascript">
$(function(){
    $(".tr1").bind("mouseover mouseout",function(){
     $(this).toggleClass("over");
});
});
</script>


3.html代码:

<TR class="tr1"><TD width="10%">姓名</TD></TR>
<TR class="tr1"><TD width="10%">密码</TD></TR>
<TR class="tr1"><TD width="10%">姓名</TD></TR>
<TR class="tr1"><TD width="10%">密码</TD></TR>






------解决方案--------------------
PHP切换模板,cms比较好,http://bbs.phpcms.cn/forum.php
------解决方案--------------------
搞多套css样式,切换之