Hi I am new to javascript and I am using a code that brings up
pictures(slides how) with this code
<script type="text/javascript">
var photos=new Array()
var which=0
photos[0]="../images/fullfc_pe_04.jp g"
photos[1]="../images/fullfc_pe_05.jp g"
photos[2]="../images/fullfc_pe_06.jp g"
photos[3]="../images/fullfc_pe_07.jp g"
photos[4]="../images/fullfc_pe_08.jp g"
photos[5]="../images/fullfc_pe_09.jp g"
photos[6]="../images/fullfc_pe_12.jp g"
var preloadedimages =new Array()
for (i=0;i<photos.l ength;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photos[i]
}
function applyeffect(){
if (document.all && photoslider.fil ters){
photoslider.fil ters.revealTran s.Transition=Ma th.floor(Math.r andom()*23)
photoslider.fil ters.revealTran s.stop()
}
}
function playeffect(){
if (document.all && photoslider.fil ters)
photoslider.fil ters.revealTran s.play()
}
function keeptrack(){
window.status=" Image "+(which+1) +" of "+photos.le ngth
}
function backward(){
if (which>0){
which--
applyeffect()
document.images .photoslider.sr c=photos[which]
playeffect()
keeptrack()
}
}
function forward(){
if (which<photos.l ength-1){
which++
applyeffect()
document.images .photoslider.sr c=photos[which]
playeffect()
keeptrack()
}
}
function transport(){
window.location =photoslink[which]
}
</script>
then using this
<script>
if (linkornot==1)
document.write( '<a href="javascrip t:transport()"> ')
document.write( '<img src="'+photos[0]+'" name="photoslid er"
style="filter:r evealTrans(dura tion=2,transiti on=23)" border=0>')
if (linkornot==1)
document.write( '</a>')
</script>
I got that code from a co-worker who got it at a free code site and I
know some of it isnt used. The question I have is can I tell a link
from a another page which picture I want it to load, if so how would I
go about that, thanks in advance.