HTML - Switching #include Files
Ok, I have a fantasy football site going, and on the NFL Draft page, I want to display the order for the teams for all 7 rounds.
You'll see round 1, complete he http://pzpff.pzproductions.com/nfldraft What I want to do is make it so that I can make this: <!--#include txt="round1.txt" --> then for each round switch it out with that rounds text document... all the way up to 7... <!--#include txt="round2.txt" --> <!--#include txt="round3.txt" --> <!--#include txt="round4.txt" --> <!--#include txt="round5.txt" --> <!--#include txt="round6.txt" --> <!--#include txt="round7.txt" --> Do I have to do this with php, or is there a way to do it with html? Similar TutorialsWish You a very very Happy New year Hi Budies.... I have shtml files where i m using include files. Using this tag: <!--#include file="header.html"--> but the same tag is missing is some pages. please suggess me wat i do ? HELP ME ! Hi guys, I have a problem with HTML I've not experienced before relating to include files. I'm running IIS on Windows XP Pro and have an HTML file with a single include (this isn't the actual project I'm working on but a test I picked up off the web to demonstrate the problem) Test.html: - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 strict//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> </head> <body> <!--#include file="testinc.htm"--> <br>To see this work. </body> </html> Testinc.htm: - ************************************************** ***** This is a test ************************************************** ***** When I open, in IE, http://localhost/test.html all I see is the text "to see this work". If I view the source, it is identical to test.html (ie, the include is in the source which would signify to me that it's been picked up as a comment). I've tried replacing Include File with Include Virtual (not that it should make any difference in this case as they're both located in wwwroot) but to no avail. Any ideas what's missing? Cheers in advance. Hi people, I have two questions: Which is the tag to include other html file in a html file? Second question: How can I do in html a capital word? Thanks with anticipation. Regards Well I'm working on a website and Im trying to figure out if its possible to cycle background images in HTML. To have multiple images in on folder and each time a user logs in just randomly pick one of the 5 or so automatically so they have a different view each time... Not even sure this is possible. Thanks I'm a newbie and I need help with using the #include directive. below is a sample file usinging the #include directive: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Untitled</title> </head> <body> <!-- #include file="test.html" --> </body> </html> Here is the contents of test.html: <h1>header</h1> When I display the test.html in my brower the text show up. When I run the main file above with the include statement the contents of the test file will not appear. I've tried using #include virtual and I get the same results. both files reside in the same directory. How can I get the above files to work. I'm working with windows XP on a home computer. This problem occured in my actual website files becasue I want to include a header and a footer. These files of course have table tags etc in them and I get the same results where the include files contents do appear. I need help asap if that is possible. Thus far I've used Notepad, vi, and UltraEdit to code websites. However, my client uses Dreamweaver, so I need to build a website that he can easily edit in Dreamweaver. I am finding out Dreamweaver's "style" little by little, but can anyone here give me a few pointers? For example, I prefer to use div's, not table's, for layout. Is this going to make WYSIWYG editing difficult or buggy for my client? I prefer to use external stylesheets (in a separate .css file). But if my client tries to write new paragraphs with different font-styles, etc., won't Dreamweaver define new internal styles, e.g. "style13" in the <head/> section? Is this just an annoyance I'll have to deal with? Or is there a way to force the client to use the styles and classes I have specified? One thing I'll do for sure is set up his workspace so that the website conforms to HTML 4.01 Strict. That should help a little bit, I think. God help my feeble mind if <font> tags infect my beautiful code. Any tips are well appreciated! I learned the basics of XHTML using HTML Dog, so I now have a basic knowledge of XHTML. I've been reading about HTML online, and it seems like I want to switch to HTML5, since it seems like it's going t become the standard of the web and make XHTML obsolete. What are the differences between the two languages? How should I go about switching my XHTML pages to HTML5? How should I learn HTML5, and so on. Hi Folks, I was wondering if there was a way to dynamically load forms. The idea is that the user makes a selection and on the same page the appropriate form will appear. My guess is that JavaScript will be my friend but I'm new to this. Thanks! Probably a simple problem, but I can't figure out how to do it. I am designing a site where some of the pages need to be secured via SSL and some don't. I would like to switch between the secure and non-secure pages, but I would like to do it with relative links. In other words, on a non-secure page, say aaa.com/index.html, I would like to do <a href="https://aaa.com/secure.html">Go to secure page</a> but I'd like to do it with a relative page reference to hide the overall structu <a href="https:secure.html">Go to secure page</a> only that doesn't seem to work. Ditto for going from pages handled with https: to http: . Am I missing something stupidly simple to make this work or do I have to give the fully qualified link all the time? Thanks! First off I hope this is going to the right category. If not sorry. I would like to include this http://www.d2w-fv.com/includes/toolbar.htm on every page of my site w/o having to c/p the code on to each page. I have tried PHP includes and failed several times. Any suggestions? My Server is Go Daddy! if that helps. Hi. Sorry if this is in the wrong section. I have made a menu http://www.checkpointdirect.co.uk/menu/mega3/ and it works. However, when I put... HTML Code: <?php include 'includes/mega3/menu.php'; ?> ...in the header.php file I get http://www.checkpointdirect.co.uk/ Any help would be great. Ignore the link names, there just example names. Thank you. Scott aaaaaaaaaaaaaaaaaaaaa what does this mean jdoc:include mean ? what tag is it ? <jdoc:include type="modules" name="menu" style="xhtml" /> thanks I created a decent layout for a website using DIV layers with no problems. As the website is getting larger, adjusting certain elements on each page is very time consuming so today started using PHP includes. All I have done so far is change the file extension from .HTML to .PHP (I would later use the PHP include to pop the DIV layer with the menu onto a separate .PHP file to make it easier to add and edit it - had I have got that far ) I have changed none of the script on the file, only the extention, but one of my DIV layers has lost it's size and position (which was controlled by an external CSS).... Any ideas why it has done this? Thanks! Hi, I have a problem including a page to another. I'm using this code HTML Code: <!-- #include virtual="table.html" --> to add to my page, it work fine in the Dreamweaver. However, it doesn't work when i view in the browser. Lot of help Hey guys I have made a site but I have noticed a potential problem. I have about 10 pages and each page has the menu coded on it using css. If I wanted to change the style of the menu then thats easy as I have a external style sheet. If I want to add a link I would have to open up every page and add the link to each file. Is there a way I can create the menu in one file and include it in each page. So if I want to add a link I just add it to the one file and it would be updated on every page. Cheers Matt I've run into an article or three that show how to include headers, menus and other repetitive sections into my main html files. So I thought I'd try it out, following their examples,... and it's not working. I'm including the link to my test index.html. http://www.cubedspacedesigns.com/admosaic/ That boring red box is supposed to have some black text that comes from a header file. Here's the link to that. http://www.cubedspacedesigns.com/adm...es/header.html Am I typing things wrong, or am I supposed to install something on my server? Trying to use this function i used the one it gives you in dreamweaver but it never seems to work. It will show in the preview on dreamweaver but when i run the .html file the content of the file that was included does not show. Here is what i used... Code: <!--#include file="PGS/DWNLDS.html" --> Any ideas of what i can do to get this to work? Thanks. Dear Members: I have a funny problem. I have two html files. I am trying to use test2.html as an Include file inside test1.html. I am not having any luck test1.html file reading test2.html. Test1.html code --------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title> Your Title Here </title> <meta name="Generator" content="Alleycode HTML Editor"> <meta name="Description" content="Your description here..."> <meta name="Keywords" content="Your keywords here..."> </head> <body> <h1>This is my n include 1</h1> <h2>This is my n include 2</h2> <!--#include virtual="test2.html"--> </body> </html> test2.html code <h1>This is my include 3</h1> <h2>This is my include 4</h2> What I expect to see in the browser: This is my include 1 This is my include 2 This is my include 3 This is my include 4 But I see only This is my include 1 This is my include 2 It seems like the test2.html file is completely being ignored. May be it is a simple issue. But I tried everything. Both files reside on the same directory. If anybody could give me a suggestion, I shall truly appreciate it. As they say "It is driving me nuts"... Please help. Hello there! I hope any HTML expert can assist me on the following matter: I am trying to place some rotating ads on my website. Those ads are located on the "ads.php" file. If my website was written in php I would know how to call that file with the function: <?php include("ads.php"); ?> Unfortunately, my website is in HTML (cannot be changed to PHP for other reasons) and I don't know any HTML function equivalent to the INCLUDE function for PHP. Does anyone know how could I call the ads.php file in HTML? Thank you! |