html genreation script
LearnExpression Support Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



html genreation script Expand / Collapse
Author
Message
Posted 6/3/2007 10:59:31 AM


Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum 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                         

Post #361
Posted 6/4/2007 12:20:08 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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
Post #362
Posted 6/7/2007 6:41:55 AM


Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 8/29/2007 6:36:38 AM
Posts: 56, Visits: 356
I was actually hoping to do it via html/asp.net, so it could be online, and useable by others.  It seems like a very useful thing to have.

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                         
Post #368
Posted 6/8/2007 5:39:12 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum 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.

Post #376
Posted 6/9/2007 9:56:41 AM


Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 8/29/2007 6:36:38 AM
Posts: 56, Visits: 356
A little of subject, but lightbox is so cool.  Other then having to  type up the code.

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                         
Post #378
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.

Permissions Expand / Collapse

All times are GMT -6:00, Time now is 6:47pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 11 queries. Compression Disabled.