For pic lovers ..
![:D](img/smilies/another_D.gif)
A Gallery using [url=http://www.digitalia.be/software/slimbox]Slimbox[/url]
![:arrow:](img/smilies/point.gif)
[b]not compatible with ie [/b].
![:wallbash:](img/smilies/wallbash.gif)
anyways , use firefox / opera / safari / watever browser ..
![:D](img/smilies/another_D.gif)
Preview : [url=http://friendster.com/darylldelfin3]PUGE[/url]
dont mind the slimbox welcome note .. look here
![:thumbsdown:](img/smilies/facepalm.gif)
[img]http://i38.tinypic.com/33epuyp.png[/img]
et voila . a gallery ..
![:wow:](img/smilies/wow!.gif)
[b]setup:[/b]
![:arrow:](img/smilies/point.gif)
create a new directory/folder in ur hosting site
![:arrow:](img/smilies/point.gif)
save these images into ur computer then upload it to the created directory :
[img]http://i363.photobucket.com/albums/oo75/darylldelfin2/closelabel.gif[/img] [img]http://i363.photobucket.com/albums/oo75/darylldelfin2/loading.gif[/img] [img]http://i363.photobucket.com/albums/oo75/darylldelfin2/nextlabel.gif[/img] [img]http://i363.photobucket.com/albums/oo75/darylldelfin2/prevlabel.gif[/img]
![:arrow:](img/smilies/point.gif)
next , create a text file and name it [b]slimbox.css[/b] with this content:
[spoiler]<">[/spoiler]
![:arrow:](img/smilies/point.gif)
create another text file , name it [b]slimbox.js[/b] and save it with this content:
[spoiler]<">[/spoiler]
![:arrow:](img/smilies/point.gif)
[b]creating the gallery ..[/b]
here's the function for the gallery, edit it and paste it at the bottom of ur js file:
[quote]function gallery(){
Slimbox.open( [
['[b][color=#FF0000]direct link of the image[/color][/b]','[b][color=#FF0000]caption here[/color][/b]'],
['[b][color=#FF0000]direct link of the image[/color][/b]','[b][color=#FF0000]caption here[/color][/b]'],
['[b][color=#FF0000]direct link of the image[/color][/b]','[b][color=#FF0000]caption here[/color][/b]'],
['[b][color=#FF0000]direct link of the image[/color][/b]','[b][color=#FF0000]caption here[/color][/b]'],
['[b][color=#FF0000]direct link of the image[/color][/b]','[b][color=#FF0000]caption here[/color][/b]'],
['[b][color=#FF0000]direct link of the image[/color][/b]','[b][color=#FF0000]caption here[/color][/b]'],
['[b][color=#FF0000]direct link of the image[/color][/b]','[b][color=#FF0000]caption here[/color][/b]'],
['[b][color=#FF0000]direct link of the image[/color][/b]','[b][color=#FF0000]caption here[/color][/b]'],
['[b][color=#FF0000]direct link of the image[/color][/b]','[b][color=#FF0000]caption here[/color][/b]'],
['[b][color=#FF0000]direct link of the image[/color][/b]','[b][color=#FF0000]caption here[/color][/b]'],
['[b][color=#FF0000]direct link of the image[/color][/b]','[b][color=#FF0000]caption here[/color][/b]']
], 0 );
}[/quote]
u can add as many as u can , just dont put the characters [b]' [/b]or [b]"[/b] at the caption ..
![:arrow:](img/smilies/point.gif)
[b]last:[/b]
edit and put this at the top of ur js file :
[quote]Asset.css('[color=#FF0000]URL_slimbox.css[/color]');
window.addEvent('domready', function() {
Asset.javascript('[color=#FF0000]URL_slimbox.js[/color]');
document.getElementById('content_1').getElementsByTagName("div")[[color=#FF0000]10[/color]].innerHTML="<span style=\"cursor:pointer\"><a onclick=\"gallery();\">Open Gallery</a>"+"<span class=\"divider\"> | </span>"+"<a href=\"http://www.friendster.com/friendphotoupload.php?uid="+pageOwnerID+">Submit Photo</a></span>";
});[/quote]
![:arrow:](img/smilies/point.gif)
important :
edit the number [color=#FF0000]10[/color] if u have 3 or less albums in your account ..
if im not mistaken , here are the values :
3 albums : [color=#FF0000]8[/color]
2 albums : [color=#FF0000]6[/color]
1 album : [color=#FF0000]4[/color]
but if u have the four albums , no need to change it ..
![:thumbsup:](img/smilies/thumbsup.gif)
that's it . ur done ..
![:thumbsup:](img/smilies/thumbsup.gif)
[b]credits:[/b]
http://www.digitalia.be/software/slimbox ([b]slimbox[/b])
![:arrow:](img/smilies/point.gif)
[b]marfillaster[/b] (i learned about the slimbox from him ..
![:D](img/smilies/another_D.gif)
)
![:arrow:](img/smilies/point.gif)
[b]friendsterteam[/b] (for including the mootools framework)
Last edited by darylldelfin (2008-11-13 01:26:47)