HTML - Customized Scrolling Menu
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. Similar TutorialsHello 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? 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. HEllo Friends, I am newbie to HTML, I Am trying toa dd a scroll bar to a HTML but couldt do so. Please help me. heres the code for the page <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Stunting Souls - The Hell of Power</title> <style type="text/css"> <!-- body { background-image: url(); background-color: #000000; scrollbar-face-color:#DBDBDB; scrollbar-shadow-color:#DBDBDB; scrollbar-highlight-color:#DBDBDBC; scrollbar-3dlight-color:999999; scrollbar-darkshadow-color: 000000; scrollbar-track-color:000000; scrollbar-arrow-color:#333333; color: #FFFFFF; } a:link { color: #FFFFFF; text-decoration: none; } a:visited { text-decoration: none; color: #FFFFFF; } a:hover { text-decoration: underline; color: #FFFFFF; } a:active { text-decoration: none; color: #FFFFFF; } body { background-color: #000000; } --> </style> <link href="style.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- .style1 {color: #FFFFFF} .style2 {font-size: 9px} --> </style> </head> <body> <table width="781"> <tr> <td width="773" height="35"><table width="30"> <tr> <td> </td> <td><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="763" height="115"> <param name="movie" value="menu1.swf"> <param name="quality" value="high"> <embed src="menu1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="763" height="115"></embed> </object></td> </tr> </table></td> </tr> <tr> <td><table width="200"> <tr> <td> </td> <td><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="763" height="262"> <param name="movie" value="header.swf"> <param name="quality" value="high"> <embed src="header.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="763" height="262"></embed> </object></td> </tr> </table></td> </tr> <tr> <td> </td> </tr> <tr> <td><table width="742"> <tr> <td width="219" height="99" class="lt_text"> <table width="200" height="83"> <tr> <td height="17" class="lt_text"><img src="images/t1.gif" width="223" height="32"></td> </tr> <tr> <td width="191" height="17" class="lt_text"><img src="images/back.gif" width="21" height="7"><a href="safe.htm">Safe Riding Tips </a></td> </tr> <tr> <td height="18" class="lt_text"> <img src="images/back.gif" width="21" height="7"><a href="helmet">Helmet Buying Guide</a> </td> </tr> <tr> <td height="19" class="lt_text"> <img src="images/back.gif" width="21" height="7"><a href="night.htm">Tips for Riding in Nigh</a>t </td> </tr> <tr> <td class="lt_text"> <img src="images/back.gif" width="21" height="7"><a href="rain">Monsoons and Motorbikes</a></td> </tr> </table></td> <td width="318"><table width="318" height="63"> <tr> <td><div align="center" class="m_text"> Wallpaper of The Month </div></td> </tr> <tr> <td height="36"> </td> </tr> </table></td> <td width="189"> </td> </tr> </table></td> </tr> <tr> <td><div align="center" class="h1_text"> <p class="h_text style1"> </p> </div></td> </tr> <tr> <td class="m_text"><div align="center"><span class="l_text">Copyright© stuntingsouls.com. All Right reserved. </span></div></td> </tr> <tr> <td class="m_text"><span class="m_text">Website Design: Aman Singh (.A.D.S.) (Layout Designer, Graphics Designer, Coder, Administrator) & Fatima Boura, France (Logo and Graphics Designer) </span></td> </tr> <tr> <td class="m_text"><div align="center"><span class="h_text style1"><img src="images/excyellow_tri.gif" width="21" height="18" align="bottom"><span class="style2">Please do not Try any of the stunts/activities shown here in. These Stunts are performed by Professionals within a controlled enviornment. Doing/Trying these stunts may harm you and may cause you a major injury. </span></span></div></td> </tr> </table> </body> </html> Hi could someone tell me or link me to a site where I can learn how to create a web page that resizes itself and has no menus/status bar/address bar? I think I saw it a long time ago but I can only remember that the code is placed between the two <head> </head> tags. Thanks in advance for any help. How extensive/difficult is it to customize a scroll area? I've seen the very simple table versions which automatically generate a scroll bar based on your browser/system. But I want a very clean, simple, minimal scroll area. Even if it were two arrows. I have a mock up here where its just a line with a dot on the right side of a small fixed text area. Is this a flash or javascript thing? Or can it be done with css, html? Thanks 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? 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 Hello, I made this little scrolling text but it has some problem when using FireFox, so I wanted ti know if there is any way that I can make the scrolling text only appear when the page is finish loading? Hi, i'm trying to design a webpage and I was wondering if there was a way to create a row of pictures that ONLY scroll like a slideshow when the cursor is hovering over the buttons. Is it possible? How? Thanks Hi, I'm working on a movie database for a device that supports html. It only supports basic html though. For my index page I the characters A-Z (as well as genres) to select movies starting with that certain letter. The movie covers display in a row underneath. I want to find a way keep the characters A-Z centered in the top of the screen so when I browse further right (or left) of the screen it stays there similar to the way the background stays in place. At the moment when I browse left and right the A-Z moves with it (so it ends up moving off the screen). Does anyone know a way to keep it in place like the background. The files I'm editing are in .xsl format. They are used inconjunction with movie collectorz to make html pages. Anyhelp would be greatly appreciated. Remeber it only supports basic html, no javascript. Thanks. Hi, How can I create a row of images with a horizontal scrollbar? I'd be really grateful to your help! Regards Rain Lover 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? 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. Hi everyone, I'm having some trouble with the scrolling functionality on my page. Basically I want only one vertical scrollbar down the left hand side of the page but I have a frameset document with three columns and two rows down the middle column (with the bottom frame of these two rows being the 'content' frame). I've tried setting this document within another frameset to get the whole thing scrolling with no luck. Can anyone provide an insight on how this is usually achieved as it seems fairly commonplace but I am having a hard time making it happen. Cheers Matt Hi everyone, http://www.eveningtweed.com/laura At the above site, I've got a div called 'work' which needs to contain a long line of images which I want users to horizontally scroll through using the DIV scrollbar. I've looked through countless forum posts and solutions on Google but nothing works. Can anyone tell me why this won't scroll horizontally and how to achieve it? Current CSS for the DIV: Code: .work { border:0px; height:350px; overflow-x:scroll; overflow-y:hidden; width:100%; } Thanks in advance, Jez. Hi, I'm making a website for my clan and I was hoping that someone here could help me with a problem. The test site is: http://deltagaming.org/matt/testweb/ As you can see the bottom seems to cut out with no scroll bars to help out. I tried adding an overflow command to the css styles sheet but no dice. I also added it to the template file too and still nothing. I couldn't post the main index here because its too big but my style sheet fit + you can view it through my website using a page source. Any help would be greatly appreciated. Code: /***********************************************/ /* HTML tag styles */ /***********************************************/ { overflow: scroll } body{ font-family: Arial,sans-serif; color: #333333; line-height: 1.166; margin: 0px; padding: 0px; } a:link, a:visited, a:hover { color: #006699; text-decoration: none; } a:hover { text-decoration: underline; } /* overrides decoration from previous rule for hovered links */ h1, h2, h3, h4, h5, h6 { font-family: Arial,sans-serif; margin: 0px; padding: 0px; } h1{ font-family: Verdana,Arial,sans-serif; font-size: 120%; color: #334d55; } h2{ font-size: 114%; color: #006699; } h3{ font-size: 100%; color: #334d55; } h4{ font-size: 100%; font-weight: normal; color: #333333; } h5{ font-size: 100%; color: #334d55; } .style4 { font-size: small; color: #000000; font-weight: bold; ul{ list-style-type: square; } ul ul{ list-style-type: disc; } ul ul ul{ list-style-type: none; } label{ font: bold 100% Arial,sans-serif; color: #FFFFFF; } /***********************************************/ /* Layout Divs */ /***********************************************/ { overflow: scroll } #masthead{ margin: 0; padding: 10px 0px; border-bottom: 1px solid #cccccc; width: 100%; } #navBar{ margin: 0 79% 0 0; padding: 0px; background-color: none; border-right: 0px solid #ccc; border-bottom: 0px solid #ccc; } #content{ float:right; width: 75%; margin: 0; padding: 0 3% 0 0; } /***********************************************/ /*Component Divs */ /***********************************************/ #siteName{ margin: 0px; padding: 0px 0px 10px 10px; } /*************** #pageName styles **************/ #pageName{ padding: 0px 0px 10px 10px; } /************* #globalNav styles **************/ { overflow: scroll } #globalNav{ color: #cccccc; padding: 0px 0px 0px 10px; white-space: nowrap; } /* 'nowrap' prevents links from line-wrapping if there are too many to fit in one line this will force a horizontal scrollbar if there isn't enough room for all links remove rule or change value to 'normal' if you want the links to line-wrap */ #globalNav img{ display: block; } #globalNav a { font-size: 90%; padding: 0px 4px 0px 0px; } /************* #breadCrumb styles *************/ #breadCrumb{ font-size: 80%; padding: 5px 0px 5px 10px; } /************** .feature styles ***************/ .feature{ padding: 0px 0px 10px 10px; font-size: 80%; } .feature h3{ padding: 30px 0px 5px 0px; text-align: center; } .feature img{ float: left; padding: 0px 10px 0px 0px; margin: 0 5px 5px 0; } /* adjust margins to change separation between the feature image and text flowing around it */ /************** .story styles *****************/ .story{ clear: both; padding: 10px 0px 0px 10px; font-size: 80%; } .story p{ padding: 0px 0px 10px 0px; } p { overflow: scroll } /************* #siteInfo styles ***************/ #siteInfo{ clear: both; border: 1px solid #cccccc; font-size: 75%; color: #cccccc; padding: 10px 10px 10px 10px; margin-top: 0px; } /* negative top margin pulls siteinfo up so its top border overlaps (and thus lines up with) the bottom border of the navBar in cases where they "touch" */ #siteInfo img{ padding: 4px 4px 4px 0px; vertical-align: middle; } /************* #search styles ***************/ #search{ padding: 5px 0px 5px 10px; border-bottom: 1px solid #cccccc; font-size: 90%; } #search form{ margin: 0px; padding: 0px; } #search label{ display: block; margin: 0px; padding: 0px; } /*********** #navBar link styles ***********/ #navBar ul a:link, #navBar ul a:visited {display: block;} #navBar ul {list-style: none; margin: 0; padding: 0;} /* hack to fix IE/Win's broken rendering of block-level anchors in lists */ #navBar li {border-bottom: 1px solid #EEE;} /* fix for browsers that don't need the hack */ html>body #navBar li {border-bottom: none;} /*********** #sectionLinks styles ***********/ #sectionLinks{ position: relative; margin: 0px; padding: 0px; border-bottom: 1px solid #cccccc; font-size: 90%; } #sectionLinks h3{ padding: 10px 0px 2px 10px; } #sectionLinks a:link{ padding: 2px 0px 2px 10px; border-top: 1px solid #cccccc; width: 100%; voice-family: "\"}\""; voice-family:inherit; width: auto; } #sectionLinks a:visited{ border-top: 1px solid #cccccc; padding: 2px 0px 2px 10px; } #sectionLinks a:hover{ border-top: 1px solid #cccccc; background-color: #dddddd; padding: 2px 0px 2px 10px; } /*********** .relatedLinks styles ***********/ .relatedLinks{ margin: 0px; padding: 0px 0px 10px 10px; font-size: 90%; } .relatedLinks h3{ padding: 10px 0px 2px 0px; } /************** #advert styles **************/ #advert{ padding: 10px 0px 0px 10px; font-size: 80%; border-top: 1px solid #cccccc; } #advert img{ display: block; } /************** #headlines styles **************/ #headlines{ margin: 0px; padding: 10px 0px 20px 10px; font-size: 80%; } #headlines p{ padding: 5px 0px 5px 0px; } Ok I have developed the following website www.megacom-int.com. On firefox the scrolling of the latest projects on the left are displayed correctly. However when I use Internet Explorer the Latest Projects has blue background. Whats more interesting is that if you click on Methodology using Internet Explorer, its like viewing it on firefox! I dont understand why this is happenning, I have looked at the code and I see no difference! p.s.Methodology file is in the same folder as it is on Our Team and Partners. I hate everything microsoft, but I have no choice in the matter as it has to work on Internet Explorer as well. Any help in the matter would be great Best Regards K4L |