Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Oct 2007
    Location
    Richmond, MI USA
    Posts
    1,221

    Default Layer Visible On Load, Click To Close?

    I'm trying to make a layer with a logo in the center visible on load (over the center of a page) with a click to close button. I can make the layer open with a button, and use the locking popup tweak to keep it open, then a click to close button, but I need to have the layer open automatically on page load and then have a click to close. Is this possible?

    Jim

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,504

    Default Re: Layer Visible On Load, Click To Close?

    I think there is a tweak or a bit of code to do this Jim. But I have no idea what it is.

    What if you did this. Create your home page with what appears to be a pop up layer but is actually something on the mouse off layer. Then create a copy of the home page without the pop up. Link the close button on the faux popup to the home page copy.

    Would that work?

  3. #3

    Default Re: Layer Visible On Load, Click To Close?

    Yes, there's some javascript to do this Jim.
    I recently updated this to work with WD MX (and of course DPX)

    http://xara-users.info/demos/auto-po...load/index.htm

  4. #4
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,504

    Default Re: Layer Visible On Load, Click To Close?

    I knew it existed. But you have to admit my solution was pretty creative.

  5. #5
    Join Date
    Oct 2007
    Location
    Richmond, MI USA
    Posts
    1,221

    Default Re: Layer Visible On Load, Click To Close?

    Gary,
    Thanks, I thought of that also, but was hoping for something easier.
    Steve,
    I will try it. Thanks!

    Jim

  6. #6
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,044

    Default Re: Layer Visible On Load, Click To Close?

    A variation on Gary's idea using layers rather than pages
    Attached Files Attached Files

  7. #7
    Join Date
    Oct 2007
    Location
    Richmond, MI USA
    Posts
    1,221

    Default Re: Layer Visible On Load, Click To Close?

    sledger,
    That worked great. Thanks. Here's another challenge for you: can you write a cookie that will only allow that popup layer to load on the first visit?

    Drwrd,
    Can you explain what you did on your variation?

    Jim

  8. #8
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,044

    Default Re: Layer Visible On Load, Click To Close?

    The close button on the logo opens a pop up layer containing a white rectangle to cover the content area and a copy of the text.

  9. #9
    Join Date
    Oct 2007
    Location
    Richmond, MI USA
    Posts
    1,221

    Default Re: Layer Visible On Load, Click To Close?

    Interesting solution. Thanks!

    Jim

  10. #10
    Join Date
    Oct 2007
    Location
    Richmond, MI USA
    Posts
    1,221

    Default Re: Layer Visible On Load, Click To Close?

    Steve,
    On the xara-users.info opening page for this demo, the background is initially darkened. Can you tell me how that was done? I can't get it to work using the highslide popup editor and was hoping you could help.

    Jim

    Quote Originally Posted by steve.ledger View Post
    Yes, there's some javascript to do this Jim.
    I recently updated this to work with WD MX (and of course DPX)

    http://xara-users.info/demos/auto-po...load/index.htm

 

 

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
  •