PDA

View Full Version : CMotion Image Gallery script: question on end of gallery message



monique
12-20-2006, 11:47 AM
1) Script Title: CMotion Image Gallery Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/cmotiongallery.htm

3) Describe problem: I have a question on end of gallery message.

On my website I have used this script (which I really love) on the online gallery, see: http://www.arti-mo.com/onlinegalerie.htm. I have customized the neccessary details and I believe it looks and works really good. I have checked it in all main browsers and all show the same result. Great! :)

One question I have to maybe have it 100% correct (at least in my view):

In the downloaded file motiongallery.js there is an option to use this:
//5) Set message to show at end of gallery. Enter "" to disable message.
var endofgallerymsg='<span>einde van de online galerie</span>';
(as you can see I changed the text into Dutch).

This is now shown both at the beginning and the end of the gallery. :confused:

Now in my opinion there is a beginning and an end of the gallery, so besides the endofgallerymsg there should also be a text for beginningofgallerymsg. Which of course are shown at the beginning resp. the end of the gallery. :(

Is this possible and what can I do to get this done?

Thanks and best regards,
Monique

monique
12-28-2006, 08:57 PM
Hi,

Still waiting for someone to help me with this "challenge"... :(

Bye,
Monique

jscheuer1
12-29-2006, 05:26 AM
OK but, please stop posting in purple italics. :)

Define a beginningofgallerymsg just below the endofgallerymsg:


var endofgallerymsg='<span style="font-size: 11px;">End of Gallery</span>';
var beginningofgallerymsg='<span style="font-size: 11px;">Beginning of Gallery</span>';


Next find the moveleft() and moveright() functions:


function moveleft(){
if (loadedyes){
movestate="left";
if (iedom&&parseInt(cross_scroll.style.left)>(menuwidth-actualwidth)){
cross_scroll.style.left=parseInt(cross_scroll.style.left)-scrollspeed+"px";
showhidediv("hidden");
}
else{
statusdiv.innerHTML=endofgallerymsg;
showhidediv("visible");
}
}
lefttime=setTimeout("moveleft()",10);
}

function moveright(){
if (loadedyes){
movestate="right";
if (iedom&&parseInt(cross_scroll.style.left)<0){
cross_scroll.style.left=parseInt(cross_scroll.style.left)+scrollspeed+"px";
showhidediv("hidden");
}
else{
statusdiv.innerHTML=beginningofgallerymsg;
showhidediv("visible");
}
}
righttime=setTimeout("moveright()",10);
}

Add the red parts.

monique
01-02-2007, 03:27 PM
Hi -John,

Now I finally understand: you don't like my purple italic post. What a shame... :D

Thanks again for you reply. It works perfect!

Bye,
Monique