HTML - Identifying Open Page In Menu Using Id And Anchor Tags
Hi,
I have a website in which the menu is the same on all pages (http://www.hiltrain.com) I have set this up so that the menu item is in bold to identify the specific page the viewer is on. This works perfectly in function and is set up by using: <body id="help"> and then using the same id in the link code, e.g. <a href="howwecanhelp.htm" id="help"> In the css file I have an entry: body#help a#help, font-weight: bold; This gets the menu item for that page to be in bold and this works fine. However this doesn't vaildate well as according to the W3C standards I can't use the id twice. Can anybody advise me on a way to change these to achieve the same affect but so that it complies with W3C. Any help greatly appreciated. Cheers Iain Similar TutorialsIs this a valid format ? <a name="xxxx"><!-- --></a> I ask because it works in all browsers I use but not with IE 8 (Beta). I'm not sure if this is a bug in IE 8 or whether the syntax is strictly valid. If I use or space this will work in IE8 but again I am not sure if it is valid Thanks Harvey I am new to CSS and trying to crate a page with HTML/CSS. I want to display menu on left side and when user click on the menu item -> right side content should be displayed along with the Menu on the left side. Below is the sample code(this code may not be appropriate). Please suggest me how to make this code work correctly. HTML Code: <html> <head> <link rel="stylesheet" type="text/css" href="my.css" /> </head> <body> <div id="left-menu"> <a href="#" class="current">Hello</a> <a href="C:\xxx.html">Section 1</a> <a href="#">Section 2</a> <a href="#">Section 3</a> <a href="#">Section 4</a> <a href="#">Section 5</a> <a href="#">Section 6</a> <a href="#">Section 7</a> </div> </body> </html> my.css file --------------- #container { padding: 0; margin: 0; background-image: url(container.png); background-repeat: repeat-y; background-position: top left; } #left-menu { position: absolute; top: 220px; left: 0; width: 160px; height: 100%; border-top: 1px #9ad815 solid; border-bottom: 1px #9ad815 solid; } Thanks! I am wanting to link to a certain option in a select list via an anchor link on another page. Each option displays different info below it using javascript. Example: I have a date on a php based calendar linking to a events page. On the events page is the select list with different events that will show below the list when selected. How can I link that specific date to that event so that it is displayed? Is this possible? Hey guys, I'm really new to HTML coding so be nice. I'm trying create an anchor on a new page. Is this possible, I can create an anchor that jumps down a page, but I can't get it to work on a different page. I thought I had it, but it only worked in Safari, and wouldn't work in Firefox or IE. Any help would be greatly appreciated I have an iframe in the middle of a page. I am trying to display another page within the iframe, but to start it a couple of paragraphs down, not at the top. So I have put an anchor into my iframe src, corresponding to an anchor name tag in my other page. The iframe scrolls itself ok, but the main body of the page also scrolls so that the top of the iframe is at the top of the screen, which is not what I intended. Is there a way to scroll just the iframe, with the top of the main page still at the top of the screen? <html> <body> <table> <tr> <td> table1 etc ... <table> <tr> <td> table2 etc ... <table> <tr> <td> <iframe src="another.html#marker"> </iframe> etc thanks Using below script after clicking the button it will reload the page and starting the application I want people go to anchor link location after clicking the submit button, for example go to the bottom of the page because the program is in the bottom of the page how to do that guys please help Code: echo '<form action="" id="frm_chat" method="post"><fieldset id="fieldset_chat"><legend>Chat</legend><div>'; echo $err_msg; echo "<label>Nick: </label>".$txt_nick->getHtml()."<br />"; echo "<label>Server: </label>".$ddl_server->getHtml()." or ".$txt_server->getHtml()."<br />"; echo "<label>Channel: </label>".$ddl_channel->getHtml()." or ".$txt_channel->getHtml()."<br />"; echo ' <input type="submit" class="btn" name="btn_chat" value="Chat Now"/></div></fieldset></form>'; Hi, I have a html page that I have been asked to put onto a new server for a friend. In the html is the following code: {!include file="scroller.tpl"} I can see there is a scroller.tpl page on the site but the server just shows the code a plain text not as an include. I have searched quite a bit but cant find what server side parsing uses {! ... }. The html also has code such as {!if $logged_in} ... {!else} ... {!/if} Any help or suggestions would be most appreciated. Thanks, Consider I have two Web pages and i have one image that appears in both the web pages .. Please post the code that will help me to find the image that is repeated in both the web page and a way to block the image .. my idea is to find the contents(the file name given within quotes) of the img tag and then compare with the img tag in the second page to find out the content that is repeated.. kindly help me implement this using a html code Hello guys ! Ok, i have this website: www.global-publicity.com and, how you see, i have two jump menus there . Well i wonder how can i do to click on Choose continent and when i click on Europe automatically open in left and right frames two html pages in there BUT open my second menu also (ROMANIA) Hope you understand and sorry for my bad english... ok....i have a htm form that has fields that do a get to a aspx datagrid page. this is done in the action part of the form. i set in the form to target a new winodw but how can i have that new window open with no browser menu? i have googled and found ways to do this in the input onclick but either im setting it wrong or it will not work with the get action Code: <form name="Form1" method="get" action="../lookup/phydatagrid.aspx?tablename=physicians" onsubmit="return validateZIP(this.zipcode.value, this.radius.value, this.name)" target="_blank"> I have 4 <form> enclosures on one HTML page, however only the first one works. Is there a technique for using multiple ones? Quote: <form action="default.aspx" method="POST" runat="server" id="form2"> <input type="hidden" name="datfield1" value="addcanvasdeal"> <input type="hidden" name="datfield2" value="2"> <input type="hidden" name="datfieldprice" value="12.99"> <input type="hidden" name="datfieldqty" value="2"> <input type="hidden" name="datfieldcarttype" value="1"> <input type="hidden" name="datfieldtitle" value="Item 1"> <input type="submit" value="Add to Cart" name="B1" style="float: right"> </form> Each field for each form is different. How to open page B from page A after 15 seconds automaticaly? hi every body i want to get a code which open new page in new window like some ads sites when the webpage load . like onload tag . but all of the scripts use popup and activex control for IE doesnt allow to open automaticly . how i can find a way to load a newpage automaticly without this warning . Is there a way to have a div that is a page? Like a iframe does but instead of a iframe, and div? Thanks hello, I'm new on this site. I am making a c# app with web surfing in mind. I asked on 3 c# forums about a question I have but I am not satisfied with their answers. So I came to you too. I want to be able to clean a page(get rid of some tags), that is loading in my webBrowser control, before is rendered inside it. i DON'T want to load it into a string, because if I do that, I must remake the page. I need something that can peek at some page,but not consume it, search for some specific tag, replace/delete it, then allow the "new" page to be finally loaded in my browser. How to achieve this, using html or javascrispt or whatever? I can't explain better than that. Thank you. I do not know wethre this is the right forum or not so pls. suggest me the right one if the answer is negative. The problem I am facing is that the home page of my site (in fact I have noticed it with many of the other sites as well) shows a blank page when I type the URL in IE. But when I press F5 Key (refresh the page) the content displays fine. Also it do not show the blank page everytime I type the URL and browse. Its only in 2-3% cases when I see the blank page . I am really clue less as where exactly is the proble. Is it with the HTML or the server, God know. Pls. help me with that. hi. this may sound noob... but instead of a linking a page like so, <a href="http://www.google.com">google</a> i want to make it so it opens in a another window instead of the one the person is using. thanks Hi all, I am a little lost here.. I am programming a page where many images load. It happens that the next time you visit the page, updated images with the same filename should load, but the older version of the image loads instead. I am guessing that it finds the image in the cache, with the same filename, and loads that one, thinking it's the image it's looking for. That being said, I have looked through so many forums to find a solution that would make it re-download fresh content of the page directly from the server, rather than from the cache. here is the code that seems fairly unanimous: <META HTTP-EQUIV="Expires" CONTENT="-1" /> <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> <META HTTP-EQUIV="Cache-Control" content="no-store" /> <META HTTP-EQUIV="Cache-control" CONTENT="no-cache" /> <META HTTP-EQUIV="Cache" CONTENT="no-cache" /> <META HTTP-EQUIV="Expires" CONTENT="thu, 01 Jan 1998 12:00:00 GMT" /> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> But still with this code in the head tag, the updated images don't get loaded from the server... Any ideas?? Thanks so much, Steph Is there a way (HTML, CSS or Java) to make an index page open automatically 150 pixels down from the actual top of page? Reason: I have a lot of cheap hosted sites with banners at top and it would be great if I could get the page to automatically open with the top banner scrolled off the top of the screen. OK, I'm cheap...... I admit it but I was thinking that it would be nice if this could work..... I need to keep a html page open for ever on web server no matter who is login Is it possible? (do not ask the reason) |