I need to add external link warnings to several links on a site. I've seen and tried RapidlyWoven's External Link Warning Stack:
http://forums.realmacsoftware.com/discussion/33094
And, while it's great for some instances, the links I need to put the warning on are in body copy of a text stack.
So, I'm trying to figure out if there is anyway to include code in RapidWeaver's 'add a link' dialog box (attached image shows where I mean) that will accomplish that?
I've started with this javascript:
<a href="
http://www.example.com" onclick="return confirm('You are now being taken to an external site');">External Site Link</a>
But, I can't get it to work in this scenario. Am I missing something? Is there any way to do this?
Thanks in advance!
Comments
Ron
Colorwave Imaging & Colorwave Hosting
The site in question needs an actual pop-up window, when a user clicks, to comply with a regulatory requirement.
Ron
Colorwave Imaging & Colorwave Hosting
I'm really in need of a solution. So, if anyone has any additional input, I'd be very interested in hearing it.
How about using your on page link to trigger a lightbox. I'd probably use TopBox, from StacksForStacks, so I could style it completely, including controlling the overlay to make it an obvious one, or downplay the overlay to make the modal box the only thing you notice. From there, you could have all of your legal requirements and the true link to the external site. That would satisfy the legal requirements you have, and require the visitor to click two times: once to see the disclaimer, and once to visit the linked site. TopBox is fully customizable, and simple to implement.
Ron
Colorwave Imaging & Colorwave Hosting
The lightbox idea is also interesting. I'll test it out and see how it works.
I'm still interested in anyone chiming in with any additional ideas that might work.
Thanks!