软件教程

利用asp实现网站换肤功能

来源: 本站    类别: 软件教程    日期: 2015/7/1

 

先制作2套CSS样式表文件

a.css和b.css

默认为a.css

然后程序代码如下:

以下是ASP源代码:
Dim strStyle
strStyle = Trim(Request.QueryString("style"))
If strStyle<>"b" Then
    strStyle = "a"
End If
<link href="<%=strStyle%>.css" rel="stylesheet" type="text/css" />
<a href="?style=b">切换b.css方案</a>

相关文章


Copyright © 2004 - 2024 CNHWW Inc. All Rights Reserved
石家庄市征红网络科技有限公司版权所有 邮政编码:050051
服务电话:0311-85315152 13931185013 在线客服QQ:81447932 / 81447933 邮箱: cnhww@163.com