Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 11-30-2004, 03:59 PM   #1
Member (12 bit)
 
fatboyjim's Avatar
 
Join Date: Feb 2001
Location: UK
Posts: 2,469
Automatically linking certain words

This thought just popped into my head, excuse me if it's a bit weird/impossible

If you had a large website with pages of jargon that needed to be referenced back to a jargon buster/glossary page, what would be the easiest way of getting every occurence of a chosen word to link to that section of the glossary?

Can it be done with, I dunno style sheets or something?

:S
cheers
jim
__________________
Jim
fatboyjim is offline   Reply With Quote
Old 11-30-2004, 04:21 PM   #2
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Stylesheets wouldn't help any. You could possibly use Javascript something like this site uses for the ad links. That can be a bit heavy on the browser sometimes if there are a lot of words on the page.

If your pages are in a database then, you could probably use regular expressions to change various words when they are entered into the database. In other words, you enter the word, fatboyjim and it converts that word to fatboyjim. That wouldn't be extremely difficult to do but would require some testing to work out some of the bad data.
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:12 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2