/    Sign up×
Community /Pin to ProfileBookmark

Hide the text from showing

With the following code I want to hide the txt with out having to re write the whole page … Or is that my only option?

<SPAN ID=”copytext2″ STYLE=”height:*;width:200;background-color:#ffffff;Font size:10″>
Not Contacted will attempt again on
<script type=”text/javascript”>
<!–
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate() + 1
var year = currentTime.getFullYear()
document.write(month + “/” + day + “/” + year)
//–>
</script>
</SPAN>
<TEXTAREA ID=”holdtext2″ STYLE=”display:none;”>
</TEXTAREA><br><br>
<BUTTON onClick=”ClipBoard2();”>Next Day</BUTTON>

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@wbportJan 07.2013 — You could run a **.style.visibility = 'hidden' command from a (body onload=***) or, if you have other things to do at startup, in a function the[B]onload[/B] kicks off. I often have something like function startup() {
document.penta.DeBugging.checked=false;
var dloc = document.location.toString();
var DeBugging = document.getElementById("DeBugging")
if (dloc.slice(0,4) != "file") {
DeBugging.style.visibility = 'hidden'; }
}
in my pages to populate text areas with test data from a checkbox only available when running the page from my computer.
×

Success!

Help @ricmch spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...