HTML - Duplicating Text Between Web Pages
I have a website where the main heading is formatted text that is the same on each page.
To acheive this, each page has the same block of text in it....this is fine but is a real pain when i have to change it. If you look at http://www.tauntonflowershow.co.uk you will see what I mean. The text i am referring to is the name of the show and the date. So, how can i specify this text once (presumably in a separate text file) and have each page refernece this file. That would mean i only would have to change it once. Same would go for the main menu bar.... Many thanks in anticipation. Similar TutorialsI've encountered what to me seems a strange HTML quirk problem (though I'm very amateur so may not be a quirk at all). I recently used a free online tool to create the code for an image map linking to my social networking sights. It can be seen on the right hand side of my pages: www.zorandesigns.com What keeps happening now is every time I go to edit pages, the <area></area> tags keep duplicating exponentially. So any time I do any editing I have to make sure I redelete the duplicates. Even when I do when I resave 3 new tags will appear again. Next time I go to edit there are 6 tags and if I forget to delete them there will be 12 next time, then 24 and so on. At first I didn't realize this was happening and I had hundreds of duplicate area tags. I use go daddy html file editor to edit the pages. The section of troublesome code is below. Would appreciate any insight on how to resolve this problem as simply deleting clearly hasn't worked. <div style="text-align:center; width:189px; margin-left:auto; margin-right:auto;"><img usemap="#Image-Maps_6201201241459158" height="63" width="189" src="images/social networking icons.gif" border="0" id="Image-Maps_6201201241459158" /> <map name="Image-Maps_6201201241459158" id="_Image-Maps_6201201241459158"> <area coords="0,-1,60,58" target="_blank" alt="Facebook" shape="rect" href="http://www.facebook.com/pages/Zoran-Designs-Jewellery/221643324534776" title="Facebook"></area> <area></area> <area></area> <area></area> <area coords="65,-1,125,58" target="_blank" alt="Twitter" shape="rect" href="http://twitter.com/ZoranDesigns" title="Twitter"></area> <area></area> <area></area> <area></area> <area coords="127,-1,184,58" target="_blank" alt="LinkedIn" shape="rect" href="http://ca.linkedin.com/pub/maja-kogut/46/89b/929" title="LinkedIn"></area> <area></area> <area></area> <area></area> </map> </div> Hey all, I am working on launching a new website for a gaming clan, and I am curious if there is a way to or a code to make other pages retrieve text from the main page. The way the template was set up, I have to copy and paste some of the same info on 5 or 6 pages each time its updated. So my question is: is is possible to get all the other pages to just automatically copy what the main page has This will be hard for me to explain so I will add an image: http://img75.imageshack.us/my.php?image=examplexu6.gif How do I go about loading a page within a page. For example, in the pic, if you clicked Cost it would load a page within the loading area without taking off to another location. I seen it on a site before, i remember the links were something like "/?p=cost" or something like that. And the page appeared to not navigate elsewhere, the cost page was just loaded within the page i was on. hope that makes sense, if so any examples on this? is it hard to do? messy? safe with most browsers? thanks How do I make variable pages? EG: ../showgame?id=10 So multiple pages can begenerated from one document. I'm currently making a new layout for my site and before it will go online, I want to set all my pages on a BRB page/status (customized with my own brb logo+text etc.. Anyway I can do this? If this is in the wrong section sorry, i have been thinking of adding a new page to my site and added sky sports, but how do i set up a page that opens another web page right away? Hi all Hope i can get a little help with the following I have a page with 2 iframes in it. What i want ro do, is when i click the link "home" 2 different pages get loaded in to 2 different iframes. Home = a.htm/iframe a b.htm/iframe b Hope it makes sence Regards Hi, Currently my website is valid XHTML but I am planning on re coding the whole thing. I wanted to use HTML because to me it's a little easier and more basic. If I just start out with the html and head tags and no DOCTYPE and use the basic tags...do you think it would still work ok? I just dont want to go through the whole validation thing. I know other sites who use plain HTML without validating and their site works fine. Also I was wondering if it matters about uppercase tags? like < HTML > and < A > or < a > does caps make any difference? I guess I should probably just try it and then test it on major browsers to see for myself. Any advice would be appreciated! I just want to use plain HTML without worrying about validation....but I also want to make sure that people can use it on all different monitor sizes and browsers (at least all major browsers). I know thats the whole point of validation, but pretty much my question is: if I use plain HTML tags, including deprecated ones such as the < font > tag if it would still be usable on major browsers? I'm wondering because I've noticed that even though the W3C claims they are deprecated, some of them still work anyways? Sometimes I wonder if the W3C is right about that? Thanks! I am having difficulty centering pages for Firefox and Chrome. Please view the source code of http://www.alicm.com. It centers fine in all versions of IE. Definitely need a little help. I am not very experienced, so any "before and after" pasting of coding would be very much appreciated. Thanks in advance. I have a website which is now closed. I have forwarded the domain (www.chineseteaforyou.com) to a page on my other hosted website (www.e-stores-online.com/chineseteaforyou.html) to explain it is now closed. If people type in the domain name of the closed site it works as I expect, and they land on the correct page. If they type in the address of another page on the old site, they get the "Not Found" message. For example: http://www.chineseteaforyou.com/site...30/page/543219 will be forwarded to the following page which does not exist: http://www.e-stores-online.com/chine...30/page/543219 I would like to redirect any forwarded pages with www.e-stores-online.com/chineseteaforyou.html/ as the first part of the URL to www.e-stores-online.com/chineseteaforyou.html I tried to do it with a .htaccess file but get errors. Can anyone help me do this? Thanks. Hi, I have just started to get my feet wet in web development so please don't be annoyed if this is a little basic. I have a 12 page intranet site with links on each page. As these links are the same on all pages i would like to know if there is a way to update one file and include that on all pages. At the momment i am updating the links individually. Thanks for your help. Ok. I know that there are codes for fading between pages, I used to use them ALL THE TIME when I used Piczo (blech!). My question is, do all or at least most browsers support that sort of code, and can I use it in a valid XHTML page? Or is it done with JavaScript? The only reason I'm asking is because I'm making a new site for my drum videos, and the welcome page has a really nice picture of a drum set (in black and white with a slight glow) with a white background, and if I faded to a blank page, then the homepage, I think it would look really nice. So again, is it valid XHTML, and do most browsers support it? I have a simple question here. I have about 30 pages for my website. All of them use the same default layout that I created (sidebar links, bottom links, background etc). How can I call the layout in each webpage without having to copy and paste the entire layout? The problem is that if I make a small change to the layout, I don't want to have to change it in each individual page but just the master layout page. Thanks. http://soundcoremusic.com/USED%20GEAR/usedgear.html I really need a webmaster to view my code and give me some options! I've done so much googling and had so many failed attempts to center this new page I'm working on but I just can't figure it out and its really holding me back Thanks! -Kurt edit: I feel like I've been placing the div container in the wrong place or something, i really need my code to be viewed and then some specific directions I am looking to have an area beside my nav bar that is titled "Whats New". This would be a small square beside the nav bar with a few links under it that would link to new additions of the site or current events. I want this section to be included on all 9 pages of my website, but when I change these items I dont want to have to change the links and text on all 9 pages. How can I make it so I alter just one page and it will change on all 9 to save me time? Could I use CSS to do this? If so how? Also I thought of using an iFrame. Not sure if that would work either. Please let me know of a way to do this Thanks, PizzaStick Hello everyone! This is my first thread, and I need some help. I just started developing my site hosted by godaddy.com and I am doing all my html and through dreamweaver and uploading new content through dreamweaver also via FTP. The problem I am having is i am tryingto add new pages that link off my HOME PAGE. For example: CONTACT US, ABOUT US, PICS, and so on. I have made this types of pages but I'm not sure why they are not linking right? What address should I be point the CONTACT BUTTON to? My site is www.adiktedapparel.com Any help would be great!!! THANKS! Bill C. Is there any way to use an xml file and create a link to a new page that has information based on a block of data in the xml file? I know in PHP you use PHP includes, but how do I do it in html? So I have one file with my navigation links, so it's easy to edit and update all pages? Also, same with copyright date at the bottom of the page? How can I make it so I don't have to edit eveyr page every year? Thank you. Hi there, I am relatively new to wordpress and have just created undertaken a pro-bono project for a company in Iowa. The site is up and running, however I have noticed a pretty big issue when viewing in IE. The background seems to keep going after the content has finished and tiles the texture far down the page. You can see it online he http://www.localfoodsconnection.org/ I am using a bit of css trickery to get two images displaying in the background and think this might have something to do with it. This is the css I am using to do it: Code: html { background: #a79584 url(images/bg.jpg) center top; height: 100%; font-family: "Palatino", Georgia, "Times New Roman", Times, serif; } body { background: url(images/bg_grad.png) repeat-y center top; min-height: 100%; } #wrap { width:920px; margin:0 auto; min-height: 100%; padding: 0; } The site looks great in FF, Safari etc, so I guess it must be an issue with IE I would appreciate any help I can get on this one. Please feel free to let me know if you need any other info. Thanks in advance. James Hi, First of all sorry if this is posted in the wrong place I have a shopping cart i have coded and i'm just about to put a SSL connection (https://) the question i would like to ask is: Will i have to recode my shopping cart to make it work with the SSL (in order to make it secure and encrypted) or will all the data that people enter(credit card, address etc) automatically be secure and encrypted? Many thanks Joe |