facebook

Hide Image Function

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #350629 Reply

    Nie Que
    Member

    Hi, Im making a web app using Mobione. Im working on the header of my app and use image widget for it. I want to auto hide the Image when the content of the website is loaded.

    Is there any code that will hide the image header?? i really need your help .. thank you.

    #350663 Reply

    Code_A
    Member

    You can use .show() and .hide() to do this.

     $('#m1-<screen>-image1').show(); //show image
     $('#m1-<screen>-image1').hide(); //hide image
    #350697 Reply

    You might want to take a look at this Wayne’s reply about problems with .show() / .hide():
    https://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=2031

    #350698 Reply

    Code_A
    Member

    Duly noted. Will be sure to use (and suggest) the css method from now on.

    $('#m1-<screen>-image1').css('visibility', 'visible');  //show image
    $('#m1-<screen>-image1').css('visibility', 'hidden');  //hide image
Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Hide Image Function

You must be logged in to post in the forum log in