HTML - Link To Hidden "#' Section
Okay, so obviously, this is my first post, and i know how much forum-ers can hate on first posters, but I have a valid question here
First of all, I really dont even know what coding language I should use to do this. I am fairly experienced in PHP, CSS, and HTML. JS is new to me, but I am learning. Anyways, what I want to do, is have someone click on a link that links to a section of the same page (such as "<a href="#section">) and the part of the page containing the <a name="section"> code is hidden. When the <a href="#section"> link is clicked, a section of the page disappears and the section containing the <a name="section"> appears. My first instinct is that JavaScript would be the easiest to do this, but I'm not super experienced in it, so I'm kinda lost. I really don't know how to explain this any more thoroughly, but I will answer any questions to the best of my ability. Thanks in advance, Austin Similar Tutorialshi, i am working on <div> i have to hide some part of the table. I am not able to hide that table part can anybady tell me where is the error. Code: <html> <head> <script type="text/javascript"> function callme(){ document.getElementById("hid").style.visibility="visible"; } function hideme(){ document.getElementById("hid").style.visibility="hidden"; } </script> </head> <body> <form name="myform"> <table width="100%" border="4" cellpadding="2" cellspacing="2"> <tr> <td class="tableheader" colspan="9">TS </td> </tr> <div style="visibility:hidden" id="hid"> <tr> <td width="17%" class="labeltext">Tran Code</td> <td width="1%" class="blanktext">:</td> <td colspan="4" class="blanktext">Name</td> </tr> <tr> <td width="17%" class="labeltext">Product Type</td> <td width="1%" class="blanktext">:</td> <td colspan="4" class="blanktext"> </td> </tr> </div> <tr> <td> </td> </tr> </table> <input type="button" onclick="callme()" value="show"> <input type="button" onclick="hideme()" value="hide"> </form> </body> </html> thx in Adv, Hanm. Hello again. Hope you had a wonderful Christmas. =) I think I have a better way to ask my question. I'm trying to do something similar to this webpage. ....If you copy ANY PART of the lyrics, you'll see the website's name and URL "magically" appear when you paste it. I want to do something like this. When I looked at the source code for the webpage, I got REALLY confused. Not sure if they're using a script or some CSS to do this. And I doubt I'll get a response if I emailed them, because (1) this site looks REALLY big, so they might not reply to emails, and (2) I don't speak fluent Japanese. Really hope someone can figure out how I can do this. Thanks in advance!!! Hi all, Im trying to link to a section of one page from a different page. Normally it's quite simple but i am using a different linking setup and it's confusing me, i'm afraid. Basically my page setup is I have separate folders for each page, than inside those folders is an index.html page. the page url does not show the .html it only shows the folder name. This is done via my htaccess file (can't remember where i found this solution from). Any way this setup causes problems linking to sections of other pages, has anyone encountered this before, am i missing something simple? Any help is appreciated! Hello everyone, New to this forum, hoping I can get some help. I am somewhat new to HTML, so I'm running into roadblocks every once in a while, most of which I've gotten through myself. I have a problem with an iFrame I want to use. I need to find a way to have an iFrame jump to a section of a page that I want to display. I am building a website for a hockey team. The URL is http://web.mac.com/chris.ducasse/for...a/gameday.html you will see an iFrame that embeds a page from "pointstreak.com" I want the iFrame to automatically jump down to the "scoreboard" section. Is this possible? If not, is there a way to get rid of the scroll bars for ALL browsers? I want to thank everyone in advance for their help, glad to be a part of this forum, looking forward to learning a lot! Both of the ways [see code below] for some reason do not work with XHTML transitional. I am getting this error: end tag for "link" omitted, but OMITTAG NO was specified. How can this be fixed? Hey guys, I've been working on this website some more, & many of you have been a great help to me in the past. I've come with another question.. http://www.cedarcreekyouth.org/ This is the page I ran through the W3C Validation thing.. I've got two more errors and three more warnings. I do not know how to fix them.. I've tried a few things, but my knowledge has failed me. Could someone show me how to fix this, with an explanation? Please and Thank you. Cody Hello, I got a problem, i want to add a new link "Contact us" in my web page. But i need to open up every single page to add the new link. Is there any simple ways to add it? Like i change my homepage , and every single page changes? Thanks Steve I'm running into IE 6 and 7 problems with the bug "Extra Whitespace in List Link Bug". I have applied the suggested Adobe fixes and some others found on-line but they don't seem to work. The problem is occurring in the two drop down menus in the top navigation. I also noticed some extra space at the top, above the content and the top of the browser window. These are only visible in IE 7 or lower. The site with the bug can be found at: http://www.infusiongraphics.com/UCOg...ite/index.html and css at http://www.infusiongraphics.com/UCOg...erontology.css What are your thoughts? Ok, currently on my site I have a bookmark link in my navigation bar (link is in my signature, also looking for reviews if you care to). However, I'm uncertain whether or not they really are worth it. I'm a self taught hobbyist webmaster so I'm not really "in the know" when it comes to some things. I'm just wondering, do bookmark links increase the frequency of people bookmarking your page? Do they just look like extra spam? I don't think I will keep mine up... it seems like even with it there it only works for IE and not mozilla or opera anyways. I recon this one should be an easy one for you...but I have no html experience so help is much appreciated. This html is a banner but I need to turn it into a link too...how do I add the link bit? HTML Code: <style type="text/css"> table table table td {vertical-align:top ! important;} span.blacktext12 { visibility:visible !important; background-color:transparent; background-image:url("http://www.beautyproductdiscounts.com/documents/my_space_banner.jpg"); background-repeat:no-repeat; background-position:center center; font-size:0px; letter-spacing:-0.5px; width:482px; height:323px; display:block !important; } span.blacktext12 img {display:none;} </style> Hi, This question has been vexing me from quite some time now. When one links to the resources outside his/her website should the target="_blank" attribute be used for the <a> tag? Normally I use target="_blank" for anything that is outside my website. But this question bothers me even more when I am creating a list of resources. Since, while viewing these lists user will be more interested in the resources than my website. Recently I came across the following opinion a lot times: If the user wants to come back to your site he has the back button and also he can use the "Open in new window" option if he wants the linked resource to open in new window. Please share your thoughts about this point. Thank You. Hi, i need a simple help to make the text "Add to Your favourites" be this colour: #666666 here is the add to favourites code: <a href="#" onclick="window.external.AddFavorite(location.href, document.title);">Add to Your Favourites</a> thanks. Your help is much appreciated. My icon exists and i know it works as i tryed it in dreamweaver. my code Code: <link rel="SHORTCUT ICON" href="http://www.simplecoders.com/sc.ico"/> Icon exists on server as if i type link in it does to it. just doesnt show up on tab or url bar any ideas? A customer gave me a Word doc that they want turned into a printer friendly web page. I understand that there are tons of ways to do this but I really want the answer to the subject. What i'm referring to is a form that someone can print from the browser and "fill in the blanks" on the page where there are "underscores". My question is how to code those underscores. I tried manipulating the <hr> tag but it's putting way too much space in between each <hr>. I've already coded a "fill in the blank" line using <u> nbsp;</u> but that looks very messy. What do you guys/gals think? http://www.colletts.co.uk/winter_dolomites.htm I have the above page that redirects users to my Winter Website - the HTML below isn't valid W3C does anyone know of a better and valid way to get this done? Cheers, Mas HTML Code: <META HTTP-EQUIV="Refresh" CONTENT="2.5;URL=http://www.colletts.co.uk/winter/winter_dolomites.html" /> I was hoping someone could clue me in as to whether or not this would be possible. I'm thinking it isn't but I need to make sure. I'd like to provide a file for people to download on my website, but when they click on the link and the download window appears I don't want them to have the option of opening it. Is it possible to only give them the option to save the file? Sounds incredibly unlikely but I gotta know. Hello, I want to load a page in a iframe, and when i do this, i want that page to be displayed not at the begining of that page, i want that page to be displayed at a "x" and "y" position specificated by me. How can i do that? Thank you. Hi all, I am currently working on a website using Dreamweaver CS3. Whenever I view the (currently very basic) site in Firefox I get the line of code I entered as the title of this thread at the top of the page (directly above the banner) as if I had just typed it into the canvas area (correct term?). Whenever I view it in IE it appears just fine, not sure about other browsers though. I began by creating a template and adding it to the page you see he HTML Code: http://www.geocities.com/makotronic/indexx.htm Here is the code for the template: Code: <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- TemplateBeginEditable name="doctitle" --> <title>Template for Parish Website</title> <!-- TemplateEndEditable --> <!-- TemplateBeginEditable name="head" --> <!-- TemplateEndEditable --> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } body,td,th { font-family: Arial Narrow, Verdana, Arial, sans-serif; } .style5 {font-size: 14px} --> </style></head> <body> <table width="750" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2"><img src="../Images/welcomebanner.gif" width="750" height="125" /></td> </tr> <tr> <td width="160"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table></td> <td width="590" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td valign="top"><!-- TemplateBeginEditable name="Main Body" -->Main Body<!-- TemplateEndEditable --></td> </tr> </table></td> </tr> </table> </body> </html> And for indexx.htm (I added a second 'x' because I already had a 'index.htm' file in GeoCities): Code: <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/template.dwt.asp" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Welcome to the Greencastle Parish Website</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --> <style type="text/css"> <!-- .style8 { font-size: 36px; font-weight: bold; } --> </style> <!-- InstanceEndEditable --> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } body,td,th { font-family: Arial Narrow, Verdana, Arial, sans-serif; } .style5 {font-size: 14px} --> </style></head> <body> <table width="750" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2"><img src="Images/welcomebanner.gif" width="750" height="125" /></td> </tr> <tr> <td width="160"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table></td> <td width="590" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td><!-- InstanceBeginEditable name="Main Body" --> <span class="style8">Header</span> <p class="style3">Main Body</p> <!-- InstanceEndEditable --></td> </tr> </table></td> </tr> </table> </body> <!-- InstanceEnd --></html> Cheers for any help! Niall Hi, I have a problem with validating Strict XHTML 1.0 ... The tag: "option" doesn't have an attribute: "onchange" in currently active versions.[XHTML 1.0 Strict]... Is there a way around this? Here's the code:. <select name="birth_month" onchange="form_d('yes');" size="1" style="width:8em"> <option<?php echo empty($a_birth_month)?' selected="selected"':''?> value="" onchange="form_d('yes');" >Month</option> Thanks Only another million pages to go. Rather than write them out i took a screenshot. So how do i get past those? |