HTML - How Do I Make A Scrolling Menu?
Hello everybody! First timer here. I'm a total noob here that somehow got assigned to design our company's website. My company is very understanding about my lack of experience and is willing to send me to any training I need. So, here's my question: Go to www.whitehouse.gov. I think the pretty scrolling menu at the top is exactly the kind of thing I want on my new website. How do I make something like that? I guess this breaks down into several separate ideas:
I look at the source and I see that the menu is all set on a background image file called bg-main-one.jpg. How do you design these kinds of images? I love how you can right-click the submenu and open in a new tab. A lot of these menus I've seen you can't do that. I also love how the hyperlink appears on the status bar. Why isn't it like that everywhere? Hovering the mouse over each menu's title launches a separate menu. Is that just your basic ul li list-item HTML accompaned by extremely complex CSS? So how do I create something like that? What groovy technologies do I need to know? Similar TutorialsHi, I am trying to figure out how to make my links stay on the left side page while scrolling down or up. Not sure if this is the right place to post. Any help, codes, and/or examples would be great. Thanks Hi, I am trying to create a scrollable menu for my website and I am looking for either code for what I am trying to do, or the url of any website with a similar type of menu implemented. i have looked around quite a bit and I can't find a site with what I am trying to create. part 1: I want to customize the appearance of my scroll bar so that it uses one small Jpeg for the scroll bar and another one for the scroll handle. part 2: as different titles and sub titles on the menu are clicked the menu expands to reveal new sub categories. I need the scroll handle to only show up once the list has reached the limits of the box. the attached image is a mock up of what i am trying to create to give you a better idea. thank you very much to anyone who can help. Hello All. I have been attempting a hover-scrolling menu display for my online art portfolio, however I seem to be unable to 1) put the hover-scrolling menu display into a tab-panel 2) have a second scrolling menu display with different content, underneath the first one, which works separately (at the moment they scroll together when either one of them has the mouse-hovering on) Here are my codes = ---------------------------------------------------------------- Code: body { } div.sc_menu { /* Set it so we could calculate the offsetLeft */ position: relative; height: 280px; width: 500px; overflow: auto; } ul.sc_menu { display: block; height: 230px; /* max width here, for users without javascript */ width: 4915px; padding: 15px 0 0 15px; /* removing default styling */ margin: 0; background: url('navigation.png'); list-style: none; } .sc_menu li { display: block; float: left; padding: 0 4px; } .sc_menu a { display: block; text-decoration: none; } .sc_menu span { display: none; margin-top: 3px; text-align: center; font-size: 12px; color: #fff; } .sc_menu a:hover span { display: block; } .sc_menu img { border: 3px #fff solid; -webkit-border-radius: 3px; -moz-border-radius: 3px; } /* Here are styles for the back button, don't look at them */ #back { display: block; width: 500px; text-align: center; color: #003469; font-size: 16px; } </style> <script type= "text/javascript">/*<![CDATA[*/ $(function(){ //Get our elements for faster access and set overlay width var div = $('div.sc_menu'), ul = $('ul.sc_menu'), ulPadding = 15; //Get menu width var divWidth = div.width(); //Remove scrollbars div.css({overflow: 'hidden'}); //Find last image container var lastLi = ul.find('li:last-child'); //When user move mouse over menu div.mousemove(function(e){ //As images are loaded ul width increases, //so we recalculate it each time var ulWidth = lastLi[0].offsetLeft + lastLi.outerWidth() + ulPadding; var left = (e.pageX - div.offset().left) * (ulWidth-divWidth) / divWidth; div.scrollLeft(left); }); }); /*]]>*/</script> </head> <body> <div class="sc_menu"> <ul class="sc_menu"> <li><a href="javascript:popitup('attachments/Image/art1-large.jpg')"><img src="attachments/Image/art1.jpg" alt=""/><span>IMAGE 1</span></a></li> <li><a href="#"><img src="attachments/Image/art2.jpg" alt=""/><span>IMAGE 2</span></a></li> <li><a href="#"><img src="attachments/Image/art3.jpg" alt=""/><span>IMAGE 3</span></a></li> </ul> </div> </body> </html> Code: <HTML> <HEAD> <TITLE>Java Popup Window Example</TITLE> <SCRIPT language="JavaScript" type="text/javascript"> <!-- ; var newwindow = '' function popitup(url) { if (newwindow.location && !newwindow.closed) { newwindow.location.href = url; newwindow.focus(); } else { newwindow=window.open(url,'htmlname','width=404,height=316,resizable=1');} } function tidy() { if (newwindow.location && !newwindow.closed) { newwindow.close(); } } ---------------------------------------------------------------------- Code: <div class="tab-pane" id="tabPane1"> <script type="text/javascript"> tp1 = new WebFXTabPane( document.getElementById( "tabPane1" ) ); //tp1.setClassNameTag( "dynamic-tab-pane-control-luna" ); //alert( 0 ) </script> <div class="tab-page" id="tabPage1"> <h2 class="tab">TERM ONE</h2> <script type="text/javascript">tp1.addTabPage( document.getElementById( "tabPage1" ) );</script> <<<attempt to insert scroll-menu 1 >>> <<<attempt to insert scroll-menu 2 >>> </div> <div class="tab-page" id="tabPage2"> <h2 class="tab">TERM TWO</h2> <script type="text/javascript">tp1.addTabPage( document.getElementById( "tabPage2" ) );</script> <<<attempt to insert scroll-menu here>>> </div> </div> <script type="text/javascript"> //<![CDATA[ setupAllTabs(); //]]> </script> </body> </html> ------------------------------------------------------------ Any suggestions or tips would be very much appreciated I have a Flash menu in a top frame, with a bottom frame that holds the content. Some of the content is large and needs to be scrolled. I would like the site to appear frameless, so the menu scrolls along with the content (so if you scrolled all the way down, you wouldn't see the menu). I initially tried putting it all into another frame, but didn't have much luck with that. I'm open to any suggestions. Let me know if I need to clarify anything. Thanks. How do I made a navigation menu, with expandable arrows? So basically its a vertical menu, with main headings one under the next, then if a main heading has sub headings, you would click the plus icon next to it, to expand it, and you could see the subheadings under it, and indented. Like how it looks in windows registry (regedit). <form method="post" name="nameform"> <font color="#9933CC" size="2" face="Times New Roman"><select name="tanyasmenu" size="1" style="BACKGROUND: #cc99ff; BORDER-BOTTOM: outset; BORDER-LEFT: outset; BORDER-RIGHT: outset; BORDER-TOP: outset; COLOR: #0066FF; FONT-FAMILY: Times New Roman; FONT-SIZE: 12px"> <option selected value="http://something.com">name here</option> <option value="http://something.com">name here</option> <option value="http://something.com">name here</option> </select> <input type="button" value="Go" onclick="location = document.nameform.tanyasmenu.options [document.nameform.tanyasmenu.selectedIndex].value;" style="BACKGROUND: #cc99ff; COLOR: #0066FF; FONT-FAMILY: Times New Roman; FONT-SIZE: 12px"> </form> Helpful Tip: I have a menu, created with ul and li's, as apposed to divs, with some white space at the end. Each li is set to float:left and i want to add another li which fills the remainder of the white space. For the page to be compliant with the w3c standards it has to be an li (within an ul/ol), so how do you make an li fill the remaining white space? Simply set the fill-white-space li to float:none; display: block; Because all the other li's are set to float, it will sit beside them, but act as a block and fill the remainder of the line. I hope this helps someone. Took me a good while to work out (stumbled across it by chance). Matthew Millar Hi, I have a bit of a problem. I am learning HTML and CSS, and I am trying to make a simple menu withh a background button up state and a horizontal unordered list across, with a hover effect of a new bg image over the initial ones. Please help! Thanks in advance. Hey guys, I was wondering if anyone could help me? I wish to produce a website which works in the following way: The header and footer remain the same, and do not reload on page refresh. Then, links on a menu bar stimulate loading a new page, however only the content below the header changes. An example of this, is the CushyCMS website (http://www.cushycms.com). When you click the menu links, the header doesn't reload, only the page content does. How would I do this? My reason for wanting this method, is because I wish to have an image slider present within the header of all of my pages, and I don't wish to have to update every page each time I wish to add an image. Please help? Many thanks, Luke please help me guys!!! im trying to find a html code that allows people download a pdf files from the website that im trying to make..anyone out there help me.. Im really not sure if the title of this thread is right. Anyway, i dont know too much about HTML coding, but id like help with something on my .... MySpace haha Alright, so this is my myspace at the moment. www.myspace.com/cj_x3 As you can see, i have links on the sides, done by the following code example; Quote: <div style="width: 78px; height: 22px; position: absolute; bottom:5px;right:15px; background-color: transparent; border-width:0px;border-style:solid;border-color: transparent; font-family: verdana;"> <a href="LINK" style="color: dd4444; font-size: 9px; position: absolute; right: 0px; top: 0px">EXAMPLE LINK TEXT</a> </div> When you scroll down, the links on the sides scroll off the top. I dont like this... What i want to happen, is for them to be fixed, like the background, so when you scroll down, the links around the sides dont move. Thanks for the help in advance my page (http://www.zerofivezero.net/the_project102.html) is scrolling as if there's content down the page, but there isn't...I can't figure it out. I'm using the code below to hide the content and have it swapped when selecting an item from the nav. Code: .hidden { position:absolute; z-index:2; visibility:hidden; Code: <div id="section3_region" class="hidden"><div class="news"><fieldset> <legend><img src="images/forum_leg.jpg" width="120" height="28" border="0" alt=""/></legend> <br /><br /> <div class="img"><img src="images/news_thumb1.jpg" width="80" height="75" border="1" alt=""/></div> This is the news section<br /> Yep, this is where the news will be. This will be the short blurb about the story. <div class="img"><img src="images/news_thumb2.jpg" width="80" height="75" border="1" alt=""/></div> This is the news section<br /> Yep, this is where the news will be. This will be the short blurb about the story. <div class="img"><img src="images/news_thumb3.jpg" width="80" height="75" border="1" alt=""/></div> This is the news section<br /> Yep, this is where the news will be. This will be the short blurb about the story. </fieldset></div> Hey all. I have been working on this website that my friend had been designing, and was just wondering if this was possible. The way it is now, the topmost div's are supposed to stay in their position at all times, and the only part that would scroll would be the main body. The two body divs (left and right) have been placed inside the div that should be scrolling. I know there is the css overflow, but the problem is, there is no fixed height on the div, so this method isn't quite right. If anyone knows of a way where we could just start the scrolling at a certain point down the page, that would be great. Here is a link to the page so far - don't worry, it won't look close to that when finished... Image/text placeholders are horrid, I know. http://http://pixelconcepts.zxq.net/ -Thanks in advance. So, I would like to make a one-line textfield that will automatically scroll when too much text is added. So, for example, if I have a field that has room for 20 characters, and someone enters 10 characters, it looks as expected. However, if someone enters 30 characters, only characters 10-30 would be visible. Is this possible? I would like to have vertical scrolling in a table cell. The cell may be empty or may contain up to 2000 characters. If it does contain more than will fit in the horizontal space I'd like it to wrap and be visible, pushing the next row down so the cell displays the whole set of text within the cell area. Only then should the scrollbar show up. If the user enters data, I'd like it to do the same thing. Wrap on word boundaries and stay visible rather than scrolling a single line horizontally. Can I do this in html? Or, at worst, with a little CSS? Or, even worse, very simple javascript? people are telling me that have to horizon scroll (left to right) to see this page: http://www.girlsincsoaz.org I tried it on different machines, including a laptop and I don't have to, what can be the problem? TIA Hello everyone! I am currently working on a project that requires the following object to auto-scroll at user defined speeds: <td width='75%' valign='top'><object width='500' height= '1000' type='text/plain' data='bird.txt' border='0'> The embedded object is always a text file but each one will be a different size. I need some kind of auto-scroll mechanism that will allow the user to scroll down the text box at a speed that suits the size of the text file itself. Does anyone have any suggestions about how this could be achieved? Thanks Okay...so here's a tricky situation that I cannot find ANY examples of how it can work...IF it can even work. I'm trying to create this without the use of flash...Thanks for any help! Seriously! So...I'll try to explain this in the best way that I can as I don't have an example to show... There's a fixed background image. On top of that image is another image (exactly the same as the one below but a different color). There is a horizontal scrollbar below that controls the visibility of the image on top. Naturally, I thought a mask would be the best idea...but can a mask be scrolled. The image itself would not scroll at all....just the visibility of the image on top, think of it as a scroller that highlights a specific "strip" of an image and can be moved from side to side without the actual image scrolling... Man...I really hope this makes sense! Thanks for helping a girl out! Hi, I have seen sites that has a series of images scrollng from right to left, any idea how to achieve this? Thanks. A.C. |