Show 1 div with PREV - NEXT link, hiding all others, Show 1 div with PREV - NEXT link, hiding all others |
Show 1 div with PREV - NEXT link, hiding all others, Show 1 div with PREV - NEXT link, hiding all others |
Baffled in Baltimore |
Jan 9 2009, 05:29 PM
Post
#1
|
Member Group: Members Posts: 51 Joined: 9-January 09 From: Baltimore, MD Member No.: 7,507 |
First, thank you for your patience and please forgive the lengthy blurb. This is a bit complicated, but I am sure there is a fix.
My website is heavily CSS structured for layout and styles for its Side-bar, heading, menu, etc. A modified CSS is used for the content and the content section is now an Iframe where all content is targeted. This was done to prevent duplication of parent. I am using GOOGLE site-map generator for the web and FreeFind for my site. Site consists of hundreds of HTML each consisting of an Image linked to a bigger image, Content, PayPal Links and other content all created with Excel for the code, Nvu for the file-saves and HTMLToolkit for the previews and error checking. When someone clicks an image anywhere on the site, it opens the HTML associated with it giving all the information about the Image. By the way, they are all table-based pages; DUMB, I know. The Problem: All these pages require updates or deletions depending on stock and pricing for any given item and frequent crawler checks for broken links afterwards. My site Spiders at roughly 500 pages and it keeps growing and getting out of hand. HELLLLLP!!!! On a more personal note; the author of the website (that’s me) is loosing his vision and can no-longer keep-up with this maddening effort… Proposed solution: I believe that enclosing all images and their associated content in DIVS is the better way to go. The idea is to have all images along with its content on one HTML. There are different categories that would use their own pages but the goal is to remove those hundreds of HTML pages and replace them with maybe a couple of dozen Category pages instead. There are as few as 1 or 2 items to as many as 100 items for any given category that would be shown 1-at-a-time using PREV - NEXT links. What I would like to accomplish is;
Whew!!! I told you it was complicated. Any assistance on setting this up (show 1 and hide the rest) is greatly appreciated. CHEERS This post has been edited by Baffled in Baltimore: Jan 9 2009, 05:56 PM |
Baffled in Baltimore |
Jan 10 2009, 02:23 PM
Post
#2
|
Member Group: Members Posts: 51 Joined: 9-January 09 From: Baltimore, MD Member No.: 7,507 |
Thanks again for your help
I appreciate the code and the assist, but I believe there is some discontinuity to the objective. When I started the website many-moons ago, I began writing the pages 1-at-a-time; but (this was already a given) this would be too prone to errors and inconsistencies. Lacking support, resources and a better way to go, I went to Excel for this purpose because there is a lot of repitition that I knew Excel would be good at. (I'm an old LOTUS user from the 80's) Using the VB tools in Excel, I wrote some code to help automate the process of writing the HTML for me. I maintain a database in one workbook that is used as the Master Record and new record input. The HTML code is written in another workbook with many variations that references the Master records; this was done to prevent data loss in the event something happens. It worked well enough to be able to author, test and debug dozens of pages at a time, ready for upload in about an hour and have been using this method until recently. I realized then that maintenance would be a problem and I was ok with that. But in light of my recent disability, I can no longer spend the time for basic upkeep; this is why I am trying to eliminate the need for having to upload and maintain MANY pages. Once this is done, there will be only a hand-full of pages to maintain instead of a truck load (the hundreds of pages that will be removed later). The information is already there, I just need a way to display it without being overwhelming or senseless. Instead of writing them with the full html script, it will be (for the most part) content that will go inside the BODY tags. Please consider the following Example for clarification: I have one html page with 20 div'd sections all showing their content. Contents are; 1001, 1002, 1003, etc to 1020. Each divd section is garnered from previously uploaded pages; twenty of them in this case. The goal is to have the first div'd section on this page show by default when the page loads, hiding the rest of them. Along with this, have one link to show previous section (if already shown, link is disabled) hiding all others and a link to show the NEXT section, hiding all others. If the last div'd section is already shown, the NEXT link is now disabled. Please keep in mind, this all happens on the given page; not involving any others unless specifically called by another link... I suppose a better question is; how do I set up my divs, and the links. I know main or master divs need a unique id for this but not sure how to structure them. Once this is accomplished, it is just a matter of changing a bit of code in Excel to re-compile them. Thank you again for the help... This post has been edited by Baffled in Baltimore: Jan 10 2009, 02:55 PM |
Lo-Fi Version | Time is now: 14th June 2024 - 04:48 AM |