前回は、http://lokeshdhakar.com/projects/lightbox2/のlightbox に
改行を入れる場合でしたが、
今回は、jquery-lightbox-0.5.jsで説明部分に改行コードを入れる場合
http://www.huddletogether.com/projects/lightbox2/のjquery-lightbox-0.5.jsのバージョンになります。
下記のように変更します!
#####################################################################
if ( jQueryMatchedObj.length == 1 ) {
settings.imageArray.push(new Array(objClicked.getAttribute(‘href’),objClicked.getAttribute(‘title’).replace(/##/g,”<br />”)));
} else {
// Add an Array (as many as we have), with href and title atributes, inside the Array that storage the images references //change abund aoki
for ( var i = 0; i < jQueryMatchedObj.length; i++ ) {
settings.imageArray.push(new Array(jQueryMatchedObj[i].getAttribute(‘href’),jQueryMatchedObj[i].getAttribute(‘title’).replace(/##/g,”<br />”)));
}
#################################################################
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
#################################################################
if ( jQueryMatchedObj.length == 1 ) {
settings.imageArray.push(new Array(objClicked.getAttribute(‘href’),objClicked.getAttribute(‘title’).replace(/##/g,”<br />”)));
} else {
// Add an Array (as many as we have), with href and title atributes, inside the Array that storage the images references //change abund aoki
for ( var i = 0; i < jQueryMatchedObj.length; i++ ) {
settings.imageArray.push(new Array(jQueryMatchedObj[i].getAttribute(‘href’),jQueryMatchedObj[i].getAttribute(‘title’).replace(/##/g,”<br />”)));
}
#################################################################
これで、うまくいくはずです。
safari1.3ではjquery-lightbox自体は使えません。