+ Reply to Thread
Results 1 to 6 of 6
Like Tree3Likes
  • 1 Post By royal.prnvd
  • 1 Post By VPmase
  • 1 Post By simon.evanz48

Thread: how to make some text in web page visible after 20 sec.

  1. #1
    royal.prnvd is offline x10Hosting Member royal.prnvd is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    9

    how to make some text in web page visible after 20 sec.

    i am new and i like to hide some text in webpage/html for atleast 20 sec. or 30 sec., and also timer should run like 20 19 18 17 ..... so that other know how much time is left,

    and yes, this script do not reload the page, its just hide text and display when timer is off

    ---------- Post added at 01:43 PM ---------- Previous post was at 11:47 AM ----------

    anyone help plzzz
    dinomirt96 likes this.

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: how to make some text in web page visible after 20 sec.

    Nothing is always absolutely so.

  3. #3
    VPmase's Avatar
    VPmase is offline x10 Elder VPmase is an unknown quantity at this point
    Join Date
    Nov 2007
    Location
    Dixon, IL, USA
    Posts
    914

    Re: how to make some text in web page visible after 20 sec.

    Here is a quick script:
    In your <head> tags put this:
    [code]<script>
    function cDown(x, wrd){
    if(x>0){
    setTimeout(cDown(x-1, wrd), 1000);
    } else {
    document.getElementById('hideText').innerHTML = "Hidden word: " + wrd;
    }
    [code]
    And put this in your body tag so it looks like
    Code:
    <body onload="cDown('20', 'Mase is cool! :)';">
    And have a div like this somewhere in the body:
    Code:
    <div id="hideText">20</div>

    Now I haven't tested this since I just wrote in on the spot so you might have to do some debugging. if you need more help just reply to this post.
    mukhi likes this.

  4. #4
    mukhi is offline x10Hosting Member mukhi is an unknown quantity at this point
    Join Date
    Mar 2010
    Posts
    21

    Re: how to make some text in web page visible after 20 sec.

    cool gud job!!!

  5. #5
    samayeuf41 is offline x10Hosting Member samayeuf41 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    8

    Re: how to make some text in web page visible after 20 sec.

    Thx u very much bro .!!

  6. #6
    simon.evanz48 is offline x10Hosting Member simon.evanz48 is an unknown quantity at this point
    Join Date
    Jun 2011
    Location
    Wales, UK
    Posts
    24

    Thumbs up Re: how to make some text in web page visible after 20 sec.

    A really cool jQuery Plugin which enables you to visually control the appearance of your webpage elements or complete sections of your site, basically, any inline or block level tags.

    The beauty of this plugin and jQuery as a whole is that you don't really have to get your hands dirty with DOM manipulation its pretty much taken care of with this library

    The name of this fab plugin is called jQuery BlockUI Plugin (v2).

    This may come in handy say for instance to block user activity for the page:

    Code:
    $.blockUI();
    Blocking with a custom message:

    Code:
    $.blockUI({ message: '<h1><img src="busy.gif" /> Just a moment...</h1>' });
    Blocking with custom style:

    Code:
    $.blockUI({ css: { backgroundColor: '#f00', color: '#fff'} });
    To unblock the page:
    Code:
    $.unblockUI();

    If you want to use the default settings and have the UI blocked for all ajax requests, it's as easy as this

    Code:
    $(document).ajaxStart($.blockUI).ajaxStop($.unblockUI);
    You may also find this demo section helpful too..
    karimirt47 likes this.

+ Reply to Thread

Similar Threads

  1. to make files uploaded to public_html folder visible on website
    By shashankkmr0038 in forum Free Hosting
    Replies: 1
    Last Post: 06-15-2011, 02:20 PM
  2. deleted web page visible
    By shashankkmr0038 in forum Free Hosting
    Replies: 1
    Last Post: 06-15-2011, 08:29 AM
  3. Replies: 3
    Last Post: 11-30-2010, 04:23 PM
  4. PHP Gabble Visible on PAge
    By online87 in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 12-13-2007, 04:45 PM
  5. Im gonna make a PHP text based game
    By Xenon Design in forum Off Topic
    Replies: 25
    Last Post: 10-19-2006, 05:44 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers