[img]http://h1.ripway.com/genxglory/cumpret/kutoe/curpet/look.JPG[/img]
just like this please tell me. where i'm fault..... helep. never any photos ????
the code in onload handler
[spoiler]
function addbox() {
////////////////galery by blourycloud////////////////
var twistadv = "<div class='gallerycontent' subject='eneng'><table class='fitem1table'><tbody><tr>"+
"<td class='itd'><div class='imgblock75'><a href='/47392903 '>"+
"<img src='http://photos.friendster.com/photos/30/92/47392903/1_370443916s.jpg'></a></div></td>"+
"<td class='dtd'><ul class='data'>"+
"<li class='title'><a href='/47392903 '>eneng-nya-entong</a></li>"+
"<li>sweatheart</li>"+
"</ul></td>"+
"</tr></tbody></table></div>"+
"<div class='gallerycontent' subject='alvin'><table class='fitem1table'><tbody><tr>"+
"<td class='itd'><div class='imgblock75'><a href='/19910256 '>"+
"<img src='http://photos-256.friendster.com/e1/photos/65/20/19910256/1_863230197s.jpg'></a></div></td>"+
"<td class='dtd'><ul class='data'>"+
"<li class='title'><a href='/19910256 '>brillian-alvin</a></li>"+
"<li>brillian master</li>"+
"</ul></td>"+
"</tr></tbody></table></div>"+
"<div class='gallerycontent' subject='ian-jhon'><table class='fitem1table'><tbody><tr>"+
"<td class='itd'><div class='imgblock75'><a href='/49572569 '>"+
"<img src='http://photos.friendster.com/photos/96/52/49572569/1_225602946s.jpg'></a></div></td>"+
"<td class='dtd'><ul class='data'>"+
"<li class='title'><a href='/49572569 '>ian-the-jhone</a></li>"+
"<li>master ideas</li>"+
"</ul></td>"+
"</tr></tbody></table></div>"+
"<div class='gallerycontent' subject='davinC'><table class='fitem1table'><tbody><tr>"+
"<td class='itd'><div class='imgblock75'><a href='/15992680 '>"+
"<img src='http://photos.friendster.com/photos/08/62/15992680/1_715503471s.jpg'></a></div></td>"+
"<td class='dtd'><ul class='data'>"+
"<li class='title'><a href='/15992680 '>crazy-davinci</a></li>"+
"<li>thinking smaRt</li>"+
"</ul></td>"+
"</tr></tbody></table></div>"+
"<div class='gallerycontent' subject='adie.js'><table class='fitem1table'><tbody><tr>"+
"<td class='itd'><div class='imgblock75'><a href='/41867270 '>"+
"<img src='http://photos-270.friendster.com/e1/photos/07/27/41867270/250329433s.jpg'></a></div></td>"+
"<td class='dtd'><ul class='data'>"+
"<li class='title'><a href='/41867270 '>entut-the-gighost</a></li>"+
"<li>i'c come u never cant sleep</li>"+
"</ul></td>"+
"</tr></tbody></table></div>"+
"<div class='gallerycontent' subject='hellkidboy'><table class='fitem1table'><tbody><tr>"+
"<td class='itd'><div class='imgblock75'><a href='/51103045 '>"+
"<img src='http://photos-045.friendster.com/e1/photos/54/03/51103045/1_263182473s.jpg'></a></div></td>"+
"<td class='dtd'><ul class='data'>"+
"<li class='title'><a href='/51103045 '>koplak-ele</a></li>"+
"<li>hellboy-kid</li>"+
"</ul></td>"+
"</tr></tbody></table></div>"+
"<div class='gallerycontent' subject='tukyil'><table class='fitem1table'><tbody><tr>"+
"<td class='itd'><div class='imgblock75'><a href='/41449327 '>"+
"<img src='http://photos-327.friendster.com/e1/photos/72/39/41449327/1_137371468s.jpg'></a></div></td>"+
"<td class='dtd'><ul class='data'>"+
"<li class='title'><a href='/41449327 '>the-tukil-tikil</a></li>"+
"<li>sex-offurtunity</li>"+
"</ul></td>"+
"</tr></tbody></table></div>"+
"<div class='gallerycontent' subject='daboenk'><table class='fitem1table'><tbody><tr>"+
"<td class='itd'><div class='imgblock75'><a href='/61255524 '>"+
"<img src='http://photos-524.friendster.com/e1/photos/42/55/61255524/1_734650495s.jpg'></a></div></td>"+
"<td class='dtd'><ul class='data'>"+
"<li class='title'><a href='/61255524 '>ayie-daboenk</a></li>"+
"<li>sayyid-oesman-assegaft</li>"+
"</ul></td>"+
"</tr></tbody></table></div>Auto: <input type=\"radio\" checked name=\"mode\" value=\"auto\" onClick=\"preparemode('auto')\"> Manual: <input type=\"radio\" name=\"mode\" value=\"manual\" onClick=\"preparemode('manual')\"><div id=\"controldiv\" style=\"display:none\" class=\"gallerycontroller\"><form name=\"gallerycontrol\"><select class=\"gallerycontroller\" size=\"3\" name=\"menu\" onChange=\"manualcontrol(this.options.selectedIndex)\"></form></div>";
addBox("RIGHT","galery",twistadv,"twist",null);
startgallery();
}
[/spoiler]
code in my below js
[spoiler]
//galery
/***********************************************
* Advanced Gallery script- © Dynamic Drive DHTML code library (
www.dynamicdrive.com)
* This notice must stay intact for legal use
* Visit
http://www.dynamicdrive.com/ for full source code
* Edited by blurrycloud
***********************************************/
var tickspeed=3000 //ticker speed in miliseconds (2000=2 seconds)
var displaymode="auto" //displaymode ("auto" or "manual"). No need to modify as form at the bottom will control it, unless you wish to remove form.
var selectedDiv=0
var totalDivs=0
function getElementbyClass(classname){
partscollect=new Array()
var inc=0
var alltags=document.all? document.all.tags("DIV") : document.getElementsByTagName("*")
for (i=0; i<alltags.length; i++){
if (alltags[i].className==classname)
partscollect[inc++]=alltags[i]
}
}
function contractall(){
var inc=0
while (partscollect[inc]){
partscollect[inc].style.display="none"
inc++
}
}
function expandone(){
var selectedDivObj=partscollect[selectedDiv]
contractall()
selectedDivObj.style.display="block"
if (document.gallerycontrol)
temp.options[selectedDiv].selected=true
selectedDiv=(selectedDiv<totalDivs-1)? selectedDiv+1 : 0
if (displaymode=="auto")
autocontrolvar=setTimeout("expandone()",tickspeed)
}
function populatemenu(){
temp=document.gallerycontrol.menu
for (m=temp.options.length-1;m>0;m--)
temp.options[m]=null
for (i=0;i<totalDivs;i++){
var thesubject=partscollect[i].getAttribute("subject")
thesubject=(thesubject=="" || thesubject==null)? "HTML Content "+(i+1) : thesubject
temp.options[i]=new Option(thesubject,"")
}
temp.options[0].selected=true
}
function manualcontrol(menuobj){
if (displaymode=="manual"){
selectedDiv=menuobj
expandone()
}
}
function preparemode(themode){
displaymode=themode
if (typeof autocontrolvar!="undefined")
clearTimeout(autocontrolvar)
if (themode=="auto"){
document.gallerycontrol.menu.disabled=true
autocontrolvar=setTimeout("expandone()",tickspeed)
}
else
document.gallerycontrol.menu.disabled=false
}
function startgallery(){
if (document.getElementById("controldiv")) //if it exists
document.getElementById("controldiv").style.display="block"
getElementbyClass("gallerycontent")
totalDivs=partscollect.length
if (document.gallerycontrol){
populatemenu()
if (document.gallerycontrol.mode){
for (i=0; i<document.gallerycontrol.mode.length; i++){
if (document.gallerycontrol.mode[i].checked)
displaymode=document.gallerycontrol.mode[i].value
}
}
}
if (displaymode=="auto" && document.gallerycontrol)
document.gallerycontrol.menu.disabled=true
expandone()
}
[/spoiler]
code in my css
[spoiler]
// galery photo prive
.gallerycontent{
width: 300px;
height: 150px;
border: 1px solid black;
background-color: #ffffff;
padding: 3px;
display: block;
color:#000000;
}
.gallerycontroller{
width: 300px;
}
[/spoiler]
help me bro
Last edited by __mc.donald__ (2008-04-15 22:27:41)