[Pro] Target Show/Hide Layer + "Close Window" Button?

I’m using the Target Show/Hide Layer feature to display a U.S. map with pop-up windows, and it works great.

My question is whether there is a bit of markup I can add inline to the pop-ups themselves in order to create a “close window” button?

Right now I have the maps at “Restore:Yes and Find Targets:Top,” and the layers as “Initially:Hidden and Restore:Sticky.”

It works OK – the first window appears and stays up so that a website or email link can be chosen. And then when a second map is clicked the first layer closes as the second opens.

But it would be nice to give the option in each layer to close manually – from the layer itself.

Possible? I’ve seen the markup to close the entire page, but it’s past my pay grade to figure out how to close the layer itself…

As always, appreciate the help!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Would adding some Java script to a Close Window link work here?

Highlight the Close Window text apply a link choose External then, Javascript and then for the java script use Window.close()


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Forgive my javascript ignorance, but would that ‘Window.close()’ require additional characters? Entered as is, the layer did not close.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Oops re-reading your post I see that you wanted to just close a layer, and not an entire window…not sure what that would take.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I have done something similar with Transition FX. A thumbnail when clicked on opens up a bigger version of the pic with some text in a pop-up box. I have a ‘Close’ button but the whole thing closes when you click anywhere.

Check out http://www.amanzi.org.uk/crew.html

If this is the effect you’re after I’ll send details.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The sort of close button is exactly what I’m looking for, but I’m not sure how it might tie into the 15 map areas I have, each of which right now open their own layer. I’ve not used Transition FX yet.

I’m sure there is some snippet of code that I can include in each layer to allow me to close them, but I’m at a loss…


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Here is an example that uses Rollovers and Target show/hide layer

http://www.deltadzine.net/test/caption.html

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK, Dave, if that uses Rollovers and Target show/hide, that’s exactly what I need – but how is the “close” button incorporated into the layer?

Was code inserted via markup?

Appreciate it!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

DeltaDave! Please do not abandon me in my time of need!

Here is the page as it exists in the world today:

http://www.ravelco-colorado.com/distributor-map.html

The addition of that “close” button to each layer would be lovely. Indeed it would.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Get it here http://www.deltadesign.co/downloads/forwireguy.zip

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks, DD!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options