Results 1 to 10 of 10

Thread: Virtual pagination edit

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

    Default Virtual pagination edit

    1) Script Title: Virtual pagination V2.1

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

    3) Describe problem: Need to adjust size of container
    both CSS and image edit were unsuccessfull.



    Test installation

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    Try changing the numbers in the paragraph highlighted in red. That should change the size of the container.
    Code:
    <!-- Virtual Pagination Demo 4  -->
    <h3>Demo 4 (shows "flatview" pagination interface with custom text defined):</h3>
    
    <div style="width: 450px; height: 350px;">
    
    <div class="virtualpage4 hidepiece">
    <img src="http://img25.imageshack.us/img25/8442/castlei.gif width="450" height="300" />
    </div>
    
    <div class="virtualpage4 hidepiece">
    <img src="http://img201.imageshack.us/img201/7907/streetkz4.gif" />
    </div>
    
    <div class="virtualpage4 hidepiece">
    <img src="http://img201.imageshack.us/img201/8538/weedjh8.gif" />
    </div>
    
    <div class="virtualpage4 hidepiece">
    <img src="http://img201.imageshack.us/img201/6923/countryxb6.gif" />
    </div>
    
    </div>

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

    Question virtual pagination edit

    It appears that the div does change in size , but perhaps being virtual it is not seen

    the images do not appear to be resized
    thanks

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

    Default virtual pagination edit

    Some resolving
    I did not realize this may be a universal problem but
    Images will not be re-sized if they are not hosted in the same location

    same server,
    same folder

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

    Default

    Why not just give your images explicit width/height attributes to control their dimensions as desired?
    DD Admin

  6. The Following User Says Thank You to ddadmin For This Useful Post:

    dbldee (08-02-2011)

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

    Default virtual pagination edit

    Good suggestion

    More discovery.
    Need to replace the text links with images

    Created a folder with the images in it
    the virtualpaginate.js has been edited
    HTML Code:
    USTOMIZATION
    var imgdir = './images/'; //path to images directory (notice the trailing slash)

    and initialize script
    HTML Code:
    <script type="text/javascript">
    
    var gallery4=new virtualpaginate({
    	piececlass: "virtualpage4",
    	piececontainer: 'div',
    	pieces_per_page: 1,
    	defaultpage: 0,
    	wraparound: false,
    	persist: true
    })
    
    gallery4.buildpagination(["galleryalt"], ["castle.jpg", "park.jpg", "harvest.jpg", "country.jpg"])
    
    </script>
    Is there some other adjustment required , Or is there a syntax error somwhere?

    test installation

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

    Default virtual pagination edit

    Solving
    using rel url for img locations

    How/where can the original boxes for the text links be removed?

    thank you




    test install

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

    Default

    Just use CSS. The pagination links, in this case, thumbnail images, are dynamically added inside the SPAN element:

    Code:
    <span class="flatview"></span>
    So to get rid of the default image border, in your CSS, you can do something like:

    Code:
    span.flatview a{
    border-width:0;
    }
    DD Admin

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

    Default virtual pagination edit

    Thanks John
    All images are of different sizes and from different locations
    I would like to have them all render at the same size.
    to avoid having to edit each one individually, as there are scores of them
    I have tried unsuccessfully to set all images in CSS, but something's still missing


    HTML Code:
    .img {
    width: 500px;
    height: 400px;
    }
    and my eyes will not tell me what it is

    Assistance appreciated


    thank you

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

    Default Auto resize images

    Does anyone have some insight as to where the edits are made
    I have tried both the CSS
    HTML Code:
    .img src {
    
    width: 500px;
    
    height: 400px;
    
    }
    and the div
    HTML Code:
    <div style="width: 550px; height: 450px;">
    but no joy..

    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
  •