Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 ASP VBScript Replace
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

AceC
New Member

Cyprus
68 Posts

Posted - 25 August 2001 :  06:18:49  Show Profile  Visit AceC's Homepage  Send AceC an ICQ Message
How can I use this to replace text eg the text used for the smilies into what I want.

ON the forum, the code is truned into an image from a reference in a table.

What I want to do, is replace a word with a hyperlink. I envisage this working in much the same way as the smilies where there would be a table containing a list of words and their links.

But how is it done?

And the hit's just keep on comin'

Craig from Alberta
Starting Member

Canada
7 Posts

Posted - 28 August 2001 :  17:13:17  Show Profile  Visit Craig from Alberta's Homepage
You're horribly vague in what you are asking!

Hyperlink to what??

Anyway, I assume you need something like this:

word = "Whatever the heck the word is"
link = Replace(word,word,"<A HREF=" & Chr(34) & word & Chr(34) & ".htm>" & word & "</A>")

or even simpler

link = "<A HREF=" & Chr(34) & word & Chr(34) & ".htm>" & word & "</A>"

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07