Welcome to TalkGraphics.com
Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,946

    Default Re: Close Pop-up Automatically

    Quote Originally Posted by Chris M View Post
    Going with the simplest (for me) method.
    No (lock) in the layer name.
    Copy profile pic (link 'button') and paste in place on pop-up layer with popup:close typed in Utilities > Web Properties > Link > Link To Web or Email Address
    Add 99% transparency

    I can now simply copy/paste onto the rest, sit back with a beer and toast siran for saving me 10 minutes on this job and educating myself and others for future use.
    Its disadvantage as mntioned by @siran is the clicked item remain in-focus or is the target until you move the pointer (or thumb) slightly.

    For that reason, I usually choose the javascript: void $('.<ClassName>').fadeToggle(timed); approach.
    Its downsides are you need jQuery loaded but this is usually not an overhead as it is invoked by a lot of Xara events already. You have to name everything you want to "pop-up" with a ClassName. You are introducing code to initially hide the "pop-up" and to toggle thereafter.

    My second approach is to use the undocumented popup: mechanism.
    To get a fade in/out effect you have to name the popup layer with a fade parameter, e.g., 'pu (fade 1)'.
    The MouseOff trigger becomes 'popup: open "pu (fade 1)"'.
    On the "pu (fade 1)" layer, its trigger is simply 'popup: close'.
    Xara does the rest.

    You still have the in-focus/target issue.

    Rather than just a transparency shape, I usually clone the under image and change the transparency type for different effects.

    I have made the original Covoxer Tweaks Thread sticky again for reference as it is still valid.

    acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  2. #2
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,817

    Default Re: Close Pop-up Automatically

    I used the second method, Acorn, but let Xara look after the layer animation Utilities > Web Properties > Link > Pop-Up Layer > Settings.

    I considered popuppen, but didn't see an advantage over letting Xara do the job in this case. Now if the layer had sticky objects that breaks Xara's reveal animations I would have.

    The javascript has too many different elements in too many different places for this simple job. Manipulating code doesn't come naturally to me. When I use it, I use it by blindly pasting stuff where I'm told and hope the Pixi dust doesn't blow away.

  3. #3
    Join Date
    May 2002
    Location
    Canada
    Posts
    3,345

    Default Re: Close Pop-up Automatically

    I hate popups, but had to do one for a client. clearsoundhearing.ca

  4. #4
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,817

    Default Re: Close Pop-up Automatically

    Quote Originally Posted by behzad View Post
    I hate popups, but had to do one for a client. clearsoundhearing.ca
    The pop-ups here are for further information, pop-up is really the wrong term. I have (will have) 15 profile pictures of DJs on the books for an event organisation. Click/tap the pic and the DJs resumé comes into play. One of the groups competitors has each resumé opening a separate page which requires opening the menu, clicking the link to return to the artists page, then scrolling down to where you left off...not good.

    I went for the pop-up layer so that the customer is right where they left off when they close any particular resumé. The only issue I had was on the mobile site because the profile pic covered a large amount of the tappable screen and it re-opened as soon as it was closed ('button' in focus). I was opting for adding (lock) to the end of each layer name, then adding popup:close on the layers content link properties. It would work fine, but I wondered if there was an easier/cleaner/quicker way to achieve the same result.

  5. #5
    Join Date
    Mar 2009
    Posts
    4,504

    Default Re: Close Pop-up Automatically

    Quote Originally Posted by behzad View Post
    I hate popups, but had to do one for a client. clearsoundhearing.ca

    I find that an effective use of the popup. Took me a while, though, to discern there was a picture of a person with a facial mask included.

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •