Hur gjorde man...
6 svar · 207 visningar · startad av sin_adec
Men hur ser koden ut... om man vill göra så där...
Sök på forumkod i asp.
( http://www.webforum.nu/search.php?s=&action=showresults&searchid=58962&sortby=&sortorder= )
<%
strPress = Trim(Ucase(Recset("beskrivning")))
strPress = Replace (strPress,vbCrLf,"<br>")
strPress = Replace(strPress,"[fet]","<B>")
strPress = Replace(strPress,"[/fet]","</B>")
strPress = Replace(strPress,"","<u>")
strPress = Replace(strPress,"","</u>")
strPress = Replace(strPress,"","<i>")
strPress = Replace(strPress,"","</i>")
strPress = Replace(strPress,"[vit]","<font color=""#ffffff"">")
strPress = Replace(strPress,"[/vit]","</font>")
strPress = Replace(strPress,"[blå]","<font color=""#0000FF"">")
strPress = Replace(strPress,"[/blå]","</font>")
strPress = Replace(strPress,"[gul]","<font color=""#FFFF00"">")
strPress = Replace(strPress,"[/gul]","</font>")
strPress = Replace(strPress,"[röd]","<font color=""#FF0000"">")
strPress = Replace(strPress,"[/röd]","</font>")
strPress = Replace(strPress,"[orange]","<font color=""#FF9933"">")
strPress = Replace(strPress,"[/orange]","</font>")
strPress = Replace(strPress,"[grön]","<font color=""#00CC00"">")
strPress = Replace(strPress,"[/grön]","</font>")
strPress = Replace(strPress,"[grå]","<font color=""#999999"">")
strPress = Replace(strPress,"[/grå]","</font>")
strPress = Replace(strPress,"[rosa]","<font color=""#FF6699"">")
strPress = Replace(strPress,"[/rosa]","</font>")
strPress = Replace(strPress,"[lila]","<font color=""#660066"">")
strPress = Replace(strPress,"[/lila]","</font>")
strPress = Replace(strPress,"[ljusblå]","<font color=""#CCCCFF"">")
strPress = Replace(strPress,"[/ljusblå]","</font>")
Response.Write strPress
%>
varför funkar den inte..
När jag använde:
strPress = Trim(Ucase(Recset("beskrivning")))
Så funkar det inte...
men när jag byter ut det med:
strPress = Trim(Recset("beskrivning"))
så¨funkar det--
Varför skall du ha i stora bokstäver?
:q ->
strPress = Replace(strPress,"","<u>")
strPress = Replace(strPress,"","</u>")
strPress = Replace(strPress,"","<i>")
strPress = Replace(strPress,"","</i>")