Advanced Search

Results 1 to 2 of 2

Thread: Images in virtual pagination script

  1. #1
    Join Date
    Oct 2005
    Posts
    63
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default Images in virtual pagination script

    1) Script Title: Virtual pagination script v2.1

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

    3) Describe problem: The array in gallery flatview are replaced by images.
    Must these images be stored locally or can they be called remotely

    ie would replacing
    Code:
    gallery4.buildpagination("galleryalt", ["<img src=./images/castle.jpg />"
    with
    Code:
     gallery4.buildpagination("galleryalt", ["<img src="http://domain.com/images.jpg" />"
    break any rules ?
    Last edited by jscheuer1; 09-15-2011 at 05:26 PM. Reason: formatting

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,709
    Thanks
    43
    Thanked 3,134 Times in 3,098 Posts
    Blog Entries
    12

    Default

    Neither one is valid javascript code. If they are fragments of valid code, the second one should probably be:

    Code:
     gallery4.buildpagination("galleryalt", ["<img src='http://domain.com/images.jpg' />"
    But according to the documentation, both parameters must be arrays, so:

    Code:
     gallery4.buildpagination(["galleryalt"], ["<img src='http://domain.com/images.jpg' />"
    And that's still just a fragment, the second array needs to be closed and perhaps have another item or items in it, and the function lacks a closing ).
    Last edited by jscheuer1; 09-15-2011 at 05:34 PM.
    - 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
  •