Thanks, that's much better.
BTW - the forum is considering and will probably adopt a new policy on that. We prefer when possible that members use English. It cuts down on misunderstandings.
So it would be a good idea to avoid that sort of short hand in your other posts as well.
In answering these questions, make sure you're looking at the annotated version of the code that I added to the end of my post#30 in this thread:
http://www.dynamicdrive.com/forums/s...566#post291566
For #1, yes. But then it will only work for that page, not contact-us.
For #2 and $3, yes. If you are only using a.model for this and only the pages with a.modal on them need this, then get rid of:
Code:
if(location.href.indexOf('contact-us') > -1){ //if the page has contact-us in it's address
and get rid of:
Code:
} //END if the page has contact-us in its address
Those are the first and last lines. If there are other uses of SqueezeBox (the Lightbox) that use a.modal, use an additional class name to mark the ones that need this and add that here (the added class could be "iframeprint"):
Code:
$('a.modal').click(function(){ //when an a tag with a class of modal and a class of iframeprint is clicked
Then on the page(s) with one or more of these, change:
HTML Code:
<a class="modal" href="/component/chronoforms/?chronoform=contact&tmpl=component" rel="{handler: 'iframe', size: {x: 500, y: 600}}"><font color="#CC00FF"> click here</font></font></a>
to:
Code:
<a class="modal iframeprint" href="/component/chronoforms/?chronoform=contact&tmpl=component" rel="{handler: 'iframe', size: {x: 500, y: 600}}"><font color="#CC00FF"> click here</font></font></a>
Bookmarks