Join us at IRC!
Never in the field of human conflict was so much owed by so many to so few. - Winston Churchill
Thursday, May 24, 2012
Navigation
Members Online
Total Online: 33
Web Spiders: 15
Guests Online: 33
Members Online: 0

Registered Members: 70188
Newest Member: nuk3d
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

help with "invisible" text please

HacKid
Member



Posts: 30
Location:
Joined: 02.03.09
Rank:
Active User
Posted on 26-08-09 05:11
hi everyone,

I've been looking on google for a while and I can't find the right information for what I'm trying to do.

I want to make a code that outputs some text "invisible". I want it to show only when it is highlighted.
example:
<font color="ffffff">text here</font>

-or-
<style type="text/css">
p {text-color:#ffffff;}
</style>

<p>message here</p>

This will make the text invisible in a white background but visible when it is highlighted.

how would you go about doing this so that is is "invisible" in any background??

NOTE: CSS or HTML only please.

thanks in advance
-HacKid

EDIT: Sorry I made this thread in the wrong place of the forums... I realized it after I had already posted it.

Edited by korg on 26-08-09 07:23
Author

RE: help with "inbisible" text please

p4plus2
Member

Posts: 167
Location:
Joined: 31.03.08
Rank:
God
Posted on 26-08-09 06:01
You can give this a shot:


<html>
<head>
<style>
p{display:none;)
</style>
</head>
<body>
<p>try this!</p>
</body>
</html>




"You can't be something your not,
Be yourself by yourself
Stay away from me" ~Walk, Pantera

"Playing an acoustic guitar is like having sex with your clothes on" ~Dave Mustaine

Edited by p4plus2 on 26-08-09 06:03
p4plus2@hotmail.com
Author

RE: help with "inbisible" text please

Cybernaught
Member



Posts: 15
Location: Below Zero
Joined: 11.09.05
Rank:
Monster
Posted on 26-08-09 06:04
They only way I know how to do it is by changing it to the background color. Why would it need to be invisible on every page? Can't you just change the color of it for another page?





andrewmr_02@hotmail.com andyman35102881 http://cybernaught.darkbb.com
Author

RE: help with "inbisible" text please

p4plus2
Member

Posts: 167
Location:
Joined: 31.03.08
Rank:
God
Posted on 26-08-09 06:08
Cybernaught wrote:
They only way I know how to do it is by changing it to the background color. Why would it need to be invisible on every page? Can't you just change the color of it for another page?




From what I gather he wants text that can not be simply found by highlighting which mean changing a background color won't help. display:none; should do the trick for him.


"You can't be something your not,
Be yourself by yourself
Stay away from me" ~Walk, Pantera

"Playing an acoustic guitar is like having sex with your clothes on" ~Dave Mustaine
p4plus2@hotmail.com
Author

RE: help with "invisible" text please

COM
Banned



Posts: 800
Location:
Joined: 31.08.07
Rank:
God
Posted on 26-08-09 09:32
p4plus2 wrote:
Cybernaught wrote:
They only way I know how to do it is by changing it to the background color. Why would it need to be invisible on every page? Can't you just change the color of it for another page?




From what I gather he wants text that can not be simply found by highlighting which mean changing a background color won't help. display:none; should do the trick for him.

HacKid wrote:
I want to make a code that outputs some text "invisible". I want it to show only when it is highlighted.


Anyhow, this should do the trick:

<style>
p{
color:transparent;
}
</style>


Edit: and don't use the font tag, it's too old for the newer, cooler html standards. Use the style attribute or a span tag.


K'aem'nhi kh'rn, K'aem'nhi kh'r, K'aem'nhi kh'rmnu.
I'a Y'gs-Othoth!

Edited by COM on 26-08-09 10:54
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.