---
title: "Vis......"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/14427-vis"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "JonasT"
published: "2002-02-13T08:55:00.000Z"
updated: "2002-02-14T09:24:00.000Z"
replies: 7
views: 559
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/asp/14427-vis"
---

# Vis......

## #1 — JonasT, 2002-02-13T08:55Z

Hej.
Jag har en replace funktion som ex byter ut : ) mot :). Men jag vill att tex när man skriver i formuläret : ) så ska :) den synas där oxå. så at tdet inte står : ) där uten det :)  står. Såhär ser koden ut där allt presenteras:

```
strPress = Trim(Strang(rs4("beskrivning")))
strPress = Replace (strPress,vbCrLf,"<br>")
strPress = Replace(strPress,"[fet]","<B>")
strPress = Replace(strPress,"[/fet]","</B>")
strPress = Replace(strPress,"[u]","<u>")
strPress = Replace(strPress,"[/u]","</u>")
strPress = Replace(strPress,"[i]","<i>")
strPress = Replace(strPress,"[/i]","</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>")

strPress = Replace(strPress,":)","<IMG SRC=""/jonas/db/bilder/smileys/glad.gif"">")
strPress = Replace(strPress,";)","<IMG SRC=""/jonas/db/bilder/smileys/blink.gif"">")
strPress = Replace(strPress,"8)","<IMG SRC=""/jonas/db/bilder/smileys/cool.gif"">")
strPress = Replace(strPress,"})","<IMG SRC=""/jonas/db/bilder/smileys/devil.gif"">")
strPress = Replace(strPress,":(","<IMG SRC=""/jonas/db/bilder/smileys/sur.gif"">")
strPress = Replace(strPress,":Z","<IMG SRC=""/jonas/db/bilder/smileys/trott.gif"">")
strPress = Replace(strPress,":P","<IMG SRC=""/jonas/db/bilder/smileys/tunga.gif"">")
strPress = Replace(strPress,":D","<IMG SRC=""/jonas/db/bilder/smileys/smile.gif"">")
strPress = Replace(strPress,"&#0124;(","<IMG SRC=""/jonas/db/bilder/smileys/frusty.gif"">")
strPress = Replace(strPress,":A","<IMG SRC=""/jonas/db/bilder/smileys/puh.gif"">")
strPress = Replace(strPress,":B","<IMG SRC=""/jonas/db/bilder/smileys/sadley.gif"">")
strPress = Replace(strPress,":C","<IMG SRC=""/jonas/db/bilder/smileys/sleephappy.gif"">")
strPress = Replace(strPress,":E","<IMG SRC=""/jonas/db/bilder/smileys/vork.gif"">")
strPress = Replace(strPress,":L","<IMG SRC=""/jonas/db/bilder/smileys/pukey.gif"">")

Response.Write strPress
```

Tacksam för svar

\[Redigerat av JonasT den 13 feb 2002\]

Permalänk: https://www.webforum.nu/p/14427

## #2 — Jesper T, 2002-02-13T09:27Z

Misstänker att detta blir lite svårt, något måste väl exekveras innan man kan göra en replace?!!!

Fråga någon guru!

MVH Jesper T

Permalänk: https://www.webforum.nu/p/310414

## #3 — Herman, 2002-02-13T12:51Z

Går det inte bara att lägga till

strPress = Replace(strPress,": )","\<IMG SRC=""/jonas/db/bilder/smileys/glad.gif""\>")

??

Permalänk: https://www.webforum.nu/p/310415

## #4 — Pace, 2002-02-13T21:45Z

Det går väl inte att köra HTML i forumlär heller...

Permalänk: https://www.webforum.nu/p/310416

## #5 — JonasT, 2002-02-13T21:55Z

Asså...om ja skriver : ) så visas det :). Men jag vill att det ska synas direkt i formet när man skriver

Permalänk: https://www.webforum.nu/p/310417

## #6 — icaaq, 2002-02-13T22:05Z

Du kan inte få in bilder i en textarea.

mvh icaaq

Permalänk: https://www.webforum.nu/p/310418

## #7 — Jesper T, 2002-02-13T22:30Z

> Du kan inte få in bilder i en textarea.

Jo, som bakgrunder! ;)

Men det ärkanske inte så snyggt, en textruta fylld med gubbar i en rad?!

MVH Jesper T

Permalänk: https://www.webforum.nu/p/310419

## #8 — hopparn, 2002-02-14T09:24Z

hehe, kanske kan sätta fixed och centrera den som bakgrund ;)

Permalänk: https://www.webforum.nu/p/310420

---

Tråden på webben: https://www.webforum.nu/amne/asp/14427-vis
