Results 1 to 7 of 7

Thread: Modifying DD's New Album Script?

  1. #1
    Join Date
    Nov 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Modifying DD's New Album Script?

    Script: DD Tab Menu
    http://www.dynamicdrive.com/dynamici...photoalbum.htm

    We would like to modify the appearance of this album just a little bit.

    would really appreciate it if you know how to...

    1) bring the page navigation links (page 1, page 2, etc.) on top of the gallery table? (this way it is more likely to let people know there are more pages)

    2) or, better yet, change these wording to your liking, such as “more friends page 1” “favorite links 2” etc.?

    3) change the font size / appearance in css? We like: size 2 (12px), Verdana/Arial, and color white. (font for image descriptions is pretty stubbon; stays tiny default Times Roman no matter how we tried).

    Thank you!!!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The changes to the style of the 'page' links (font family, size, etc.) are done here:

    Code:
    #navlinks a{ /*CSS for each navigational link*/
    margin-right: 8px;
    margin-bottom: 3px;
    font-size: 80%;
    font-family:verdana, arial;
    }
    Your other two requests were a bit more involved. All three are incorporated in this Demo. It is a slow server (usually) but, once the page loads you can right click on a blank area and choose 'view source'.
    - John
    ________________________

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

  3. #3
    Join Date
    Nov 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It is so kind of you - it works beautifully! Thank you.

    A few more questions…

    1) Yes, we kind of guessed that’s the area to change the font style. Would you tell us, also, how to change the font of those “optional descriptions” under each image? Right now it stays plain Times Roman… would like the same white Verdana/Arial.

    2) Would you say these descriptions underneath can be read just fine by search engines for keywords, like non-script links? We are using the album for that purpose as well, rather than simply describe the images…

    Thanks!!!

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Blueberry, to answer your last 2 questions:

    1) Modify the below rule with:

    Code:
    .slideshow{ /*CSS for DIV containing each image*/
    float: left;
    width: 200px;
    height: 270px;
    font: normal 12px Verdana;
    color: white;
    }
    for example.

    2) No, the description most likely won't be picked up by search engines, as they are dynamically written via JavaScript, not plain HTML. Smart search engines like Google are rumored to be able to interpret JavaScript as well on the page, but that's another story and theory.

  5. #5
    Join Date
    Nov 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you for the quick reply - forgot to ask this ... is it possible to make the descriptions links, so that people can click on either images or words?

    Very helpful forum!

  6. #6
    Join Date
    Nov 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Your help was so wonderfully fast, we haven't organized our questions very well...our apologies for not very neat posts.

    One last question for this script: while it definitely saves space as we have tons of images to show on one page, does it also help save loading time (and hopefully bandwidth)?

    Thank you so much for all the help!

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    To make the descriptions (captions) of the images links as well, find these two lines in 'function buildimage(i)':

    Code:
    tempcontainer=galleryarray[i][3]!=""? tempcontainer+'</a>' : tempcontainer
    tempcontainer=galleryarray[i][2]!=""? tempcontainer+'<br \/>'+galleryarray[i][2] : tempcontainer
    and reverse their order:

    Code:
    tempcontainer=galleryarray[i][2]!=""? tempcontainer+'<br \/>'+galleryarray[i][2] : tempcontainer
    tempcontainer=galleryarray[i][3]!=""? tempcontainer+'</a>' : tempcontainer
    This script will have little or no effect on bandwidth but should accelerate the apparent load time under some circumstances. Bytes are bytes however you look at it and all must eventually be transferred.
    - John
    ________________________

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

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
  •