请问同一个asp不同栏目如何换banner图片

2025-03-10 08:31:05
推荐回答(2个)
回答1:

页面里面插入以下代码:
<%
dim t
t=request.querystring("id")

dim action1
if t="" or t="1" then
action1="1.jpg"
end if

if t="2" then
action1="2.jpg"
end if

if t="3" then
action1="3.jpg"
end if

if t="4" then
action1="4.jpg"
end if

%>

最后在调用banner图片的地方图片代码写

回答2:

根据id来跟换banner的图片

如:
select case request("id")
case 1
bannerUrl="1.jpg"
case 2
bannerUrl="2.jpg"
end select

banner图片