HTML - Call Div From Seperate File
Need to call a few div tags into 15 odd webpages but i wanted to store the divs in another file so i can edit all of them at once
here is the div tags i need to import to the body of all my pages <div id="sidemenu"> <div class="menustyle" onclick="ChangeMenu('subm1')">Home</div> <span class="subm" id="subm1"> - <a href="index.html"><strong>Welcome</strong></a><br /> - <a href="about.html">About Us</a><br /> - <a href="contact us.html">Contact Us</a><br /> </span> <div class="menustyle" onclick="ChangeMenu('subm2')">Home</div> <span class="subm" id="subm2"> - <a href="breakfast.html">Breakfast Menu</a><br /> - <a href="Cafemenumain.html">Lunch Menu </a><br /> - <a href="drinks.html">Drinks Menu </a><br /> - <a href="dessert.html">Dessert Menu </a><br /> - <a href="contact us.html">Keep in Touch</a><br /> </span> </div> It is longer than that as i have six menus but thats not important. so can someone tell me how to call this div into the body of a html page? Ok cheers e Similar TutorialsOk, so basically, I have a website with a lot of pages. I have made a top menu bar, which goes on every page, and a copywrite notice for the bottom. I was wondering if its possible to maybe put those in some kind of external file, which will make them appear on every page, like a CSS file, so I don't have to paste that onto every page. The reason I asked, is because sometimes the menu is gonna change and I don't want to have to edit EVERY page of my site just for that. And if it does work, could someone tell me how to do it? I tried <header> </header> and <footer></footer> in a CSS but they didn't appear on my page, and yes, the page calls the CSS file correctly, because the styles still load up. Any help would be GREATLY appreciated!!! I am very new to using PHP, so the question is: Have an existing HTML web page which has a call to a PHP file to send out email using the form tag and on submit. Wrote a PHP file to get a variable from HTML page, query mysql database and would like to send information back to existing HTML and refresh the HTML page. Is it possible to call this PHP file from the OnChange of the input tag of the variable from HTML page. If not, how can it be called? hi everybody, I am working in a html. I defined a functiion in a html file.(first.html) I want to call that function in another html file.(second.html) How can i call that function in second.html file? give some sample code Thanks in advance.... Which of these two codes are more acceptable and why? Code: <p class="margin" align="justify"> <font size="4"> Believe it or not, yes - people do still get their electronics repaired! Whether it is a brand-new, just-out-of-warranty LCD or plasma television or a ten-year-old, "old-fashioned" CRT set - we work on them every day. This includes DLP and rear projection sets as well. We also do repairs on your impossible to replace VCRs, desktop and laptop computers and even the occasional blender! <br> <br> We usually have several televisions that were either donated or left on our doorstep. These TVs are repaired and then placed up for sale to good homes. Right now, we have a special - <font color="#A52A2A">20% off the purchase of any TV.</font><br> <br> And remember: With over 15 years experience in electronic repair, there's a good chance <b><i>"If We Can't Fix It, You Don't Need It!"</i></b><br> </font> </p> or Code: <p class="margin" align="justify"> <font size="4"> Believe it or not, yes - people do still get their electronics repaired! Whether it is a brand-new, just-out-of-warranty LCD or plasma television or a ten-year-old, "old-fashioned" CRT set - we work on them every day. This includes DLP and rear projection sets as well. We also do repairs on your impossible to replace VCRs, desktop and laptop computers and even the occasional blender! </font> </p> <p class="margin" align="justify"> <font size="4"> We usually have several televisions that were either donated or left on our doorstep. These TVs are repaired and then placed up for sale to good homes. Right now, we have a special - <font color="#A52A2A">20% off the purchase of any TV.</font> </font> </p> <p class="margin" align="justify"> <font size="4"> And remember: With over 15 years experience in electronic repair, there's a good chance <b><i>"If We Can't Fix It, You Don't Need It!"</i></b> </font> </p> Personally, I usually use the first code, unless I have special circumstances that break the paragraph formatting anyway. I am just curious about what is more acceptable in HTML-world. Thanks... Ladies and gents, I have a checkbox list, simple like this: <input type=\"checkbox\" name=\"ck[]\" value=\"1\" /> <input type=\"checkbox\" name=\"ck[]\" value=\"2\" /> <input type=\"checkbox\" name=\"ck[]\" value=\"3\" /> Now, I know how to process this information using the "SUBMIT" button. The problem is, the submit button is located far away from the checkbox. It's in a different divider and everything. I'd like to do this, on a seperate part of the page... <a href = process_checkbox.php>Click Here</a> Keep in mind it's in a seperate div. Is this possible? Thanks! Is it possible to create a page with a video on it that will come up for like 10 seconds, while the page that was clicked on loads and then redirect/go to the page that was loading? Thanks for the help if this can be done. Any comments would be greatly appreciated! Hi, I'm new to xml. I have a cgi application which writes out a html page. Now I need to display the page with xml tag. So my cgi code takes an input, and writes out Code: cout<<"Content-TYPE: text/html\n\n"; cout<<"<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"; cout<<"<disease cnt=\"2\">\n"; cout<<"<name>heart disease</name>\n"; cout<<"<name>breast disease</name>\n"; cout<<"</disease>\n"; At the web site h..p://......./disease.cgi?term=heart+disease+breast+disease It only displays "heart disease breast disease" on one line. If I save the ouput to a file test.xml, it displays <disease cnt="2"> <name>heart disease</name> <name>breast disease</name> </disease> This is the display I want. How to get this display by calling that cgi program? Thanks a lot for any help!!! hi all....well im a bit stuck as im trying to research into obtaining the code for an image gallery, like seen here- http://www.nessherry.co.uk/fashion/f...junky_book.htm ...where you click on the image and it's displayed on the same page in a larger table. does anybody know what this is called exactly?? the source doesnt appear to have javascript.... thanks! I am creating very simple Adsense websites for novice programming moms. I have my tables set, I need a header to display Google Adsense within one of the top tables on all 80 pages of content. In PHP we refer to the process as "Calling". I need to call the header to each page. Frames won't work, have to use tables. I would like to make a header that contains the Adsense info, so when there are 80 pages of content the newbee mom programmer doesn't have to add google adsense separately to each of the 80 pages. Its difficult enough to get them to do it once without saving the template as a .txt file. If I can just write the instructions so they can open 1 header file, pop in the adsense code in a large open area then save it using a html ext. it will be a life saver. Then I just have to explain ftp - wish me luck. (I am use to hacking up PHP scripts, sad to say I hack well, I program badly.) I have probably over explained this, sorry. Thank you for any help you can give, ~eDee my website has 2 frames that have to change all the time(main content, and news), so sometimes when I click on one link(from navigation), I want it to call two links for me(one of them changes main content, and one of them changes news). for exampe, how to I call two links from below in one click? <a href="index.php?news=hi">Hi</a> <a href="index.php?news=hello">Hello</a> I tried something like this but it doesn't work : <a href="index.php?news=hi" AND "index.php?news=hello">Hi and Hello</a> I also notice there is a way to use "Onclick" function to solve the similar problem, but it does not fit in my code. Please, help me if u know the answer. thank you Hi, I am newbie in creating web page. I am wondering can I create a html button to call the perl script. Is this possible? In my art page I have a series of thumbnail, when you clcik on them a javascript function is used to show them in fullsize next to all the thumbnails. However sometimes I want to link to my art page with a certain thumbnail expanded. How can I achieve this. This is what i have so far but its not working Code: <a href="art.html" onlcick="expandThumb("expandSrc")">thumb4</a> Thanks in advance Calypso On my website, there is a Gallery of several pictures and I made a special page for use as a popup, which matches the main website with the one image (the popup is to show the image larger, when clicked on from the gallery) However, I do not want to make 50 duplicate pages for use as a popup (click for larger image), I would rather have the one page then in the main gallery, call whichever photo should be in the popup. As an example of what I'm trying to do (not the code I'm using, but rather trying to make myself clear: Main page: <a href="popup.html" onclick="return popitup('popup.html') ImageToUse="classic001_lg.jpg""><img src="classic001_sm.jpg" width="320" height="268" border="0" /></a> Then in the popup: <img src=ImageToUse width="650" height="506" /> Thank you, - Randy The following common code is not working in Firefox (3.0.11). It works in Safari (4.02) and IE7. When I say not working, I mean that when I click the submit button, the address does not change to the form processing url: Code: <!-- The data encoding type, enctype, MUST be specified as below --> <form enctype="multipart/form-data" action="uploader.php" method="POST"> <!-- MAX_FILE_SIZE must precede the file input field --> <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> <!-- Name of input element determines name in $_FILES array --> Send this file: <input name="mp3file" type="file" /> <input type="submit" name="submit" value="Send File" /> </form> The file uploader.php does nothing, it is blank, I'm merely trying to establish communication. Once again, the code functions in IE and Safari so I dont think this is PHP related. So I've been trying to set up a search box to blank out its default text when clicked, and reappear when it goes away (if empty). The script works fine--I know that much. However, when using it inside a table inside a form, it seems to fail every single time. Even "this.value=' ' " falls flat on its face. I'm relatively new to HTML, so please bear with me. Below is the script, a text box it does work in, and then the box I'm trying to make it work in. Quote: <script type="text/javascript"> function clickIn(field){ if (field.value==field.defaultValue){ field.value=''; } } function clickOut(field){ if (field.value==''){ field.value=field.defaultValue; } } </script> <form> <input type="text" name="text" id="test" value="test" onfocus="clickIn(this)" onblur="clickOut(this)"/> </form> <form> <tr> <td style="border-style:solid;border-color:#4B7B9F;border-width:1px;"> <!--Search Box Dimensions--> <input type="text" title="Search Terms" name="lookfor" id="search" value="Search the Catalog" onfocus: "clickIn(this)" onblur="clickOut(this)" style="width:300px; border:0px solid; height:50px; padding:0px 3px; position:relative;"/> </td> <td style="border-style:solid;border-color:#4B7B9F;border-width:1px;"> <!--The search button--> <input type="image" value="Go" src="Search Button.jpg" style="border-style: none; width: 50px; height: 50px;"/> </td> </tr> </table> </form> Hi Everyone, Please refer to attached test.zip. Open a.htm, tested under IE, Safari, Firefox no problem, but ONLY google chrome fail, seems cannot use call parent javascript function under the child iframe. Please advice. Thanks I have a project written in ASP.NET under Visual Studio 2005 with C#. I am also using Infragistics objects for .NET Advantage 2007. In my page to attach resources to a record I have written a browser and am displaying previously chosen resources here. But when I click the upload button the page opens a new window (which is not a dialog window, but a normal one) which is exactly the same as my dialog window. How can this possibly happen? Can anyone help me? Hi, Anybody have any idea how to convert a xml file to excel file.Actually i m working on visual studio and using C programming language.I have a xml file in the same directory where my programm is running.When i pressed a icon it will take the xml file automatically and convert to a excel file and show the outpt to the user.How can i achive this goal ??? Any help would be great. Thanks, Basanta Hi ,I am new in html.Hope you can guide me step-by-step on this. I want to import my .txt file into the html form and the html form can add new item then to be add in to that particular .txt file too as well. can this be done? For example: (fruits.txt) 1.apple 2.banana 3.orange Can this fruit.txt be impoted to fruit.html page and show it at fruit.html page, at the same time, the fruit html page allow to add in new fruit, and once user add in new fruit, the fruit.txt file will be updated as well. Thanks for your guidiance and help. :-) I have a website where I want to make a drop down menu that will bring you to different pages. It is a very basic, sort of old-fashioned website that relies entirely on html. What I'm trying to do is make a drop-down menu that will be used as navigation for a section of a website and I want to have it in each internally linked page in that section, but I'm going to be adding more pages to it over time so I want to be able to put the drop-down menu code in a separate text file and then substitute it into the pages that I make that the options in the menu link to and then just edit the code in the text file when I add another page so that I don't have to go back and edit the code every single individual page whenever I add a new one among them. Basically all I'm asking is how I can put html code in a text file and then substitute that code into an html page by referring to the file. Thanks in advance for any help. |