NameSilo

Need help with a EXTREMELY simple code...

NamecheapNamecheap
Watch

Sabre

First Time Poster!Top Member
Impact
628
How do you make it so that, just say i had

<body>
Hellooooo <a href="/radio.php">Radio</a>
</body>

And i didnt want the Helloooo to show up on the page at all, what is the code i would put in to hide it, but keep it on the page, so i can go back for future reference?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
you could make the heloo color the same as the background color.

eg

<body>
<font color = #FFFFFF>Hellooooo</font> <a href="/radio.php">Radio</a>
</body>
 
0
•••
HTML:
<body>
<!-- Hellooooo --> <a href="/radio.php">Radio</a>
</body>
 
0
•••
Mikor, you are hiding the text with a font color that is the same as the bgcolor.

V2, you are correct. I will also tell sabre the same thing, to use comment tag.

I think you got yer doubt cleared Sabre.!
 
0
•••
The text in HTML comments can be viewed by viewing the source of the page.

Enclose the text in PHP comments if you don't want it to be visible at all.
 
0
•••
compuXP said:
The text in HTML comments can be viewed by viewing the source of the page.

Enclose the text in PHP comments if you don't want it to be visible at all.

So, how do i do that?

Does that mean SV's will show up?

(Sorry about all this guys)
 
0
•••
or put on deperate lines with // for instance :
<body>
//hellooooo
<a href="/radio.php">Radio</a>
</body>

that may only work for php though im not sure
 
0
•••
Sabre said:
So, how do i do that?

Does that mean SV's will show up?

(Sorry about all this guys)
No, it does not show up on the page itself.

HTML:
<body>
<!-- Hellooooo --> <a href="/radio.php">Radio</a>
</body>

And all you would see is the link:

Radio

What compuXP is saying that if someone views the source of the page, that they can see the comment.

tony84 said:
or put on deperate lines with // for instance :
<body>
//hellooooo
<a href="/radio.php">Radio</a>
</body>

that may only work for php though im not sure
In HTML, //Something, will showup.
 
0
•••
Are you using php or html?
 
0
•••
HTML... but in a .php file (as always)

I need it so that you cant view it ANYWHERE, apart from in the cpanel file... no source, no selecting on screen with mouse etc.
 
0
•••
Sabre said:
HTML... but in a .php file (as always)

I need it so that you cant view it ANYWHERE, apart from in the cpanel file... no source, no selecting on screen with mouse etc.
Old thread, but anyway.. You are using a PHP file? Just use comments...

PHP:
<?php

//This is a single line comment

/*
Or you could use this method for multi line comments
*/

?>

So, for your needs, could do something like:

PHP:
<?php

//Hellooooo
echo '<a href="/radio.php">Radio</a>';

?>
 
0
•••
SecondVersion said:
Old thread, but anyway.. You are using a PHP file? Just use comments...

PHP:
<?php

//This is a single line comment

/*
Or you could use this method for multi line comments
*/

?>

So, for your needs, could do something like:

PHP:
<?php

//Hellooooo
echo '<a href="/radio.php">Radio</a>';

?>

Cheers SV!

I would leave rep.. but;

"You must spread some Reputation around before giving it to SecondVersion again."
 
0
•••
PHP:
<?php

//Hellooooo
echo '<a href="/radio.php">Radio</a>';

?>

Of

PHP:
/*hello*/<a href="/radio.php">radio</a>

-Coolprogram
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back