|
|
|
Forum Guru
      
Group: Forum Members
Last Login: 8/29/2007 6:36:38 AM
Posts: 56,
Visits: 356
|
|
| This is something I want to do, but requires more complex code then I know. I use lightbox for my images on my page. But when adding photos to a collection, the code is very repetitious, with small changes. I want to create a web page, where I can enter the code for each reference, and when I press submit, it generates the number iterations I request with the small incremental differences. Example: <div class="thumbnail"> <a href="_images/_thewedding/wedding.03022007.001.jpg" rel="lightbox[thewedding]" title="Roll over and click right side of image to move forward.<br /> Felicia, Tessa, Carey and Tanya"><img src="_images/_thewedding/_thumbs/thumbs.thewedding.001.jpg" width="100" height="75" alt="TheWedding: image 1 0f 44 thumb" class="noborder" /></a> </div> <div class="thumbnail"> <a href="_images/_thewedding/wedding.03022007.002.jpg" rel="lightbox[thewedding]" title="Roll over and click right side of image to move forward.<br /> Tessa, Carey, Tanya, the back of Steven's Head"><img src="_images/_thewedding/_thumbs/thumbs.thewedding.002.jpg" width="100" height="75" alt="TheWedding: image 2 0f 44 thumb" class="noborder" /></a> </div>
In the example, there are 44 total images. The green text, is the individual description, this would have to be changed manually, or left out. The red text, is the number which increments up to 044, and 44 of 44. So I would want to be able to input: <div class="thumbnail"> <a href="_images/_thewedding/wedding.03022007.###.jpg" rel="lightbox[thewedding]" title="Roll over and click right side of image to move forward.<br /> description"><img src="_images/_thewedding/_thumbs/thumbs.thewedding.###.jpg" width="100" height="75" alt="TheWedding: image ## 0f 44 thumb" class="noborder" /></a> </div> and let the script know, I want a series of 001 thru 044. It would then generate this code 44 times with the ### marks being replaced with 001 thru 044.
Any advice? I am sorry this is such a long post.
Always looking for advice on Design http://www.careysturner.com http://www.turnerpchelp.com http://www.tessajoturner.com http://www.igotitfree.info http://www.tanya-turner.com http://www.anna-calef.com http://www.since2009.com
|
|
|
|
|
Forum Newbie
      
Group: Administrators
Last Login: 2/21/2008 8:03:24 AM
Posts: 7,
Visits: 12
|
|
are you looking for a tool that will do this prior to inserting it into the page or something that will insert this via code into the DOM as the page is rendered?
---------signature-----------
Learn Visual Studio Inc. Developer / Trainer
www.learnvisualstudio.net
|
|
|
|
|
Forum Guru
      
Group: Forum Members
Last Login: 8/29/2007 6:36:38 AM
Posts: 56,
Visits: 356
|
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 8/14/2007 3:52:12 AM
Posts: 31,
Visits: 366
|
|
| these kind of scripts and plugins are very useful, and just the other day i was using this method (the manual typing method) to create a lightbox page with 113 images!! Man it was hell! When/if i ever get some 'play' time again i may try and generate a script for this.
|
|
|
|
|
Forum Guru
      
Group: Forum Members
Last Login: 8/29/2007 6:36:38 AM
Posts: 56,
Visits: 356
|
|
|
|
|