Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. HELP! using Replace function to replace letters with images

HELP! using Replace function to replace letters with images

Scheduled Pinned Locked Moved ASP.NET
helpquestioncom
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    icecandy
    wrote on last edited by
    #1

    Hey how is everyone doing today? This is a ASP VBS question, I wasnt sure if I should post in here or in the visual basic forum so I apologize if this is the wrong place for this question. I am trying to create a asp page that will take the text from an input and for each letter change it into a specified image. I am creating a generator so I can make a ton of animated letter images and they will be displayed instead of regular text depending on what the user enters. Here is what I have tried already. The problem is, it replaces the c's in the "b" ") sGlitter = Replace(sGlitter, "c", "") Glitter = sGlitter End Function Response.Write Glitter(sGlitter) %>

    C T 2 Replies Last reply
    0
    • I icecandy

      Hey how is everyone doing today? This is a ASP VBS question, I wasnt sure if I should post in here or in the visual basic forum so I apologize if this is the wrong place for this question. I am trying to create a asp page that will take the text from an input and for each letter change it into a specified image. I am creating a generator so I can make a ton of animated letter images and they will be displayed instead of regular text depending on what the user enters. Here is what I have tried already. The problem is, it replaces the c's in the "b" ") sGlitter = Replace(sGlitter, "c", "") Glitter = sGlitter End Function Response.Write Glitter(sGlitter) %>

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      icecandy wrote:

      question, I wasnt sure if I should post in here or in the visual basic forum so I apologize if this is the wrong place for this question.

      Neither. Outdated and dead web technologies belong in the web development forum. Why on earth would you use ASP ? Do you hate yourself ? ASP was a nightmare.

      Christian Graus Driven to the arms of OSX by Vista.

      1 Reply Last reply
      0
      • I icecandy

        Hey how is everyone doing today? This is a ASP VBS question, I wasnt sure if I should post in here or in the visual basic forum so I apologize if this is the wrong place for this question. I am trying to create a asp page that will take the text from an input and for each letter change it into a specified image. I am creating a generator so I can make a ton of animated letter images and they will be displayed instead of regular text depending on what the user enters. Here is what I have tried already. The problem is, it replaces the c's in the "b" ") sGlitter = Replace(sGlitter, "c", "") Glitter = sGlitter End Function Response.Write Glitter(sGlitter) %>

        T Offline
        T Offline
        treputt
        wrote on last edited by
        #3

        So does each letter have a unique image then? I would build your image string separately and not use Replace. I'm not a VB coder so here's some pseudo code: sGlitter = Request.Form("text") imageString = "" For Each Letter ltr in sGlitter imageString = imageString & "<img src=http://www.icecandyeffects.com/glitter2/pink1/" & ltr & ".gif>" End For Sorry for the inexact code, but you get the idea???

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups