How to hide an image

I have a rectangle box with a picture inside. How do I hide the picture via script? I want to reference the picture by name.

Final "extended" version
function GetItemFromCollection(label,collection){
    var scriptVersion = app.scriptPreferences.version;
    if( parseFloat(scriptVersion) > 6){app.scriptPreferences.version = 6}
    try{var items = collection.item(label).getElements();
        app.scriptPreferences.version = scriptVersion;
        if(items.length==0){return null;}
        if(items.length==1){return items[0];}
        return items;
    }catch(_){
        alert("No objects found");return null;
items = GetItemFromCollection("Photo0",app.activeDocument.pageItems);
if(items != null){
    if(items instanceof Array){
        for(var i = 0; i < items.length; i++)items[i].visible = false;
    }else{
        items.visible = false;
tomaxxi
http://indisnip.wordpress.com/

Similar Messages

  • How to hide/show images or master items?

    Hi,
    Just getting started in pages (on the free trial for now).
    So far I like the way items (e.g. images) can be placed as "master objects". I'm using this feature to insert my business logo and address, so that I can send a PDF which matches my letterhead exactly.
    But if I also want to print a hard copy onto the pre-printed letterhead, is there an easy way to hide the master objects? It'd be great if there was a toggle somewhere, but I can't seem to find it.
    TIA and Cheers,
    JB
    MBP 15.4, 2.33GHz Core2Duo Mac OS X (10.4.8)
    G5 Dual 1.8 GHz   Mac OS X (10.3.8)  

    jb,
    That feature isn't built into Pages, but a work-around comes to mind. Assuming your background is white, you could insert a box, change its color to white, remove its border, then size it to cover up your master object. When not in use, drag it away and send it backward.
    Does this help?
    -Dennis

  • Nokia N97 How to hide images from the photo browse...

    I'm not even going to ask about how to hide sensitive images, i just deleted them, but still
    there are several programs that use images for they're normal behaviour, i had this same issue
    with my nokia n95, but i simply set the image atributes of the pictures i didn't want to show in the photo browser,
    and that solved the problem, but with my new n97 this is of no use, i also tryed setting the image atribute as sys file
    and that did not solvet either... Please help, i do not like having 500 images from a software showing up in my gallery...
    Thanks in advance

    how to move image from gallery to a certain album (not copy)

  • How to hide the file name (the bizarre number assigned by the camera) when exporting an image version in aperture from an album. Pl understand I want to keep the file name in the project library version.

    how to hide the file name (the bizarre number assigned by the camera) when exporting an image version in aperture from an album. Pl understand I want to keep the file name in the project library version.

    Within Aperture you have Images, which are constructed on-the-fly from two files (the Master and the Version).  You get an image-format file _only_ when you export an Image.  You select the file name (usually a scheme) when you create an image-format file (that is, when you export).  Look under "Aperture→Presets→File Naming" for built-in Presets.  You can, of course, create your own or customize any provided.
    The Preset is applied to only the file newly created by your "export" command.  It is not applied to the Image in Aperture (unless you rename your Versions or your Masters).

  • How can I show or hide an image based on screen size in CS6?

    I have a web site built using Dreamweaver CS6. I used the fluid grid layout to have different views for each of the 3 types - phone, tablet, desktop. It works well, resizes as it should. I would like to be able to show an image in the desktop version but not the mobile version. How could I do that? I can see in the .css file that different size screens can have their own different settings. Is there code I could add that would hide/show and image based on the users viewport on the same page? Let's say I have a div tag named picture. How could I add a parameter to the picture div tag in the style sheet that would hide the image if it was mobile?
    thanks,
    Marilyn

    Insert image into a container div.
    Desktop CSS:
    #divName {
    height: xxxpx
    width: xxxpx
    Tablet & Mobile CSS:
    #divName {display:none}
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • How to hide image displays for lightbox

    Using DW, I have a lightbox display.  Here is the page:
    Example page
    As you'll see, if you click on the photo, it opens up into a lightbox.  My colleague wants to have 10 photos open up in the lightbox but they do not want all of those photos to have thumbnails on the page.  In other words, they want one single photo, you click on it, and then see all 10 photos in the lightbox.
    If I put all of the img code for all 10 images on the page then all 10 images will also show up on the page.  So I have to somehow "hide" the images so that the small version of the photos do not show up on the page but will show up in the lightbox.
    Sorry if this sounds confusing and hope someone can help.  Thanks.

    Deaf Mike wrote:
    I've never seen it either as it already existed on the site and I actually just discovered it.
    Here's another example
    When you arrive at the above, click on the turtle and you'll see how several photos are in the lightbox.  Then close the light box and scroll down and click on those + symbols.  See those other images in the other sections?  Somehow the code is pulling those photos into the lightbox too.
    I want to do the same thing but the key is there will be no + symbols on the page - just one turtle photo and when you click on the turtle, all of the other photos appear in the light box.  Another thing I'm thinking about doing is having one turtle photo and then 10 1 pixel by 1 pixel invisible image down at the bottom of the page then have 10 of them and then the h ref for each are the larger photos - that way when you click on the turtle, the code will pull in the 1X1's large photos into the light box.
    Well that would be pretty easy just do as 'Per' suggested in the previous post and hide the 'thumbnails' you don't want on the page:
    Create a rule in your css - something like:
    .hide_thumbs {display:none;}
    So typically a set of light box images might look like the code below. (when clicked they open in a lightbox and that lightbox usually has an option to display the other images in that particular gallery by clicking through them, rather than clicking on them individually).
    <a href="turtle.jpg"><img src="turtleThumb.jpg" alt="turtle"></a>
    <a href="whale.jpg"><img src="whaleThumb.jpg" alt="whale"></a>
    <a href="dolphin.jpg"><img src="dolphinThumb.jpg" alt="Dolphin"></a>
    <a href="tuna.jpg"><img src="tunnaThumb.jpg" alt="Tunna"></a>
    If you add a class="hide_thumbs" the ones you don't want to show get the display: none; property BUT they should still be available in the lightbox to click through.
    <a href="turtle.jpg"><img src="turtleThumb.jpg" alt="turtle"></a>
    <a href="whale.jpg" class="hide_thumbs"><img src="whaleThumb.jpg" alt="Whale"></a>
    <a href="dolphin.jpg" class="hide_thumbs"><img src="dolphinThumb.jpg" alt="Dolphin"></a>
    <a href="tuna.jpg" class="hide_thumbs"><img src="tunnaThumb.jpg" alt="Tuna"></a>

  • 6303i- how to hide images from my photos -gallery

    I need to know ways to hide personal images from showing in my photos-gallery...
    i also tried a 3rd party application- fileexplorer to hide images but even then its showing in my photos-gallery. plz help
    Hit the STAR, if this is helpful
    Nokia C5, 6303i

    http://thinkabdul.com/2006/11/26/tip-hide-photos-a​nd-images-from-nokia-image-gallery/
    Did you try this ??
    --------------------------------------------------​​-------------------------------------------------​-​------------------------------------------------​--​--If you find this helpful, pl. hit the White Star in Green Box...

  • How can hide the command line of a t.code in the portal

    Dear Experts.
    I have the following doubt:
    How can hide the Command Line of a Report that is called with a T.Code in the portal?
    Attach Image:
    [Image T.Code|http://www.freeimagehosting.net/uploads/eab3b6a03c.jpg]
    When I created a service using the T.Code SICF for the T.Code , I can hide buttons and the filed command line  using
    ~webgui_simple_toolbar
    ~singletransaction
    ~NOHEADEROKCODE
    With notes 1010519, "SAP GUI for HTML: Simplified Title Area Without Menu and OK Code" and 959417.
    But the problem is that when I create the service in the T.Code SICF, I also have that create an Iview IAC in the portal.
    The Question is : How can hide this fields and buttons if I want Publish the T.code using an Iview Transaction in the portal?
    In this moment I have used the two options:
    1 option) I created a service using the t.Code SICF for my Transaction and I also created an Iview IAC in the portal for call the service.
    RESULT:
    SAP Web Application Server
             500 Connection timed out
            Error: -5
           Version: 7000
           Component: ICM
           Date/Time: Sat Jun 12 20:26:39 2010 
           Module: icxxthr_mt.c
           Line: 2698
           Server: xyxab...
    Error Tag: {-}
    Detail: Connection to partner timed out after 60s
    2)  created an Iview Transaction  in the portal and  call my transaction.
    RESULT.
    [Image T.Code|http://www.freeimagehosting.net/uploads/eab3b6a03c.jpg]
    But not can hide the field Command Line and other buttons.
    I think that the command :
    ~webgui_simple_toolbar
    ~singletransaction
    ~NOHEADEROKCODE
    Only can be used if I create a service using the T.Code SICF .
    Best Regards
    Carmen.

    Hi Carmen,
    The bottom line is that this cannot be done for transaction iviews without modifying the standard webgui service in SICF, which is probably not a good idea (since it affects everyone using SAP GUI for HTML). (You could hack the appintegrator to add the ~webgui_simple_toolbar parameter to the transaction URL template in the portal, but again its not a recommended thing to do ...). Better to create an IAC service in SICF with ~webgui=1 where you set the required appearance using an appropriate value for ~webgui_simple_toolbar, and then create an IAC iview to point at this service.
    You can even override the ~transaction value configured in the new service in individual IAC iviews by entering the appropriate value in the application parameter of the iview, for example:
    ~okcode=/nSU01
    And you can pass parameters in the same way:
    ~okcode=/nSU01 USR02-BNAME=xyz;USREFUS-USERALIAS=abc;
    By the way, it would not be recommended to create a URL iview to access an IAC, since you are likely to encounter session management issues in this scenario - better to use an IAC iview.
    Regards, Rory

  • How to hide 'catalog','open',home' link from dashboard page in obiee11g ?

    Hi,
    how to hide 'catalog','open',home' link from dashboard page in obiee11g based one users/groups.
    http://imageshare.web.id/images/e7tosu6qtsa9zdl1a8w8.jpg
    i.e: some users shold not able to see 'open','catalog',home link from dashboard but some power user/groups can able to see the 'open','catalog',home link.
    Thanks
    Deva

    Hi,
    I don't want to remove totally, what i am asking is there any
    Possibility to do users/groups wise,
    E.x:
    Work around home page
    Setting home page each users/groups wise . I am expecting like that option to
    Do open and catalog link.
    Home link not a priority .
    http://obieeelegant.blogspot.com/2011/06/how-to-changing-theobiee11g-homepage.html
    Thank
    Deva
    http://obieeelegant.blogspot.com

  • Nokia e5 how to hide videos

    hot to hide any kind of video frm everywhr..
    And keep it in a ssingle sftware...guide ppllz..

    This should be applicable to your phone too..
    /t5/Cseries/I-want-to-hide-my-Personal-Image-and-Video-files-on-C5/m-p/887903/highlight/true#M11677
    /t5/Nseries-and-S60-Smartphones/N73-How-to-Hide-Files-Photos-Videos-from-Gallery-view/m-p/163746/hig...
    --------------------------------------------------​--------------------------------------------------------​--------------------------------------------------​--If you find this helpful, pl. hit the White Star in Green Box...

  • How to hide windows heading and border on WEB?

    How to hide windows heading and border on WEB? forms 6i.
    null

    Abdetu wrote:
    Thanks JeanYves
    i found that parameter but didn't know what to set to it i even has no forms in my pc thanks again
    Regards,
    Abdetu...Hi Abdetu,
    There is 3 parameters in the <DevSuiteHome>\forms\server.formsweb.cfg having the same behavior.
    Logo
    Background
    SplashScreen
    By default (if you don't have specified them in you [section] they values are inherited from the [default] section) the values are
    Logo=
    Background=
    SplashScreen=
    This means you will have the oracle logo, the Forms Services background image in your applet and the oracle splash screen at startup.
    *To have nothing shown then just put the value no in front of these 3 parameters*
    Logo=no
    Background=no
    SplashScreen=noYou can also customize that with you own gif files.
    For this you have to put your images in a icons.jar file
    place it in your <DevSuiteHome>\forms\java where frmall.jar and others are located.
    then in your formsweb.cfg :
    Archive=frmall.jar, icons.jar
    ImageBase=CodeBase
    Logo=yourlogo.gif
    Background=yourbackground.gif
    SplashScreen=yourbeautifullsplachscreen.gifAnd at least if you have a small gif in your icons.jar for the window you can also defining the Icon Filename property in Forms builder. This wile replace the default forms runtime icon.
    Hope this helps
    JeanYves

  • How to hide SAP logo ?

    Hi ,
    After login in the portal SAP logo comes in heading tab . How to hide that SAP logo?

    Hi Smita,
    Please go through below notes based on your portal release
    1906707
    How to customize favicon.ico image for SAP NetWeaver 7.1X onwards version
    1906728
    How to customize favicon.ico image for SAP NetWeaver 7.0X version
    1907215
    How to customize favicon.ico image for SAP NetWeaver 7.0X version globally
    1908436
    How to customize favicon.ico image for SAP NetWeaver 7.1X onwards version globa
    Hope this solves your issue.
    Regards,
    Prithviraj

  • Update Retriever - how to hide specific updates?

    Hi,
    while reading the System Update Deployment Guide, I stumbled upon the possibility of hiding updates from automatic downloading into the repository. As there are certain software products distributed via lenovos Servers, which I do not want to install onto our companies' computers, I would like to let Update Retriever skip these updates.
    I wasn't able to find the described funcionality in the program yet. Does someone of you know how to hide those updates?
    Thanks in advance,
    mat_ban

    Allan, as far as I can see it only allows me to include or not include Metadata by checkin the box in the Image Export window. I want to include most Metadata, particularly my name and copyright. There is one field where I keep my notes that I do not want to send with the photo.This is where my dilemma lies.
    thanks

  • Easy Q. How to hide carosel after leaving frame.

    Hi guys and TIA.
    From my flash "home" frames, I have 4 buttons that take the user to different places on the timeline. One frame on the timeline includes a carosel of pictures that rotate and looks nice. I downloaded the carosel actionscript and xml documents online, I did not build them myself. Now, when I hit the "home" button to get back to the home frame, the carosel still lingers around. I would like to know how to hide it, or make it not come back at all when coming back to my "home" frame.
    Here is my actionscript inserted in the frame:
    import mx.utils.Delegate;
    var numOfItems:Number;
    var radiusX:Number = 1000;
    var radiusY:Number = 30;
    var centerX:Number = Stage.width / 2;
    var centerY:Number = Stage.height / 2;
    var speed:Number = 0.9;
    var perspective:Number = 130;
    var home:MovieClip = this;
    var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
    tooltip._alpha = 0;
    var xml:XML = new XML();
    xml.ignoreWhite = true;
    xml.onLoad = function()
        var nodes = this.firstChild.childNodes;
        numOfItems = nodes.length;
        for(var i=0;i<numOfItems;i++)
            var t = home.attachMovie("item","item"+i,i+1);
            t.angle = i * ((Math.PI*2)/numOfItems);
            t.onEnterFrame = mover;
            t.toolText = nodes[i].attributes.tooltip;
            t.icon.inner.loadMovie(nodes[i].attributes.image);
            t.r.inner.loadMovie(nodes[i].attributes.image);
            t.icon.onRollOver = over;
            t.icon.onRollOut = out;
            t.icon.onRelease = released;
    function over()
        home.tooltip.tipText.text = this._parent.toolText;
        home.tooltip._x = this._parent._x;
        home.tooltip._y = this._parent._y - this._parent._height/2;
        home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
        home.tooltip._alpha = 100;
    function out()
        delete home.tooltip.onEnterFrame;
        home.tooltip._alpha = 0;
    function released()
        trace(this._parent.toolText);
    function moveTip()
        home.tooltip._x = this._parent._x;
        home.tooltip._y = this._parent._y - this._parent._height/2;
    xml.load("icons.xml");
    function mover()
        this._x = Math.cos(this.angle) * radiusX + centerX;
        this._y = Math.sin(this.angle) * radiusY + centerY;
        var s = (this._y - perspective) /(centerY+radiusY-perspective);
        this._xscale = this._yscale = s*150;
        this.angle += this._parent.speed;
        this.swapDepths(Math.round(this._xscale) + 100);
    this.onMouseMove = function()
        speed = (this._xmouse-centerX)/2500;
    removeMovieClip(this);
    stop();

    I haven't gone thru the details of the code, but I see that you appear to be loading everything into the timeline (var home = this).  The problem with adding dynamic content to the timeline is that it does not have a hone in the timeline and will linger everywhere.  To take care of that, try removing the var home = this line and instead, manually place an empty movieclip in the desired frame and give it an istance name of home.  That may be all you neeed to do.

  • How to shrink an image?

    I am looking for a tutorial on how to shrink and image.
    So what I what to accomplish is on the main page there is a large main logo than when the page is scrolled down it will move to the upper left (I know how to do this) then is will also shrink down or scale to a smaller image and then I will have it as a sticky header. So lets say the logo is 350x250 and I want to shrink it down to 150x75.
    Hope that makes sense...how can I accomplish this?
    theDogger

    You can use animation with scroll , or place image with scroll setup so that when Page scrolls down to a specific position then the large logo hides on page and small logo appears which can be done using scroll movement.
    Thanks,
    Sanjit

Maybe you are looking for