Forums
This topic is locked
Problem with layer positioning on page
Posted 14 Mar 2012 13:47:34
1
has voted
14 Mar 2012 13:47:34 Michelle Weiler posted:
I am in need of help. I have one layer that depending upon what is selected determines the position on the page for the layer to show up. For example: If a person selects a Votive Light the message layer will show up at one position on the view page. If a person does not select a Votive Light the message will show up at a different position on the view page. I can get the position of the layer to work individually but when I put the positioning together in one statement it only does one of the positions. Here is the code I am using:<div id="message" style="position:absolute; z-index:5; left: 320px; top: 80px; width: 385px; visibility: <% If (Session("VLS") <> "") Then %>visible; position:absolute; left: 320px; top: 404px; width:385px; <% End If %><% If (Session("VLS") = "") Then %>visible; position:absolute; left:320px; top:80px; width:385px; <% End If %>"> <font color="#000000" size="2" face="Arial, Helvetica, sans-serif"> < % 'Read in the value of the TEXTAREA Dim strMessage2 strMessage2 = Request.Form("Message") 'Replace all vbCrLf with <BR>s strMessage2 = Replace(strMessage2, vbCrLf, "<BR>") 'Replace all quotes with "s strMessage2 = Replace(strMessage2, """", """) 'Replace all spaces with 'strMessage2 = Replace (strMessage2, " ", " ") 'Output the formatted TEXTAREA value: Response.Write strMessage2 %> </font> </div>
Please help. I have to be doing something wrong. I would think that this should be able to work. Right? If this can't work is there another way to accomplish this?