Using variable to select background image in div
Posted on 2006-07-10
I need to set the background image to div id depending on which site someone is at. i can determine the site from the UnivID but I cannot get the background to div id frame to show up.
I am using this to check for the UnivID and try to set the background image. Images exist and are in the right location cause I can use CSS to assign the image statically, but I need it dymanic. Anyone see a problem with this code?
<% if request.Querystring("UnivID") = "1" then
response.write("<div id='frame' background-image: url(littlerock/images/ltrk.jpg);>")
else if request.Querystring("UnivID") = "2" then
response.write("<div id='frame' background-image: url(memphis/images/memphis.jpg);>")
end if %>