Jump to content
Forum Roportal
Sign in to follow this  
Ecko72

Sal vreau shi eu sa fac un slideshow ... ma ajuta careva?pls!

Rate this topic

Recommended Posts

sal all... am invercat in f multe variante shi nu unu ci vreo 20 de coduri shi nu merge nici unu ca in linkul asta http://www.1lovecards.com/sweet-kisses.html va rog eu mult cine are un asemenea cod sau cine shi cand are timp sa mi`l faca ..daca vrea cineva ..ms all ..salut, am incercat shi asa dar degeaba ..

<table>

<tr>

<td>

<script type="text/javascript">

 

/***********************************************

* Translucent Slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)

* This notice MUST stay intact for legal use

* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code

***********************************************/

 

var trans_width='380px' //slideshow width

var trans_height='306px' //slideshow height

var pause=3000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)

var degree=10 //animation speed. Greater is faster.

 

var slideshowcontent=new Array()

//Define slideshow contents: [image URL, OPTIONAL LINK, OPTIONAL LINK TARGET]

slideshowcontent[0]=["1.jpg", "", ""]

slideshowcontent[1]=["2.jpg", "", ""]

slideshowcontent[2]=["3.jpg", "", ""]

 

 

////NO need to edit beyond here/////////////

 

var bgcolor='ffffff'

 

var imageholder=new Array()

for (i=0;i<slideshowcontent.length;i++){

imageholder=new Image()

imageholder.src=slideshowcontent[0]

}

 

var ie4=document.all

var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1

 

if (ie4||dom)

document.write('<div style="position:relative;width:'+trans_width+';height:'+t rans_height+';overflow:hidden"><div id="canvas0" style="position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+t rans_height+';left:-'+trans_width+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div><div id="canvas1" style="position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+t rans_height+';left:-'+trans_width+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div></div>')

else if (document.layers){

document.write('<ilayer id=tickernsmain visibility=hide width='+trans_width+' height='+trans_height+' bgColor='+bgcolor+'><layer id=tickernssub width='+trans_width+' height='+trans_height+' left=0 top=0>'+'<img src="'+slideshowcontent[0][0]+'"></layer></ilayer>')

}

 

var curpos=trans_width*(-1)

var curcanvas="canvas0"

var curindex=0

var nextindex=1

 

function getslidehtml(theslide){

var slidehtml=""

if (theslide[1]!="")

slidehtml='<a href="'+theslide[1]+'" target="'+theslide[2]+'">'

slidehtml+='<img src="'+theslide[0]+'" border="0">'

if (theslide[1]!="")

slidehtml+='</a>'

return slidehtml

}

 

function moveslide(){

if (curpos<0){

curpos=Math.min(curpos+degree,0)

tempobj.style.left=curpos+"px"

}

else{

clearInterval(dropslide)

if (crossobj.filters)

crossobj.filters.alpha.opacity=100

else if (crossobj.style.MozOpacity)

crossobj.style.MozOpacity=1

nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"

tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)

tempobj.innerHTML=getslidehtml(slideshowcontent[curindex])

nextindex=(nextindex<slideshowcontent.length-1)? nextindex+1 : 0

setTimeout("rotateslide()",pause)

}

}

 

function rotateslide(){

if (ie4||dom){

resetit(curcanvas)

crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)

crossobj.style.zIndex++

if (crossobj.filters)

document.all.canvas0.filters.alpha.opacity=documen t.all.canvas1.filters.alpha.opacity=20

else if (crossobj.style.MozOpacity)

document.getElementById("canvas0").style.MozOpacity=document.getElementById("canvas1").style.MozOpacity=0.2

var temp='setInterval("moveslide()",50)'

dropslide=eval(temp)

curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0"

}

else if (document.layers){

crossobj.document.write(getslidehtml(slideshowcont ent[curindex]))

crossobj.document.close()

}

curindex=(curindex<slideshowcontent.length-1)? curindex+1 : 0

}

 

function jumptoslide(which){

curindex=which

rotateslide()

}

 

function resetit(what){

curpos=parseInt(trans_width)*(-1)

var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)

crossobj.style.left=curpos+"px"

}

 

function startit(){

crossobj=ie4? eval("document.all."+curcanvas) : dom? document.getElementById(curcanvas) : document.tickernsmain.document.tickernssub

if (ie4||dom){

crossobj.innerHTML=getslidehtml(slideshowcontent[curindex])

rotateslide()

}

else{

document.tickernsmain.visibility='show'

curindex++

setInterval("rotateslide()",pause)

}

}

 

if (window.addEventListener)

window.addEventListener("load", startit, false)

else if (window.attachEvent)

window.attachEvent("onload", startit)

else if (ie4||dom||document.layers)

window.onload=startit

 

</script>

</td>

</tr>

</table>

var slideshowcontent=new Array()

//Define slideshow contents: [image URL, OPTIONAL LINK, OPTIONAL LINK TARGET]slideshowcontent[0]=["/sitebuildercontent/sitebuilderpictures/.pond/k3.jpg", "http://mihaela18ro.tripod.com", ""]

slideshowcontent[1]=["/sitebuildercontent/sitebuilderpictures/.pond/k2.jpg", "", ""]

slideshowcontent[2]=["/sitebuildercontent/sitebuilderpictures/.pond/k1.jpg", "", ""]

var slideshowcontent=new Array()

//Define slideshow contents: [image URL, OPTIONAL LINK, OPTIONAL LINK TARGET]slideshowcontent[0]=["/new/k1.jpg", "http://www.1lovecards.com", ""]

slideshowcontent[1]=["/new/k2.jpg", "", ""]

slideshowcontent[2]=["/new/k3.jpg", "", ""]

var slideshowcontent=new Array()

//Define slideshow contents: [image URL, OPTIONAL LINK, OPTIONAL LINK TARGET]slideshowcontent[0]=["http://mihaela18ro.tripod.com/sitebuildercontent/sitebuilderpictures/.pond/k3.jpg", "", ""]

slideshowcontent[1]=["http://mihaela18ro.tripod.com/sitebuildercontent/sitebuilderpictures/.pond/k2.jpg", "", ""]

slideshowcontent[2]=["http://mihaela18ro.tripod.com/sitebuildercontent/sitebuilderpictures/.pond/k1.jpg", "", ""]

ziceti`mi shi mie cum sa fac exact va rog eu ..ms all shi sal

Share this post


Link to post
Share on other sites

Eu una nu inteleg despre ce coduri vorbesti...adevarul este ca nici nu am mare treaba cu softuri, programele...Dar stiu sa fac un slide show in PowerPoint. Asta te intereseaza?

Share this post


Link to post
Share on other sites
Eu una nu inteleg despre ce coduri vorbesti...adevarul este ca nici nu am mare treaba cu softuri, programele...Dar stiu sa fac un slide show in PowerPoint. Asta te intereseaza?

Poi nush cum e aia... te`ai uitat pe site`ul ala sa vezi cum e slide`ul ala? .. deci nu imi merge nici cum ... sau nush sa pun linkul cu poze

P.S. arata`mi shi mie un exemplu despre ala ce zici tu..daca e pe vre`un site ms

Share this post


Link to post
Share on other sites
Eccao72 ce nu iti iese mai exact sa pui cantecul, inlantuirea aia de poze. Da mai multe detalii ca sa te pot ajuta

Salut..pari a fi de treaba, deci sa iti zic .. am incercat sa fac cu acel slidesow-la ..si merge pe calc ..(am bagat intr-un folder pozele si codul si merge) dar pe site deloc... numa pozele ma inteseaza ..deci daca stii cum sa bag pozele ? .. cu lincaul ..

//Define slidesow contents: [image URL, OPTIONAL LINca, OPTIONAL LINca TARGET]slidesowcontent[0]=["http://eccao72unltd.tripod.com/sitebuildercontent/sitebuilderpictures/poza1.jpg", "", ""]

slidesowcontent[1]=["http://eccao72unltd.tripod.com/sitebuildercontent/sitebuilderpictures/poza2.jpg", "", ""]

slidesowcontent[2]=["http://eccao72unltd.tripod.com/sitebuildercontent/sitebuilderpictures/poza3.jpg", "", ""]

Exact asa am folosit si nu merge deloc..deci stii tu cums a fac ? ..sau unde anume tre sa pun pozele :P ?

 

Salut..pari a fi de treaba, deci sa iti zic .. am incercat sa fac cu acel slidesow-la ..si merge pe calc ..(am bagat intr-un folder pozele si codul si merge) dar pe site deloc... numa pozele ma inteseaza ..deci daca stii cum sa bag pozele ? .. cu lincaul ..

Exact asa am folosit si nu merge deloc..deci stii tu cums a fac ? ..sau unde anume tre sa pun pozele :P ?

ciudat mi-a dat gresit pastele mai sus..

//Define slidesow contents: [image URL, OPTIONAL LINca, OPTIONAL LINca TARGET]slidesowcontent[0]=["http://eccao72unltd.tripod.com/sitebuildercontent/sitebuilderpictures/poza1.jpg", "", ""]

slidesowcontent[1]=["http://eccao72unltd.tripod.com/sitebuildercontent/sitebuilderpictures/poza2.jpg", "", ""]

slidesowcontent[2]=["http://eccao72unltd.tripod.com/sitebuildercontent/sitebuilderpictures/poza3.jpg", "", ""]

deci alea sunt lincaurile cu poze ..

 

hmmm de ce nu mi se afiseaza lincaul corect? ... http://eccao72unltd.tripod.com/sitebuilder...tures/poza1.jpg

 

asta e lincaul aici

 

ciudat nu ma lasa sa pun numele lincaului cu poza ..e "eccao72unltd"

 

extraordinar .. " e c ca o 7 2 u n la te de "

 

:-)) ...nici de cum nu ma lasa deci e ca niccaul meu numa ca are "unltd" in continuare ..sory pentru atatea posturi..

Share this post


Link to post
Share on other sites

8) man acela nu este un slideshow in powerpoint.. ci e un slideshow in javascript :hi:

 

iti recomanda sa iei scriptul acolo si sa modific numai datele care te intereseaza

 

slideshowcontent[0]=["/new/k1.jpg", "http://www.1lovecards.com", ""]
slideshowcontent[1]=["/new/k2.jpg", "", ""]
slideshowcontent[2]=["/new/k3.jpg", "", ""]

 

acolo in loc de /new/k1.jpg pune legatura catre paginile tale......

 

ATentie: PUNE sursa fara adresa completa.........

 

dar cel mai bine e sa inveti sa lucrezi in Flash...... si ai rezolvat problema.......

 

in maxim 2 ore inveti sa faci exact ce e acolo si nu te complici cu scripturi.......

Edited by dexterstat

Share this post


Link to post
Share on other sites
:) man acela nu este un slideshow in powerpoint.. ci e un slideshow in javascript :hi:

 

iti recomanda sa iei scriptul acolo si sa modific numai datele care te intereseaza

 

slideshowcontent[0]=["/new/k1.jpg", "http://www.1lovecards.com", ""]
slideshowcontent[1]=["/new/k2.jpg", "", ""]
slideshowcontent[2]=["/new/k3.jpg", "", ""]

 

acolo in loc de /new/k1.jpg pune legatura catre paginile tale......

 

ATentie: PUNE sursa fara adresa completa.........

 

dar cel mai bine e sa inveti sa lucrezi in Flash...... si ai rezolvat problema.......

 

in maxim 2 ore inveti sa faci exact ce e acolo si nu te complici cu scripturi.......

:lol2:) ..ushor de zic... am incercat sa ma joc in macromedia 8 shi nu stiam ce sa fac :lol2:) .. deci e super greu

shi cu slideshow`ul ala .. am incercat in multe feluri

slideshowcontent[0]=["http://link", "", ""]
slideshowcontent[1]=["http://link", "", ""]
slideshowcontent[2]=["http://link", "", ""]

slideshowcontent[0]=["/imagine/1.jpg", "http://link", ""]
slideshowcontent[1]=["/imagine/2.jpg", "", ""]
slideshowcontent[2]=["/imagine/3.jpg", "", ""]

e cam lung linkul de la poza de aceea? .. am incercat pe al fel de site shi a mers .. pe tripod de ce nu merge ? .. 8)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×