28 septembre 2009

défilement d'images avec liens

laissez vos commentaires ..........laissez vos commentaires ..........laissez moi vos commentaires ..........
défilement d'images avec liens: j'espère que vous serez nombreux à apprécier




voici un petit script qui permet de faire un slideshow avec des liens à chaque image.
parfait pour mettre en valeur des pages, des messages, des liens.

vous pouvez voir ce sript tourner sur ce blog, et sur http://artgallery-mrdo.blogspot.com

n'hésitez pasà laisser des commentaires

< type="text/javascript">
//Specify the slider's width (in pixels)
var sliderwidth="250px" (modifier la largeur)
//Specify the slider's height
var sliderheight="170px" (modifier la hauteur)
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=1 (modifier la vitesse: 1 = lent)
//configure background color:
slidebgcolor="#000000" (modifiez la couleur de fond)

//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
leftrightslide[0]='< href="URL du lien"> < border="1" src="URL de l'image"> < /a >'
leftrightslide[1]='< href="URL du lien"> < border="1" src="URL de l'image"> < /a >'
leftrightslide[2]='< href="URL du lien"> < border="1" src="URL de l'image"> < /a >'
leftrightslide[3]='< href="URL du lien"> < border="1" src="URL de l'image"> < /a >'
leftrightslide[4]='< href="URL du lien"> < border="1" src="URL de l'image"> < /a >'
//Specify gap between each image (use HTML):
var imagegap=" "

//Specify pixels gap between each slideshow rotation (use integer):
var slideshowgap=5


////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=slidespeed
leftrightslide='<>'+leftrightslide.join(imagegap)+'< /nobr >'
var iedom=document.all||document.getElementById
if (iedom)
document.write('< id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'< /span > ')
var actualwidth=''
var cross_slide, ns_slide

function fillup(){
if (iedom){
cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
cross_slide2.style.left=actualwidth+slideshowgap+"px"
}
else if (document.layers){
ns_slide=document.ns_slidemenu.document.ns_slidemenu2
ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
ns_slide.document.write(leftrightslide)
ns_slide.document.close()
actualwidth=ns_slide.document.width
ns_slide2.left=actualwidth+slideshowgap
ns_slide2.document.write(leftrightslide)
ns_slide2.document.close()
}
lefttime=setInterval("slideleft()",30)
}
window.onload=fillup

function slideleft(){
if (iedom){
if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"
else
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px"

if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"
else
cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px"

}
else if (document.layers){
if (ns_slide.left>(actualwidth*(-1)+8))
ns_slide.left-=copyspeed
else
ns_slide.left=ns_slide2.left+actualwidth+slideshowgap

if (ns_slide2.left>(actualwidth*(-1)+8))
ns_slide2.left-=copyspeed
else
ns_slide2.left=ns_slide.left+actualwidth+slideshowgap
}
}


if (iedom||document.layers){
with (document){
document.write('< border="0" cellspacing="0" cellpadding="0"> <>')
if (iedom){
write('< style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden"> ')
write('< style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onmouseover="copyspeed=0" onmouseout="copyspeed=slidespeed">')
write('< id="test2" style="position:absolute;left:0px;top:0px"> < / div >')
write('< id="test3" style="position:absolute;left:-1000px;top:0px"> < / div >')
write('< /div> < /div >')
}
else if (document.layers){
write('< width="+sliderwidth+" height="+sliderheight+" name="ns_slidemenu" bgcolor="+slidebgcolor+"> ')
write('< left="0" top="0" onmouseover="copyspeed=0" onmouseout="copyspeed=slidespeed" name="ns_slidemenu2"> < /layer >')
write('< left="0" top="0" onmouseover="copyspeed=0" onmouseout="copyspeed=slidespeed" name="ns_slidemenu3"> < /layer >')
write('< /ilayer >')
}
document.write('< / td > < /table >')
}
}
< /script >



voila ce que ça donne:

13 septembre 2009

Stand By Me



Stand By Me - Playing For Change - Song Around the World





paroles originales:

When the night has come
And the land is dark
And the moon is the only
light we'll see

No, I won't be afraid
No, I won't be afraid
Just as long as you stand
Stand by me

So darling, darling

Stand by me
Oh, stand by me
Oh, stand
Stand by me,
Stand by me

If the sky that we look upon
Should tumble and fall
Or the mountains should crumble
to {in?} the sea
I won't cry, I won't cry

No, I won't shed a tear
Just as long as you stand
Stand by me

So darling, darling

Stand by me
Oh, stand by me
Oh, stand
Stand by me
Stand by me

{Dans certaines versions seulement:}

Whenever you're in trouble
Won't you

Stand by me
Oh, stand by me
Oh, stand
Stand by me
Stand by me


paroles en Français:

Reste Contre Moi

Quand la nuit arrive
Et que le sol est sombre
Et que la lune est la seule lumière que nous voyons
Non, je n'aurai pas peur
Oh, je n'aurai pas peur
Tant que tu restes
Tu restes contre moi

Reste contre moi
Oh, reste contre moi
Oh, reste, reste contre moi, reste contre moi

Si le ciel que nous regardons d'en bas
Pouvait dégringoler et tomber
Ou si les montagnes pouvaient s'écrouler dans la mer
Je ne pleurerai pas, je ne pleurerai pas

Non, je ne verserai pas une larme
Tant que tu restes
Tu restes contre moi

[Refrain]