I have a page that shows a photo slideshow at the bottom of this page ... http://megaagent.com/smith_tom/DispListing.asp?ListingID=180042&AdminID=2499&PropertyType=A&BuyerID= it's an .asp page and every time i try and place the include script (<!--#include file="../../Common/DispListBody.asp" -->) inside a div tag in the body area, the photo slideshow disappears inside the body area above. someone please advise?
Well... you seem to be linking up-tree twice, that could be a problem as up-tree links usually indicate bad directory structure... are you sure that file exists where you're pointing? It's hard to weigh in more without seeing where you are trying to put that include and the include itself... and since I don't have access to the directory above your HTML root (/public_html or /www) I can't access that from here. Though that page does have a LOT of design and development issues -- starting with the two of the major /FAIL/ at design; fixed width layout and fixed (px) metric fonts. The lack of graceful degradation should any of the fancier bits (CSS, Scripting, Images) be disabled results in an accessibility train wreck. From there it's a disaster under the hood with TWO doctypes (there should only be one), endless pointless META nothing actual cares about, that stupid macromedia javascript doing CSS' job (a telltale of that steaming pile of manure known as Dreamweaver), static scripting in the markup, static style in the markup, attributes like TARGET that have no business on any website written after 1997, comment (YES, I said COMMENT) placements that could trip IE and FF rendering bugs, extra DIV for no reason, gibberish use of numbered headings (just where are the H2 those H3 are the start of subsections of?), tables for layout, broken/invalid table children, tables for nothing (if there's only one TD per TR what makes it a table?!?), paragraphs wrapping non-paragraph elements (like the P around a UL), attempting to include two different versions of jquery (while I'd suggest using none)... Hardly a shock then it wastes 40k of markup to deliver less than 4k of plaintext and what should likely be cut down to two dozen content images (possibly as thumbs) -- it is easily three or four times as much code as needed for such a simple page... figure in the massive 3.4 megabyte page-load and 84 separate files, and it's so slow I'd be shocked if you had less than 80% bounce rate. The end result is inaccessible, fragile, and really a laundry list of how not to build a website -- adding an include in the middle of the document body causing trouble? NOT really a shocker. Sorry if that seems harsh, but it's probably better someone gives you the harsh light of reality instead of a silver bullet fix, patting you on the back, slapping the rose coloured glasses on your head and leading you down the garden path to failure. -- edit -- wait, is that include for CSS? If so it has no business inside BODY as the <STYLE> tag is invalid there in a proper document.