Announcement

Collapse
No announcement yet.

Code for element appear after a few seconds.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Code for element appear after a few seconds.

    Is there any code that makes an element appear on the page after a few seconds? Like an image, a hotspot or an input?

  • #2
    don't forget Hello!
    you can use Timer in autoplay:

    OnShow:
    PHP Code:
    0
    page
    .starttimer(ID,MiliSeconds); 
    OnTimer:
    PHP Code:
    if == 0 then
    if e_ID == ID then
    1
    Image
    .SetVisible(NameObjecttrue);
    end
    end 
    good luck!

    Comment


    • #3
      Originally posted by SinaDehghani View Post
      don't forget Hello!
      you can use Timer in autoplay:

      OnShow:
      PHP Code:
      0
      page
      .starttimer(ID,MiliSeconds); 
      OnTimer:
      PHP Code:
      if == 0 then
      if e_ID == ID then
      1
      Image
      .SetVisible(NameObjecttrue);
      end
      end 
      good luck!
      I'm sorry but i couldn't understand the code, could you make an example?
      Something like:

      The element is an object called "Input1" and it would appear on the page 3 seconds after the page appears.

      Could you do that for me please?

      Comment


      • #4
        Page > On Show

        PHP Code:
        Page.StartTimer(); 

        Page > On Timer

        PHP Code:
        time=os.clock();
        if 
        time 2.999 then
        Page
        .StopTimer();
        Input.SetVisible("Input1")
        end 

        Comment


        • #5
          Originally posted by herrin View Post
          page > on show

          PHP Code:
          page.starttimer(); 

          page > on timer

          PHP Code:
          time=os.clock();
          if 
          time 2.999 then
          page
          .stoptimer();
          input.setvisible("input1")
          end 
          thank you herrin! Nice nice nice!

          Comment


          • #6
            Hello Ewertongba99!
            I make a apz for you (I tried to be as easy as possible):

            It's attachment in end!
            good luck!
            Attached Files

            Comment


            • #7
              Originally posted by SinaDehghani View Post
              Hello Ewertongba99!
              I make a apz for you (I tried to be as easy as possible):

              It's attachment in end!
              good luck!
              very good example, it helped me too. Thanks

              Comment

              Working...
              X