Results 1 to 3 of 3

Thread: Use buttons instead of Text Links in PHP Photo Album v2.11

  1. #1
    Join Date
    Apr 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Use buttons instead of Text Links in PHP Photo Album v2.11

    1) Script Title:
    PHP Photo Album v2.11

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...photoalbum.htm

    3) Describe problem:
    Can I use Buttons instead of the "Page 1, page 2, page 3" text links at the bottom to see the next set of pictures?

    I changed the code in the js file, the buttons are showing but not going to the next page (#Page2 and so on) when clicked on, but when I change back to Text links (Page '+i+'), the script works.

    I know the "i+i" is only for the visitor to see the page number, but for some reason the button links are not working.

    I searched the forums as well but didn't find anything. Any help would be greatly appreciated.

    Thanks!

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

    Default

    Well, the following line inside the .js file is responsible for outputting the text links:

    Code:
    document.write('<a href="#Page' + i+ '" rel="'+i+'">Page'+i+'</a> ')
    To change them to image links, you can simply modify the above to ouput the appropriate HTML, for example:
    Code:
    document.write('<a href="#Page' + i+ '" rel="'+i+'"><img src="button' + i + '.gif" /></a> ')
    This would cause the script to use the buttons with file names button1.gif, button2.gif, etc as the navigational links.
    DD Admin

  3. #3
    Join Date
    Apr 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default No didn't work

    No that didn't work either. Sorry & Thanks!

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
  •