Results 1 to 6 of 6

Thread: Script to turn all links into javascript or redirects

  1. #1
    Chronic Entrepreneur
    Join Date
    Nov 2003
    Location
    Tulsa, Oklahoma, USA
    Posts
    1,112

    Script to turn all links into javascript or redirects

    Can anyone point me to a script or program that will go through an html file (or preferably a list of html files) and change all links into javascript links or redirects?

    I seem to remember Mike talking about working on something like this in the past. Mike, did you have any luck?

  2. #2
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    You could do a find/replace operation in a text editor. If it supports regular expressions it'd be even easier.
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  3. #3
    Roll Tide! mobilebadboy's Avatar
    Join Date
    Apr 2004
    Location
    Mobile, AL
    Posts
    428
    Actual Search and Replace has been my savior over the past years. Sometimes I use it alot strictly for searching when I know something's in a file on my computer, but I just can't remember what the file name is or where it's located.
    Shawn Kerr .com

  4. #4
    Senior Member chromate's Avatar
    Join Date
    Aug 2003
    Location
    UK
    Posts
    2,348
    If you have access to your server via SSH you could use the grep command to do it I think. Can't remember exactly how though.

  5. #5
    Registered Member incka's Avatar
    Join Date
    Aug 2003
    Location
    Wakefield, UK, EU
    Posts
    3,801
    I used actual s&r until I converted to database driven php.

  6. #6
    Registered
    Join Date
    Oct 2014
    Posts
    14
    Thank you for the*informative*posts.

Similar Threads

  1. How Do You Use Javascript Links?
    By incka in forum Search Engine Optimization
    Replies: 27
    Last Post: 12-27-2003, 03:28 PM
  2. Javascript Links
    By Mike in forum HTML, CSS, Layout, and Design
    Replies: 19
    Last Post: 12-25-2003, 09:34 AM
  3. Do javascript links still "refer" ?
    By Percept in forum Search Engine Optimization
    Replies: 2
    Last Post: 11-12-2003, 06:03 PM
  4. Affiliate Links Using Javascript
    By Mike in forum Advertising & Affiliate Programs
    Replies: 4
    Last Post: 08-18-2003, 09:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •