Is there any way I could make specific text strings "invisible" on my web page?

For example,

If I were to specify the string "hxxp://nullrefer.com/?", I would need that text to appear invisible on my page everywhere it's mentioned, automatically.

So, if the url "hxxp://nullrefer.com/?hxxp://www.Amazon.com" were to be mentioned on my page, viewers would only be able to see the "hxxp://www.Amazon.com" portion of it. Almost as if you were to turn the Opacity of to the text down to 0% for that specific string only, everywhere it appears on the page, automatically. I need it to still physically be there, but be as invisible as possible.

Are there any scripts out there for something like this?

Recommended Answers

If it's for links you could use css, look at number 13 on this page: http://net.tutsplus.com/tutorials/html-css-techniques/the-30-css-selectors-you-must-memorize/

Jump to Post

All 2 Replies

you can use a an id and write something like this

index.html
<html>

    <head>

    <link rel="stylesheet" type="text/css" href"your.css"/>
    <script type="text/js" src="main.js"/>
    </head>
        <body>
        <div id="content">

        <a href="google.com"> your link</a><!-- goes to google -->


        </div>
        </body>
</html>


main.js

$(document).ready(function() {
   $('#content a').hide();
 });
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.