HTML - How To Create Master Pages In Html?
Hi 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 Similar TutorialsEver 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? 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... 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? 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 Hi, I have a problem creating a Master page in dreamweaver, can anyone help me? I want to change my web layout and affect the rest of the pages. Regards Steve 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! 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 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 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. 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 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??? 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 Hello HTML experts, I am new in this forum. I have a problem here please help me. I have a large number of links for navigation menu I don't want to instert these links in every pages again and again. I want to keep these links in one page but I am anable to link this page (HTML Code) in other pages. I am not interested in frames. Is there any other way, if yes then please help me. Rajpal Singh 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. 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, Found these forums on google whilst searching for the answer to my question. I currently have a site with 320+ pages and have recently come to a point where I need to change a section of code which is identical on every page, does anyone know of an editor or program where it is possible to edit this section of code on all of the pages at once or am I going to have to edit each page one by one? Ive used a meta tag editor which has a similar function to what I require but im yet to find a HTML editor which can do this. Any help appreciated 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. Alright, well I'm new here, and I'm just starting the largest HTML project I've ever done. I'm just trying to create a simple little site with virtual items and stores. Thats all I'm starting with, at the moment. Now, I've set up the pages, and have begun to get images for items, but the largest and most important question for a thing like this has popped out. How would I send one image to another page? Example (not real links): Send image imageshack.us/img453663 from trspriting.forumotion.com/Store-h6.htm to trspriting.forumotion.com/Inventory-h7.htm by clicking the image. I also would want the item to be destroyed after clicking it. |