Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to invisible the text?

How to invisible the text?

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DotNet
    wrote on last edited by
    #1

    I have one I want to make it dispear after 3 seconds. Please help.

    D 1 Reply Last reply
    0
    • D DotNet

      I have one I want to make it dispear after 3 seconds. Please help.

      D Offline
      D Offline
      DotNet
      wrote on last edited by
      #2

      It is a SPAN - display text.

      C 1 Reply Last reply
      0
      • D DotNet

        It is a SPAN - display text.

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Anything that happens on the client needs to happen in Javascript. You can set a timer in JScript, and then you can just clear the text in the span. You should avoid doing this, you immediately open yourself up to having to make your code compatible with every weird browser that may ever look at your page. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

        R 1 Reply Last reply
        0
        • C Christian Graus

          Anything that happens on the client needs to happen in Javascript. You can set a timer in JScript, and then you can just clear the text in the span. You should avoid doing this, you immediately open yourself up to having to make your code compatible with every weird browser that may ever look at your page. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

          R Offline
          R Offline
          Ryan Bost
          wrote on last edited by
          #4

          I completely agree with Christian in that you will have to test/support this in different browsers. I supplied some code that was tested in IE 6. Christian suggested clearing the text in the span (setting innerText to ""). However, I just hid the text that was there in case it needed to be displayed later. function hideText() { document.getElementById("TextToHide").style.display = "none"; } function runHideTextTimer() { window.setTimeout('hideText()', 3000) } Here is the text you want to hide. Hope this helps. Ryan Bost http://www.sugarcoding.com

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups