Advanced Search

Results 1 to 4 of 4

Thread: CMotion Image Gallery script: question on end of gallery message

  1. #1
    Join Date
    Aug 2006
    Posts
    101
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default CMotion Image Gallery script: question on end of gallery message

    1) Script Title: CMotion Image Gallery Script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...iongallery.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.

    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

  2. #2
    Join Date
    Aug 2006
    Posts
    101
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    Hi,

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

    Bye,
    Monique

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,672
    Thanks
    43
    Thanked 3,125 Times in 3,091 Posts
    Blog Entries
    12

    Default

    OK but, please stop posting in purple italics.

    Define a beginningofgallerymsg just below the endofgallerymsg:

    Code:
    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:

    Code:
    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    Aug 2006
    Posts
    101
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    Hi -John,

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

    Thanks again for you reply. It works perfect!

    Bye,
    Monique

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •