Closed Thread
Results 1 to 5 of 5

Thread: [200 Credits] Automatic Word Linking Like 'Wikipedia'

  1. #1
    ashwinsinha's Avatar
    ashwinsinha is offline x10 Lieutenant ashwinsinha is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Noida, Uttar Pradesh, India
    Posts
    278

    [200 Credits] Automatic Word Linking Like 'Wikipedia'

    Is there any way i can add a javascript or something to my website's pages so that certain words on every page regarded or regardless of the case automatically hyperlink to another web page as directed in the javascript or in any other document.
    For Example,
    I add the script in the head section of each page,
    HTML Code:
    <head>
    <script src="autolink.js"> </script>
    </head>
    In the javascript it is specified,
    HTML Code:
    ubisoft = http://www.ubi.com/
    Therefore, all the words in my HTML document named as ubisoft are automatically hyper linked to the page.

    It's pretty easy to work around a functional script using VBscript or javascript except for adding the link part to it.
    So if anyone could actually get around with something or help me with a pre-available script for free or so or if would give me a link, i'd be greatful !

    Remember, It is not impossible, it's there in the wikis that use xml.
    If you find a feature like this for wordpress or a wordpress plugin, it'll be further pleasure like an ice-cream with a topping !

    Thanking You,
    - Ashwin Sinha


  2. #2
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: [200 Credits] Automatic Word Linking Like 'Wikipedia'

    http://www.randomsnippets.com/2008/0...ia-javascript/

    This tutorial describes how to use javascript to find and replace strings. So, we tell it to find "ubisoft" and replace it with "<a href="http://ubi.com">ubisoft</a>" etc.

    If you need further help, let me know
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  3. #3
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: [200 Credits] Automatic Word Linking Like 'Wikipedia'

    Or you could all hide that procedure to the user by doing it server side, using php, and parsing the output.
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  4. #4
    kbjradmin's Avatar
    kbjradmin is offline x10 Elder kbjradmin is an unknown quantity at this point
    Join Date
    Feb 2008
    Location
    Washington State, USA
    Posts
    512

    Re: [200 Credits] Automatic Word Linking Like 'Wikipedia'

    i personally would use php, but i think that's mostly because i don't like javascript.

  5. #5
    ashwinsinha's Avatar
    ashwinsinha is offline x10 Lieutenant ashwinsinha is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Noida, Uttar Pradesh, India
    Posts
    278

    Re: [200 Credits] Automatic Word Linking Like 'Wikipedia'

    Hi Guys !,
    Thanks for all the help but i found these cool plugins for wordpress such as KBlinks, Alinks, CrossLinker etc. !
    So i close this ..

    Thanks guyz for all the help !
    Cheers
    - Ashwin


Closed Thread

Similar Threads

  1. Replies: 0
    Last Post: 12-21-2008, 07:38 PM
  2. [req] [200 Credits] Name For Site
    By intertec in forum The Marketplace
    Replies: 1
    Last Post: 09-14-2008, 04:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers