HTML - One Code In One Place For Menu Buttons
I've just started learning HTML and I got one problem. I'm making a page that has link buttons on top of it. The buttons lead to different pages that I have created. All of these pages have the same buttons.
Currently I have several html-files which all have the same section of code in them. I've programmed with Java before and something like that was never recommemded. You only had one code which was used as a "sub-program". Can something like this be done in HTML? Similar TutorialsHi I wasn't sure whether this post belongs in the HTML or Graphics forum but I think it is HTML code I need so here goes; I have a problem regarding the coding that will place an animated banner on my website. Currently, I have a jpg banner across the top of all pages and the code that places it there, held in my z-header.shtml file, is: <tr> <td class="headerbg" colspan="3"> <!--the header is linked to the homepage. You can remove the link tag if you dont want this. Dont forget to take out the </a> tag at the end, as well--> <a href="index.html"></a> <div align="center"> <img style="WIDTH: 956px; HEIGHT: 110px" title="return to homepage" border="0" alt="return to homepage" src="image-files/Garden-Design-Pictures-Banner.jpg" width="966" height="119"> </div> </td> </tr> Now, somebody has created a .swf file for me and it is now up to me to integrate it into my site. The animated banner can be viewed he http://www.calamitycreations.co.uk/SteveBarker.html - I intend using the lower NoLoop file. I tried copying the code from that page and stripping it down but it didn't help me. I've only ever written simple html so I really don't know what to do. Please help! Thanks Steve http://www.garden-design-pictures.com 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. Hi I am new in using HTML. I would like to create a menu, therefore I decided that I will do two buttons. I did them by doing the following: <INPUT type="button" value="Customer Menu" > <INPUT type="button" value="Dvd Info Menu" > Though the buttons are coming next to each other how can I do them underneath each other? Also I want when I click a button the menu disappears and another menu opens with different buttons. Also I want something though which can go back therefore it takes you back to the main menu. If someone can help me how to do this it will be very appreciated. The tasks that the submenu are going to do is that they are going to gather data from a jsp. I have lost the code / split / design buttons in my dreamweaver. Please can someone tell me how to get this back? This what my dreamweaver currently looks like: This is a pic that has the buttons I want to get back in place! http://www.softwareinreview.com/imag...weaver_cs3.png Please can someone help Problem: When ever i place the image the menu messes up. Please look at the first picture below to see the problem Now look at the second picture below to see how i want it to be source code: <html> <head> </head> <body> <img src="Home.jpg" width="190" height="30"><br/> <img src="Downloads.jpg" width="190" height="30"><br/> <img src="Hacks.jpg" width="190" height="30"><br/> <img src="Media.jpg" width="190" height="30"></br> <img src="Information.jpg" width="190" height="30"> <img src="Linux-logo.jpg" width="200" height="200"> <br/> <img src="Disclamier.jpg" width="190" height="30"><br/> <img src="Links.jpg" width="190" height="30"> <br/> </body> </html> I have posted the code i use for a drop down menu bar but im looking to add a side menu to a link can anyone help? Code startSubmenu("connexion_b4","connexion_menu",111); submenuItem("07/08Gallery","http://www.banbridgerangersfc.co.uk/gallery.php","","connexion_plain"); submenuItem("06/07 Gallery","http://www.banbridgerangersfc.co.uk/galleryarchive.php","","connexion_plain"); submenuItem("Picture Board","http://www.banbridgerangersfc.co.uk/picture-board.php","","connexion_plain"); endSubmenu("connexion_b4"); Alright, let me begin by saying that I am functionally retarded and have the most basic understanding of HTML. I don't know if it's against the rules or not to post HTML codes and get somebody to fix them for you, but I'm desperate. I usually steer clear of forums. The code that is giving me trouble is below _________________________________________________________________ <li><a href='http://www.twitter.com/'>Twitter</a> <ul class='children'> </li> <li><a href='#'>Top News</a> <ul class='children'> <li><a href='http://www.twitter.com/'>User 1</a></li> <li><a href='http://www.twitter.com/'>User 2</a></li> <li><a href='http://www.twitter.com/'>User 3</a></li> </ul> <li><a href='#'>General Infornation</a> <ul class='children'> </li> <li><a href='http://www.twitter.com/'>User 4</a></li> <li><a href='http://www.twitter.com/'>User 5</a></li> <li><a href='http://www.twitter.com/'>User 6</a></li> <li><a href='http://www.twitter.com/'>User 7</a></li> <li><a href='http://www.twitter.com/'>User 8</a></li> <li><a href='http://www.twitter.com/'>User 9</a></li> <li><a href='http://www.twitter.com/'>User 1</a></li> <li><a href='http://www.twitter.com/'>User 10</a></li> <li><a href='#'>User 12</a></li> </ul> <li><a href='#'>Minor League Reports</a> <ul class='children'> </li> <li><a href='#'>User 11</a></li> <li><a href='http://www.twitter.com/'>Adam Nightingale</a></li> <li><a href='#'>User 12</a></li> </ul> <li><a href='#'>In-Game Reports</a> <ul class='children'> </li> <li><a href='http://www.twitter.com/'>User 13</a></li> <li><a href='http://www.twitter.com/'>User 10</a></li> </ul> <li><a href='#'>Game Recaps</a> <ul class='children'> </li> <li><a href='http://www.twitter.com/'>User 13</a></li> <li><a href='http://www.twitter.com/'>User 10</a></li> </ul> _________________________________________________________________ It's a code for a menu and I had a different one of this working before. What I wanted to do was to split the child menus into secondary child menus and select a user to contact from there. (it's a "Contact Us" menu) Any/all help is greatly appreciated. How can I add submenus to the following code namely where I have Radio Shows? My web site is www.mcran.com Here is the code I am using: HTML Code: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> <script> $(document).ready(function(){ // hide #back-top first $("#back-top").hide(); $("#top-divider").hide(); // fade in #back-top $(function () { $(window).scroll(function () { if ($(this).scrollTop() > 100) { $('#back-top').show(); $('#top-divider').show(); } else { $('#back-top').hide(); $('#top-divider').hide(); } }); // scroll body to 0px on click $('#back-top').click(function () { $('body,html').animate({ scrollTop: 0 }, 800); return false; }); }); }); </script> <div id="topbar"> <span style="float:left;padding-left:7px;"> <span style="width:30px;"><a href="#" id="back-top" onclick="return false;">BACK TO TOP</a></span> <span id="letters" style="display:none;"><span id="top-divider"> | </span><a href="#a">A</a> <a href="#b">B</a> <a href="#c">C</a> <a href="#d">D</a> <a href="#e">E</a> <a href="#f">F</a> <a href="#g">G</a> <a href="#h">H</a> <a href="#i">I</a> <a href="#j">J</a> <a href="#k">K</a> <a href="#l">L</a> <a href="#m">M</a> <a href="#n">N</a> <a href="#o">O</a> <a href="#p">P</a> <a href="#q">Q</a> <a href="#r">R</a> <a href="#s">S</a> <a href="#t">T</a> <a href="#u">U</a> <a href="#v">V</a> <a href="#w">W</a> <a href="#x">X</a> <a href="#y">Y</a> <a href="#z">Z</a> </span> </span> <span style="float:right;padding-right:7px;"> <a href="http://www.mcran.com" target="_self"><b>HOME</b></a> | <a href="http://www.mcran.com/bio-test-page.php" target="_self"><b>BIO</b></a> | <a href="http://www.mcran.com/contact.php" target="_self"><b>CONTACT</b></a> | <a href="http://www.mcran.com/interviews.php" target="_self"><b>INTERVIEWS</b></a> | <a href="http://www.mcran.com/playlistsshowtable.php" target="_self"><b>PLAYLISTS</b></a> | <a href="http://www.mcran.com/2010-2006showstable.php" target="_self"><b>RADIO SHOWS</b></a> | <a href="http://www.mcran.com/favorite-sites.php" target="_self"><b>RESOURCES</b></a> | </span> </div> Hi I'm trying to convince my work to change the design of their website. I have been told that if i can design something better, then they may consider it. However, I have no web building software here, and I have been told I am not able to work from home and get paid for it. I am able to write HTML and CSS in notepad, but I need a script to set up a horizonal drop down link menu. i.e. when you roll over the first link, it displays a list of options underneath... I need to have about 6-8 links with more options underneath. Can anybody suggest a reliable FREE script that I can use to demonstrate my idea?? LEROY Hello, i found this code Code: <!-- Collapsible Menu Script. Created by Kyle Edwards. Please keep this notice intact. --> <!-- Below is the code for the hyperlinks that expand and collapse the menus. You need to do the following for each menu: 1. Create hyperlink code that looks like this: <a href="#" onclick="collapse_menu(menu1, 0)">The value of the link goes here.</a><br> Note: Change menu1 to the name of the menu, and change 0 to the number of the menu. Note: 0 is the number of the FIRST menu. 2. After each hyperlink, type in code that looks like this: <span id="menu1"></span> Note: Change "menu1" to the name of the menu. 3. Follow the instructions inside the <script> tags. They follow //'s. --> <p> <a href="#" onclick="collapse_menu(menu1, 0); return false">Menu 1</a><br> <span id="menu1"></span> <a href="#" onclick="collapse_menu(menu2, 1); return false">Menu 2</a><br> <span id="menu2"></span> <script language="javascript"> //Collapsible Menu Script. //Created by Kyle Edwards. //Please keep this notice intact. //This defines the arrays that contain info about the menus. Do NOT edit. var on_off=new Array(); var menu_code=new Array(); //Below, define number_of_menus. It should be equal to the number of menus you have. number_of_menus=2; //Here we define the code for the menus. Inside the quotation marks, type in the value of each option. //Note: After each option, you need to put a <br> tag. //Note: If you want to indent the options, type for each space of indentation. //and a </blockquote> tag at the end. //Example: " Option 1<br> Option 2<br>" //This puts two spaces at the beginning of each option. menu_code[0]="Option 1<br>Option 2<br>Option 3<br>"; menu_code[1]="Option 1<br>Option 2<br>Option 3<br>"; //Everything below this notice is the code that expands and collapses the menus. Do NOT edit. for (loop=0; loop<number_of_menus; loop++){ on_off[loop]=0; } function collapse_menu(menu_id, menu_number){ if (on_off[menu_number]==0){ menu_id.innerHTML=menu_code[menu_number]; on_off[menu_number]=1; }else{ menu_id.innerHTML=""; on_off[menu_number]=0; } } </script> It's exactly that kind of Code i need, i dont want any more Features on my Colapse Box. The only problem i got is that if i try to add a link for an Option, the Colapse Box dont work anymore. Hope you can help me Hey guys, After looking at multiple help sites, I've confirmed that there is something messed up in the current code I have that's preventing me from doing a simple jQuery + CSS dropdown menu. I have attached my files, HTML and CSS in all, just un-zip it and see if you can help me out! Thanks, ~C-Style~ P.S.: It's a bulky file because of the jQuery plugin I have inside. I'm pretty new to web design, but I've started making drop down menus using HTML and CSS. I get annoyed that every time I want to change the menu I have to go and change it individually in every single page. I am wondering if there is a way to create the code in an external file and link it into my pages, so that if I want to make a change, I can do it from one central file and have the change appear on each individual page. Is this possible? How can I do this? it would be nice if i could learn divs i am sick of everything being out of place! it doesn't let me expand my abilities of using all the cool features i want .. i cant do anything right these days! can someone please make my online users counter appear in the site information box anywhere instead of in the iframe somewhere on a 1024x768 resolution? www.anastaciadreams.com Hi, my names Tyler, and i have recently been given the task of building a website for my family's new business (screen printing). Now i know next to nothing about HTML and CSS and all the things that go along with making a website so i googled html forums and this is where i landed. I am using Dreamweaver 5.5 but due to my lack of knowledge i am not using it to its full potential, and the web dev classes at college are full for the coming semester. SO i assuming i can start posting my questions under the HTML and CSS subforums right away? Thanks also this is my progress so far www.whatashirt.com (keep in mind ive got no clue what im doing) i guess you guys can view the HTML source code from your browser but idk about the CSS so if i need to post that info in my questions later on let me know Edit: when i click "thread tools" above my post it takes me back to the homepage. why is this? Such is called 'x bar' in mathematics. On this page: http://obama-net.org/bluelayout/index.html my absolute positioning is just not working. I've tried virtually everything to see what the problem could be, but I don't seem to find it? On my computer, the website looks fine when the window is maximized, but when it's minimized, the divs go all over the place. However, in other computers the divs are just never in place. Is there something wrong with my coding? I used dreamweaver. Thank you so much for your time! OK-I am making a Halloween Page and I would like it so that everytime someone CLICKS anywhere on the page (no matter where) it makes a Sound. I googled and all i keep finding is they have to click a small spot or mouse over a small spot in order to make it do this. everything else on my page is in the right place... all except my online users code... if i make it look in place with my 1280x1024 screen resulution, 1024x768 resolutions make it look too far up the page... what can i do to make sure it is in place whatever the resuluion? please help www.anastaciadreams.com right now its too low for me.. because im trying to make it fit with the 1024x768 users but i want it to be next to online guests, not on top of the other stuff or whatever thanks a lot if you help hi!!!! everybody i inserted an image but it placed on center so i want to place that image on top if anyone know please give me suggestions for this thank u. Hi guys, Im hoping someone can help me with me problem. I have a button on my website and its just sitting there in the middle of the site like a red thumb! How can I position it to the left in a nice orderly fashion underneath a div of external links? |