+ Reply to Thread
Results 1 to 3 of 3

Thread: altering a script

  1. #1
    Barn Enthusiast Shem is on a distinguished road Shem's Avatar
    Join Date
    Mar 2008
    Posts
    305
    Rep Power
    4

    altering a script

    Morning

    I have this really cool script that lets divide thumbnails into pages, so you can page through them...

    What I would now like to do is, alter this script so that I can put any content inside these different pages, and have it page through them.

    I've tried to alter the code myself, but I suck at js!

    here's a link to the example:
    JSGallery2 demopage

    their html layout for the thumbnails looks like so:
    (this example is just using 2 pages)
    Code:
    <div id="page01" class="page">
    	<div id="image1" class="thumbnail">
    		<a href="images/img1_big.jpg" rel="images/img1_big.jpg" class="thumblink">
    			<img src="images/img1_thumb.jpg" alt=""/>
    		</a>
    	</div>
    	
    	<div id="image2" class="thumbnail">
    		<a href="images/img2_big.jpg" rel="images/img2_big.jpg" class="thumblink">
    			<img src="images/img2_thumb.jpg" alt=""/>
    		</a>
    	</div>
    </div>
    
    <div id="page02" class="page">
    	<div id="image3" class="thumbnail">
    		<a href="images/img3_big.jpg" rel="images/img3_big.jpg" class="thumblink">
    			<img src="images/img3_thumb.jpg" alt=""/>
    		</a>
    	</div>
    	
    	<div id="image4" class="thumbnail">
    		<a href="images/img4_big.jpg" rel="images/img4_big.jpg" class="thumblink">
    			<img src="images/img4_thumb.jpg" alt=""/>
    		</a>
    	</div>
    </div>
    
    I'd like to have it altered so I can stick content in like so:
    Code:
    <div id="page01" class="page">
    	<ul>
    		<li>Any content</li>
    		<li>Any content</li>
    		<li>Any content</li>
    		<li>Any content</li>
    		<li>Any content</li>
    	</ul>
    </div>
    
    <div id="page02" class="page">
    	<ul>
    		<li>Any content</li>
    		<li>Any content</li>
    		<li>Any content</li>
    		<li>Any content</li>
    		<li>Any content</li>
    	</ul>
    </div>
    
    So basically i'd like to put any code in the <div id="page.." class="page"> and page through them.

    If anyone can figure this out, or help me work through the js file (all found at the example link I gave) I would greatly appreciate it.

    Many Thanks
    Shem

  2. #2
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Hey Shem...

    I'd have to sit down and work through it all to work out what does what...I don't have the time at the moment, but might be able to take a look later...

    Sorry about that...This is above my level of knowledge!

  3. #3
    Barn Enthusiast Shem is on a distinguished road Shem's Avatar
    Join Date
    Mar 2008
    Posts
    305
    Rep Power
    4

    cool... thanks bruv

+ Reply to Thread

Similar Threads

  1. Basic Login Script (using MS Acesss)
    By BLaaaaaaaaaarche in forum ASP Code Samples
    Replies: 0
    Last Post: March 24th, 2008, 05:50 PM

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

SEO by vBSEO