Sensibilium
Programmer
Below is the NOT-WORKING VBScript code for my products navigation:
[tt]<%
rsProdType.MoveFirst
Do Until rsProdType.EOF
Response.Write "<a class=nav href='prodtype.asp?type=" & rsProdType("ProductType" & "' "
Response.Write "onmouseover=window.status='" & RsProdType("StatusText" & "'; return true; "
Response.Write "onmouseout=window.status=''; return true;>"
Response.Write rsProdType("ProductType" & "</a>"
rsProdType.MoveNext
If Not rsProdType.EOF Then Response.Write " | "
Loop
%>[/tt]
Can anyone tell me how to create the onmouseover & onmouseout events WITHIN the ASP code? IE complains that there is an unterminated string...
Here is what the tag would look like in normal HTML:
[tt]<a class="nav" href="prodtype.asp?type=Tableware"
onmouseover="window.status='Tableware'; return true"
onmouseout="window.status=''; return true">[tt]
Obviously I need to find a way to represent the double-quotes for onmouseover and onmouseout and replacing them with single quotes doesn't help because of the single quotes used for the window.status text.
[tt]<%
rsProdType.MoveFirst
Do Until rsProdType.EOF
Response.Write "<a class=nav href='prodtype.asp?type=" & rsProdType("ProductType" & "' "
Response.Write "onmouseover=window.status='" & RsProdType("StatusText" & "'; return true; "
Response.Write "onmouseout=window.status=''; return true;>"
Response.Write rsProdType("ProductType" & "</a>"
rsProdType.MoveNext
If Not rsProdType.EOF Then Response.Write " | "
Loop
%>[/tt]
Can anyone tell me how to create the onmouseover & onmouseout events WITHIN the ASP code? IE complains that there is an unterminated string...
Here is what the tag would look like in normal HTML:
[tt]<a class="nav" href="prodtype.asp?type=Tableware"
onmouseover="window.status='Tableware'; return true"
onmouseout="window.status=''; return true">[tt]
Obviously I need to find a way to represent the double-quotes for onmouseover and onmouseout and replacing them with single quotes doesn't help because of the single quotes used for the window.status text.