» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > ASP forums and Tips

ASP forums and Tips Talk about ASP Scripting. .net and Cold Fusion as well.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-23-2006, 03:00 PM
messiah messiah is offline
Junior Member
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
messiah is on a distinguished road
Default vbscript - auto hyperlink words in content that exist in DB

In say, a dictionary of terms with definitions, (in a database) how can i hyperlink (automatically) words within the definitions for which a definition also exists.

url structure is like this

www.site.com/glossary?word=someword

Then - in the definition of "someword" there is a word that also has a definition in the database. I'd like to auto hyperlink it to that definition.

Thanks a million for your replies -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-23-2006, 03:02 PM
prestor prestor is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
prestor is on a distinguished road
Default

When your running through your loop of text to display find and wrap your word:

so say your doing a loop and this is what will be outputted:

www.site.com/glossary?word=someword1
Copy for someword1

www.site.com/glossary?word=someword2
copy for someword2

www.site.com/glossary?word=someword3
copy for someword3

in each loop iteration do a replace(currentCopyBlock, wordTerm, "<a href=""http:www.site.com/glossary?word=" & wordTerm & """>blah</a>")

this should replace your current wordTerm with anchor around + the word term your looking for -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  #3  
Old 08-23-2006, 03:04 PM
49ers 49ers is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
49ers is on a distinguished road
Default

if you are talking about something like itellitext does, then you'll need to learn some basics of JavaScript.
Besides your URLs don't work.
All the best -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Asbru Releases Web Content Management v6.0 outsourcingplans Web Hosting Industry 0 03-13-2006 05:04 PM


All times are GMT. The time now is 01:22 AM.