Re: Click to close layers
For issue #1 Select the photo and the text and Arrange > Apply Soft Group. This way the text remains editable and searchable.
I am not sure what can be done with your second question. Maybe one of the members will have a script you can use. The problem is the layer positions are fixed so when a visitor scrolls down the page the layer is showing in the same position but is no longer visible.
Very nice site design by the way. Love Duluth Trading Co., though I have to purchase from the catalog.
1 Attachment(s)
Re: Click to close layers
The second time I opened the site it said EDIT:Project select a type but the first time it didn't show at all except for what my graphic shows.
Attachment 119448
Re: Click to close layers
What a nice compliment gwpriester. Thank you. And thanks for the tip ... what a time saver to use the soft group function if the text is still searchable. :)
Re: Click to close layers
wizard509 - what you are seeing is part of the problem I believe. When you first visit the page I have some text that flies in from the right. If you are already down on the page and click on the list on the left then it doesn't bounce back up to the top so what you saw was just a piece of the text above. That's the problem .. I want a "bounce back to top" effect each time a selection on the left is clicked. Those words on the left are already triggering a popup layer. Trying to find a way that they can also trigger a bounce back to the top effect.
Re: Click to close layers
I was hoping someone might have a script or suggestion. Lemme see if I can get some responses here.
1 Attachment(s)
Re: Click to close layers
Not sure if I understand what the requirement is, but something similar might have been discussed in this THREAD. But unfortunately the latest example has stopped working in V12.
The example below is similar to that last example. It has a placeholder on the pop-up layers that contains some code that checks twice a second if the pop-up layer just became visible and if so scrolls to a position defined in the placeholder body code. Layer 1 scrolls to 0, layer 2 to 100 and layer 3 to 200, otherwise the placeholder code is identical.
This method has a disadvantage. It only scrolls at the first click. It doesn't recognize a second click and doesn't scroll again...
1 Attachment(s)
Re: Click to close layers
Here is s light variation that doesn't need changing the code. Just move the placeholder to where you want the pop-up layer to be scrolled.
Re: Click to close layers
Great solution Siran, thanks for sharing.
1 Attachment(s)
Re: Click to close layers
And here is another variant. It is a bad hack but it also scrolls at second and subsequent clicks. Works quite different from the previous examples.
Still everything is at the placeholder. You don't need to change the code, just move the placeholder around.
Works in V12, V11 and even in V10 (except for the stickies).
It requires JQuery for the smooth scrolling, so the placeholder has the name UsesJQuery attached.
The placeholder also has a name htmlclass=xpul_st01 attached. This is used to identify the object from which to calculate the scroll position.
There is a dummy body code at the placeholder (only a dot in this case). This is only required for the object to be exported at all.
The relevant part is at the placeholder head code. If you change the code, make sure to change it in exactly the same way on all layers you use it on. Otherwise Xara will duplicate the code and that will quite surely result in a mess... ;)