Welcome to TalkGraphics.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2021
    Posts
    5

    Default Displaying a selected layer on page load

    Hi

    I've searched the web/forum for solutions to what I thought would be a simple problem. But as usual things took a tangent.

    Any what I want to do is to display a selected layer when the page loads. I have two layers 'tab2' and 'tab1' both above the MouseOver and MouseOff layer. Layer's tab1 and tab2 each contain a gallery object each gallery has a different set of images attached. When I load the page I would like 'tab1' to be displayed until the user clicks on a button, there is also a button to display 'tab2'.

    If I put the 1st gallery object on the mouseoff tab as well then things work until an image that is smaller lets say on gallery2 when shown also shows the gallery1 object below it. Hence needing the 2 galleries on separate layers then either can be closed as required.

    I just need a simple solution to automatically display 'tab1' when the page is loaded.

    Martyn

  2. #2
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,745

    Default Re: Displaying a selected layer on page load

    Quote Originally Posted by Eckethump View Post
    Hi
    I've searched the web/forum for solutions to what I thought would be a simple problem. But as usual things took a tangent.
    Any what I want to do is to display a selected layer when the page loads. I have two layers 'tab2' and 'tab1' both above the MouseOver and MouseOff layer. Layer's tab1 and tab2 each contain a gallery object each gallery has a different set of images attached. When I load the page I would like 'tab1' to be displayed until the user clicks on a button, there is also a button to display 'tab2'.
    If I put the 1st gallery object on the mouseoff tab as well then things work until an image that is smaller lets say on gallery2 when shown also shows the gallery1 object below it. Hence needing the 2 galleries on separate layers then either can be closed as required.
    I just need a simple solution to automatically display 'tab1' when the page is loaded. Martyn
    Martyn, this will work: https://www.talkgraphics.com/showthr...619#post499619.
    Rename Banner layer to tab1. Add a tab1 Named object on that layer. Change the code 'banner' to 'tab1'.

    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

  3. #3
    Join Date
    Oct 2021
    Posts
    5

    Default Re: Displaying a selected layer on page load

    Quote Originally Posted by Acorn View Post
    Martyn, this will work: https://www.talkgraphics.com/showthr...619#post499619.
    Rename Banner layer to tab1. Add a tab1 Named object on that layer. Change the code 'banner' to 'tab1'.

    Acorn
    Thanks that works well. Never used names so i guess some more research is necessary.

  4. #4
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,745

    Default Re: Displaying a selected layer on page load

    A Name is just an HTML Anchor so can be caught with our CSS or Xara's triggers or Link to anchor.

    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

 

 

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
  •