Re: Spry with a href rel tag -
03-29-2009
, 03:58 PM
Heya Albert,
Seen your post in ADDT and provided a link to the Spry forum for future
reference.
I saw you were using lightbox. For lightbox in spry create a lightbox_spry.js
file and put the following code in the .js file
var timeoutID = null;
function XXXXX(id) {
if (typeof myLytebox != 'undefined') {
var a = document.createElement("a");
a.href = "http://page.com/page.html";
a.rel = "lyteframe";
a.title = "XXXXX";
a.rev = "width: 100px; height: 100px; scrolling: yes;";
myLytebox.start( a, false, true);
} else {
if (timeoutID) { clearTimeout(timeoutID); }
timeoutID = setTimeout('loadLytebox()', 100);
}
}
Link .js file to your page and add additional functions if more than one
lightbox link in spry. Then in Spry add a link code like this:
<a href="javascript:XXXXX()">Click Here</a>
Hope that helps! |