HTML - Master Pages In Html/css
Ever since frames went out of style, I've wondered how to create a master-style page for a website.
For example, a menu. The menu will be the same on every page. Without some way to encapsulate it, we have to duplicate that code on every page we create. Is there any way to put a marker/placeholder of some kind which represents the menu block, without having to put the actual code in each page? Of course you could do this with ASP/ASPX or PHP, but I'm looking for a purely HTML/CSS solution. Can it be done? Suggestions? Similar TutorialsHi all, I know how to create master pages in asp.net but now I want to know how to create master pages in html? Could please anyone tell me by giving examples of the small code pieces? thanks in advance Zia In the past I have been designing websites to learn about web designing. In order to keep my sites update able I used frames and includes so I wouldn't have to make a chnage on every single page if there was a small problem. In the future I plan to design professional websites for people. So how do the webmasters who design websites keep the websites update able. I have seen advantages and disadvantages of using frames and includes. Now I want to know the professional and common way of how these webmasters are doing it, so I can also do my stuff that way too. Another question I have is as you know IE 6 does not support png's tranparent background. So what do the professional's do about this I have seen png's on professional websites but what happens to the IE 6 viewers thanks, ALi Is it possible to have a asp control in the content section of a content page of a master page? If not what is a possible work around short of remaking the entire page? Can you save the pages you create from a .Master as HTML? Would you suggest a different format? It wants to save as aspx, but can't open that on my phone... I am still new to the web page world, but the website I originally created (in japanese) was passed on to a programmer. He did a lot of "upgrades" to the site so he says, but he left. Now I am in charge again of re-modeling the site. The problem is I am trying to figure out why there are so many dead links. I have looked up and down the server, but can't find anything. Ok before I confuse anyone else here is what I am talking about. For example this page that I originally made : Code: http://www.discoveryfirm.com/tokushu/index.html cannot be found but if I take of the end: http://www.discoveryfirm.com/tokushu/ the page is there. Now I am trying to fix a lot of dead links, but I cannot figure out what the programmer did to the site. I am still new to all the high-tech features in the web world. Could somebody please explain. Hi! I'm quite new with html... so I hope my question has a simple solution: I have the same html code on all pages... and I would like to put this in an other html file, so that all the pages just refer to that piece of code. Is that possible? I managed to do this with a script and with the stylesheet, but not with html. thanks! Hello everyone. I want to be able to remove the '.html' from the address one of my pages so that instead of potential customers having to type 'laurelscamera.com/photography.html' they can just type 'www.laurelscamera.com/photography'. I have seen this done on other websites, but have no idea how to go about it. Any help would be great. Thanks again. Mitch Hi, I am trying to figure out how to remove the .htm or .html from my pages (other than my index). An example would be http://www.herrickphoto.co.uk/adults.html I'd really like this to be www.herrickphoto.co.uk/adults Any suggestions would really be appreciated. I am using dreamweaver to write the pages and for some reason, some of my pages end in .htm and others in .html Not sure if that's a problem? Thanks for your help! Lynn Hello to all, I have a static HTML site, and want to restrict some pages of the that site such that when user click or browse to the link, eg www.website_name.com/some_page.html , he/she should prompt for username and password. How can I proceed to meet this requirement as the site is in html and there is no programming language used in it. Thanks in advance. I am making custom error pages on my site and it works perfectly but on them I have flash games like tic tac toe... but how can I make it randomly switch between that and some other .swf games??? Hi all. I've implemented an Image on my .html page using the following source code: Code: <img src = "www.myURL.com/images/logo.jpg" alt = "my Logo" width = 15% height = 15% > but I get a big X where the image should be. I've also tried just using "/images/logo.jpg" as the src, but that doesnt work either. My pages are all online by the way, and are not stored locally on my Hard Disk. All my pages are in www.myURL.com/pages/ and the images are in www.myURL.com/images/. Any tips? Thanks i used to use dreamweaver code to embed an swf file using the AC_RunActiveContent.js file along with the html code <script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','550','height','400','title','Video','src','test','quality','h igh','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','test' ); //end AC code </script><noscript><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="550" height="400" title="Video"> <param name="movie" value="test.swf" /> <param name="quality" value="high" /> <embed src="test.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="550" height="400"></embed> </object></noscript> i have used the swfobject method by following the steps mentioned at http://code.google.com/p/swfobject/wiki/documentation when i use the swfobject method and validate my html code there are no errors however with the dreamweaver code i get errors when validating my html code my question is when i downloaded the zip file from http://code.google.com/p/swfobject/ after unzipping this file there are 2 swfobject.js files one in the root directory after unzipping and another swfobject.js file inside a folder called src i have used swfobject.js file from the root directory when i called this from <script type="text/javascript" src="swfobject.js"></script> and the flash file plays and also the html code validates, is this the right way of using swfobject.js file from root directory or should i be using the one from the src folder also just to test how the alternate content would appear if the flash player plugin is disabled or uninstalled i entered html text as alternate content using swfobject method, what i have noticed is i get the alternate content only if i disable flash player plugin however if i disable javascript in most browsers the swf file plays as the swfobject is calling a javascript i guess the swf file should not play or is this how it normally works if this is the case in the alternate text, i guess i should be mentioning "You have either javascript disabled/turned off or do not have a flash player plugin installed, download the latest flash player" please advice. thanks a lot Hi, I have a script that prints a page and that works great. Can anyone tell me if this can be done please: When printing a html page from the internet it puts the: Pages Name Http Link Page Number Date around the edges of the page. Is there away of removing this so it just prints the content nothing else? I've managed to hide certain things using CSS and its "display:none" function so i was wondering if it can be done like this or any other way? Any help would be great Many thanks Joe i'm devloping a sharepoint website and I want to include 2 asp.ne listpages from our company's CRM webapp. sharepoint provide a way to use the <iframe> tag in a webpart. so i could say <iframe src="http://columbus.cereusace.be:######/Cereus/_root/homepage.aspx?etc=2&viewid={####################}" , and this gives me my list, but thje normal popups that are created when clicking a listItem are not working, so instead of putting the 2 lists I want to show in webparts, i made this simple html page. <html> <frameset cols="50%,50%"> <frame src="http://columbus.cereusace.be:######/Cereus/_root/homepage.aspx?etc=2&viewid={####################}"> <frame src="http://columbus.cereusace.be:######/Cereus/_root/homepage.aspx?etc=2&viewid={####################}"> </html> this gives me the page i want to show my users, the contactslist, with out IT workers, next to the joboppurtunities list. But again, i cant open the detail vieuw of a worker from the list, when you open the page that are in 'src' this works fine. so the frames are the problem. is there a way to resolve this? I am fairly new to HTML and servers and such. I have a ftp server hosting my website which is very basic, the link is ftp.Marmatote.hostchick.co.uk/public_html/index.html That works, but im uploading another page, links.html and i do not know understand how to link my first index page to my links.html page. Do i have to name it something certain? or do i have to upload it somewhere certain or what? Code: <a href="marmatote.hostchick.co.uk/public_html/Links.html">Links</a> i have no idea. Please help, additional information can be supplied on request. Hello, I hope someone here can help, I am the webmaster for a youth football website. We have about 50+ pages on the site, and they are all referenced from a drop-down menu at the top of each page. The code looks like this HTML Code: <ul class="level-0" id="cssmw"> <li><span><a href="teams.html">Teams</a></span> <ul class="level-1"> <li><span><a href="under8s.html">Under 8's</a></span> <ul class="level-2"> <li><span><a href="under8sbmouth.html">B'mouth League</a> </span></li> </ul> </li> </ul> </ul> However, this coding on my site runs for about 70 lines, and should I wish to change a part of it, I have to edit the code on every page. Is there any way of referencing html code from a document and using it in place of the code on each page? Looking forward to your suggestions, Cheers, Ed Rogers Good afternoon, I have a program that I am writing in HTML and Javascript. Here is what I want to do. I have a menu that goes to multiple pages. When I get to a certain page, I want a variable set that when I return to the menu, I can use that variable to display a check mark. I need to keep the functionality simple, so I can't use ASP or write to cookies. I have two ideas on what to do, but none of them worked. 1) To use a .js file. I can get the .js file to hold the variable on just the page that called it, but when I go to another page and access the .js file, I lose the variable. 2) To use frames, where I pass the variable dynamically to one frame and so I can access it later. I don't know what to do. I've tried using a combo of the above ideas, but nothing has worked. Any help would be greatly appreciated. Thanks. hey guys, new to these forums and a keen learner of html and designing websites. the question i want to ask is, how am i able to get a code from one page to be on others aswell, take a look at this link (CLICK HERE) and look at my html code. is there any way that i can link the page so that it's content automatically appears on all the other pages i want it to. NOTE: this isn't a hyperlink (just incase) thank you Hi, How do I prevent framed html pages from coming up in a Google search? Hi, I'm working on a very small but interesting project...I have 5 html pages that monitor several devices and my goal is to put all 5 pages on one index. Initially, I was thinking about creating an index page with fix tables and have one page.html per table. However, these pages are all running from different servers and they all have different names.html and different ip address. What will be the best way to tackle this? Any help will be greatly appreciated. Is it posible to simple place each page link in a table and have it display the actual page on the index.html or do i need to copy source code for each page and paste into the tables? Or should I us frames? Please help. |