1.查看morespace.asp显示页的源代码,找到相应位置的代码,如下:
<script src="js/prototype.js" language="javascript"></script>
<script src="js/ks.space.js" language="javascript"></script>
<script src="js/ks.space.page.js" language="javascript"></script>
<link href="css/css.css" type="text/css" rel="stylesheet">
<div id="spacemain"><script language="javascript" defer>SpacePage(1,'space&classid=53&recommend=')</script></div><div id="kspage"></div>
2.将<link href="css/css.css" type="text/css" rel="stylesheet">删除,则调用的是首页的css.
3.可以调整css.css样式表,不过要注意用户空间也使用这个样式表,所以那个要改成其他的.
//解决空间分类参数传输问题.
<script language="JavaScript1.1">
<!-- Hide from older browsers
function formInput() {
// empty object
}
var valueOf = new formInput();
var pairs = document.location.search.substring(1).split("&");
for (var i=0; i < pairs.length; i++) {
var values = pairs[i].split("=");
valueOf[values[0]] = unescape(values[1]);
}
// Stop hiding -->
</script>
<script src="js/prototype.js" language="javascript"></script>
<script src="js/ks.space.js" language="javascript"></script>
<script src="js/ks.space.page.js" language="javascript"></script>
<div id="spacemain"><script language="javascript" defer>
SpacePage(1,'space&classid='+valueOf[values[0]]+'&recommend=')
</script></div><div id="kspage"></div>