SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2000
    Location
    Somewhere
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Generating content via JavascriptHi,

    Hi,

    Is there anyway to include an image before all hyperlinks using javascript, instead of handcoding an image tag before all links?

    Thanks

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I don't think that can be done with JS..

    Why not open up your page in WordPad (comes with Windows, or any other word processor) go to Edit > Replace and..

    Find: <a href="
    Replace with: <img src="whatever.gif"><a href="

    Click: [Replace All]


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
  •