Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Senior Member echoSwe's Avatar
    Join Date
    May 2004
    Posts
    332
    Member #
    5926
    Hi!

    I've been experimenting some with having images after all the links that are directed with target="_blank", i.e. those links leading to other sites then mine.
    I'm trying to do this without parsing the document with any server-side script.
    What I'm trying is:

    a[target]:after {
    content: '<img src="images/link-after.gif" height="18" width="18" />';
    }

    assuming all links with a target attribute leads to another site. (normally links go in the currect window, hence no need for a target attribute within the site)

    The problem I get with this is that the browser doesn't render the images correctly. Say I got this HTML:

    <a href="http://www.mousebreaker.com" target="_blank">Mousebreaker</a>

    Then the result, rendered in the browser is:

    Mousebreaker<img src="images/link-after.gif" height="18" width="18" />

    Do you have any idea how to do this? And if it can't be solved with CSS, can we do it with Javascript and DOM:
    linksOnPage = document.getElementsByTagName("A"), inserting the image tag after the hyperlink?

    If this can't be done - can it be done with ASP .Net?

  2.  

  3. #2
    Senior Member echoSwe's Avatar
    Join Date
    May 2004
    Posts
    332
    Member #
    5926
    Anyone???

  4. #3
    Senior Member echoSwe's Avatar
    Join Date
    May 2004
    Posts
    332
    Member #
    5926
    It really sux noone can answer this. In another forum I got a reply after one day. Answer:

    content: url(img.gif);


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:22 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com