What and how do i use are IDs in web design?
926740
CSS has been mentioned my other posters, but I'd like to go into a bit more detail as to why giving elements an ID attribute is so handy...\n\nSample HTML:\n<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">\n\n<html lang="en">\n<head>\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\n<title>Sample layout</title>\n</head>\n<body>\n<div id="Container">\n<div id="Header">\n<ul id="TopNav">\n<li><a href="http://www.microsoft.com/">Microsoft</a></li>\n<li><a href="http://apple.com/">Apple</a></li>\n<li><a href="http://www.adobe.com/">Adobe</a></li>\n<li><a href="http://www.macromates.com/">Macromates</a></li>\n</ul>\n</div>\n\n<div id="Main">\n<p>Main content</p>\n</div>\n\n<div id="Footer">\nCopyright 2006, My Company Inc.\n</div>\n</div>\n</body>\n</html>\n\nOk, so that is fairly straightforward html for a list of links as a navigation bar. Let's make it look nicer with some CSS.\n\nSample CSS:\nhtml {\nfont: 12px/1.6em Arial, sans-serif;\n}\n\n#Container {\nwidth: 500px;\nmargin: 0 auto;\npadding: 0;\n}\n\n#Container #Header {\nbackground: #f3f3f3;\nborder-bottom: 3px solid #09c;\n}\n\n#Container #Header #TopNav {\nfont-size: 1.2em;\nmargin: 0 15px;\npadding: 0;\n}\n\n#Container #Header #TopNav li {\ndisplay: inline;\npadding-right: 5px;\n}\n\n#Container #Main,\n#Container #Footer {\npadding: 0 15px;\n}\n\nTo use this CSS, insert this within the 'head' tag:\n<style type="text/css">\n\n</style>\n\nand put your CSS in between the start and end 'style' tags.\n\nCool! Now it looks a bit tidier with some basic text formatting, the header has also been separated from the main area with a little blue bar. All by targetting the element IDs in CSS.\n\nOk, what else can we do with IDs, other than styling with CSS? How about some javascript?\n\nWith the following javascript I'll get a reference to the "Header" element, then get a reference to all link elements within that. Then I'll add what's known as an "Event listener" to call the "alert" function with that elements URL each time any link is clicked.\n\nSample javascript:\nfunction init() {\nvar topNav,topNavLinks;\ntopNav = document.getElementById('TopNav');\ntopNavLinks = topNav.getElementsByTagName('a');\n\nfor (var i=0; i < topNavLinks.length; i++) {\ntopNavLinks[i].onclick = function(el) {\nalert('My URL is '+this.getAttribute('href'));\nreturn false;\n}\n};\n}\n\nwindow.onload = init;\n\nTo use this javascript, insert this within the 'head' tag:\n<script type="text/javascript">\n\n</script>\n\nand put your javascript within the start and end 'script' tags.\n\nThere you go now. For any future questions I suggest you sign up to the forums at http://www.sitepoint.com/forum/. They have forums for general web design, javascript programming as well as more advanced topics.\n\nGood luck, and have fun!
1019632
To modify an ID is to make a new one.
410369
There are lots of great tools out there that are helpful, including sites that offer templates and help you get started. I have been impressed with the tools and service of GoDaddy (www.godaddy.com). If you'd like to learn more about the process, consider buying this book, which outlines the process, step-by-step: http://www.amazon.com/gp/product/0764507206/103-0552344-8898226?v=glance&n=283155\n\nHere's some tips from http://website-design.mcdar.net/\n\nSo you want to build a website here I will explain some simple but also key aspects that are commonly taken in to consideration when a website developer creates a website.\n\n1) Website Design - The website design must be neat meaning that everything looks like where it is meant to be (nothing out of place or out of proportion). Also your sites design is related to the topic of your website e.g. your site is about flowers then your design must have flowers.\n\n2) Site Navigation - Visitors must be able to get where they want to go without going through a maze a good way of putting it if you can get there in 3 clicks it should be fine. Also it helps when search engine spiders go through your site since it makes it easy for the spiders to index the site.\n\n3) Domain Name - Domain name is important since it is one of the first thing that your visitors will see. Your domain should relate to your site topic or business name. Length of the domain usually 6-8 characters is a good length and easy for visitors to type.\n\n4) Scroll Bars - don't make your website pages too long so your visitors have to scroll for hours it is also a good option to just create another page and don't make people scroll side to side.\n5) Returning Visitors - make your visitors return to your site by adding one or all to your site:\n\n- Email Newsletter (Ezine)\n- Community Forums\n- Online Tools\n- Online Games\n- Useful Content\n- Competitions and Prizes\n- and so on\n\n5) Website Logo - Make your logo unique and brandable so that people will remember your logo and then will remember your site and products.\n\nThese are some simple points that you may take into consideration when you build your website if you need some further assistance have a look at your competitors website and see what they have done. Remember what you put in is what you get out of your website and on that note GOOD LUCK and enjoy the whole process of building your very own virtual property.\n\n\nAll that said, if you'd like something simple and quick, here's the company that made my website, and they charged me less than $300. I knew nothing about doing it, but it came out great and they guided me every step of the way: www.wordtechs.com.\n\n\nGood luck with your new venture!\n~Tia~
661541
when anyone request it will display the ID
576740
Som email client let you simply code in html. This is the most logical way. \n\nIf you cant code html use a design program first then just view the source and copy it accross\n\n\nSite Admin - 3doms.com\nTechSupport@3doms.com
38242
<a href = 'ymsgr:sendim?novavnu'>\n  <img src="http://opi.yahoo.com/online?u=YourID&m=g&t=StyleID" border=0>\n</a>\n\n*** Replace YourId by ur id\n*** replace Style ID by 0 or 1 or 2
756037
I'm not exactly sure what you're asking, but you can check to see if ID exists, and if not, set it to your default value:\n\n'***Put ID in a string variable\nstrID = request.querystring("ID") \n\n'***Check the length of the variable\n'***If it's less than 1, it's empty\nif len(strID) < 1 then\n   strID = "your default"\nend if\n\nIf that's not what your asking, I think the other poster was on the right path with the SORT suggestion...
1147446
The best Web site design for your Web site is the one you like best, but there are some things you will need to remember. Just because your Web site is pretty doesn't mean your readers will read it, or come back another day to read it again. Here are Web site design tips to help you help them to like your Web site. \n\nTitle - Make the title dazzling. A Web site title like "John's Web Site" is not very catchy. Without a title for your Web site that catches their eye they won't click on it. If your readers find a link to your Web site on search engines, or other lists, they probably won't click on it. Use a thesaurus to help you find unique, intriguing words to use in your Web site title. \n\nColumns - How many columns you use in your Web pages changes your whole Web site. Usually when someone creates their first Web page their Web site design is something simple and pretty plain. A lot of people like to use two column Web pages for their Web site design so they can have their writing on one side of the Web page and their navigation on the other. This Web site design looks much better than the plain Web page and it makes your Web site easier to navigate. Then there's the 3 column Web page. This Web site design is not better or worse than the 2 column Web page. It's used if you have a lot of navigation or if you want an extra column for special writings or links on your Web pages. \n\nColors - Colors are very important in Web site design when it comes to looks and having people read your Web site. If your Web site design colors are boring, people will think your Web site is boring. If you use colors on your Web site that make your Web site's readers feel at home or like they're at their favorite restaurant, you will have readers that feel like they're going to find something they like. \n\nNavigation - An important rule to follow in Web site design is that every Web page on your Web site should link back to your homepage. If you want to keep people on your Web site then you need to provide them with a way back to the beginning so they don't get lost and move on to another Web site. \nNext you should create an index of some sort. You want people to be able to find what they are looking for easily on your Web site.\n\nSome styles of Web site design put their navigation above the title, others put it at the bottom of the Web page, and many create a column especially for navigation. What will work best for your Web site is up to you, as you make sure people can see it without really having to look for it. \n\n\nContent - Content is one of the most important thing when it comes to Web site design. If you don't provide good, valuable content on your Web site then no one will have a reason for visiting your Web site, not to mention read it. Your homepage should have information on it telling people about your Web site and why they should read it. Use this Web page to convince them that your Web site is worthwhile.\nCreate a bio page. Tell your readers about you, what you like to do and where you grew up? When someone comes to your Web site they want to know who they are reading about. This way, while they are reading your site they can make appropriate associations and understand you better.\n\nWrite! Do something new on a regular basis. People won't come back to a Web site that never changes. They might read through it once but if they don't notice that you update your Web site, they won't come back. The more often you update the better. Once a week is great, once a month should be your minimum. This is also a very important part of Web site design.
537777
I'm not entirely sure what you mean, so I'll try and explain both possible answers.\nYou could mean that you want to change the look and style of your page (for example backround color) randomly for each user, or have an option for the user to change the page design. You do this using both JavaScript and "CSS", both of which can work with just about any web hosting and will work in just about all new web browsers.\nIt works by putting all the information about your websites style, for example text size and color, in a special file. You can get quite details and label styles, and then specify what style goes where. \nThink of this as setting your headers as being bold and a large size, but normal text not being bold and medium size. You could have something like..\n\n.paragraph { font: 12pt Bold; } \n.header { font: 15p Bold; } \n\n\nNormally you add a mention of the special file in your main HTML web page with a line like \n\n<link rel="stylesheet" type="text/css" href="mywebstyle.css" />"\n\nThen you just need to specify if your paragraph is plain text or a header like so...\n\n<p class="header">HEADER!</p> \n<p class="text">This is our paragraph</p> \n\nNotice the use of class="style"\n\nUsing JavaScript, you can add a link that automaticly loads another .css file, or css details within the original css. \nAssuming you keep everything in one CSS file (the easyiest and most organised way) you can just define an extra style, for example we could expand our earlyier styles in the CSS file to..\n\n.paragraph1 { font: 12pt Bold; } \n.header1 { font: 15p Bold; } \n.paragraph2 { font: 12pt Bold; } \n.header2 { font: 15p Bold; } \n\nNow if we add an "ID" to our paragraphs such as...\n\n<p class="header1" id="heads">HEADER!</p> \n<p class="text1" id="para">This is our paragraph</p> \n\nwe can then change the class (the class specified is just the default) using something like.\n\n<a href="javascript:;" onClick="change('heads', 'header1');">Use Header 1</a>\n<a href="javascript:;" onClick="change('heads', 'header2');">Use Header 2</a>\n\nOf course I've tried to keep my answer short, so it's possible that doesn't all make sence. You'll need to search around for "CSS Style Change" , or for a couple of good starters try http://css.somepeople.net/dynamic and for a really good example goto http://www.spoono.com/javascript/tutorials/tutorial.php?id=18&settutstyle=1 where you can see the effect in action.\n\n\nAnother option is to use file "includes". This is where you can use reacuring code of your website in one file, and get diffrent pages to include parts of an original file. For example, on Yahoo Answers, every page has the Logo, some signin information and the "ask, answer, discover" banner.\nInstead of adding the code for this section manual on everysite, Yahoo just needs to add this part of the site to a file on it's own, and call this file as part of the main page. For example something like this...\n\n<html>\n<include = "TheTopOfThePage.inc">\n<p>Main stuff unique to this page</p>\n<include = "BottomOfThePage.inc">\n<html>\nand for another page...\n<html>\n<include = "TheTopOfThePage.inc">\n<p>Some other page with diffent stuff>\n<include = "BottomOfThePage.inc">\n</html>\n\nThe problem with this is that the code has to be added on the SERVER, that is the place where the HTML files are kept. The server itself adds the code and sends it complete to the CLIENT, so in fact, even with the above code the CLIENT never sees the "include" links but insteads sees the contents of the ".inc&quo
602163
To get started in web page design, find a simple web page. Then in Internet Explorer choose View and Source. The source will show you how to build a web page. Search either YaHoo or Google for web page commands. GeoCities is a nice one for simple web page design with graphics. Graphics are a little more tedious using simple commands.
830430
1) yeah Yahoo Answers chops! but all that is available for us is the URLS. by breaking the lines you can allow the code to pass through answers!\n\n2) I read that whole javascript deal... it was overkill for what I needed. the presence api is simpler (no javascript)\n\nsee \nhttp://messageboards.aol.com/aol/en_us/articles.php?boardId=557053&func=3&channel=AIM%20Message%20Boards\n\nfor discussion of the presence api.\n\nPS\nthey have a discussion forum for each aim area!\n\nUPDATE: \n\nif you want to re-create the enitre aim experience... that's a lot of code! visit the discussion forums above!
970593
You need to apply NORMALISATION. (Look it up if you need to)\n\nCreate a table for Status with 2 fields - one for text and one for an ID. Put in the different states (as listed in your question) in ascending order (think about this order carefully). Go to your original table, create a lookup field referring to the Status table. When building your query, now use the value of the ID field (e.g. StatusID>2)
376825
yes... this is a server side technology, so you will need to use javascript.  \n\ntake a look at the code of a site you like that has it to see how it is coded.\n\nGood luck!
728000
Consider buying or downloading Microsoft Publisher or Printshop (unless you want to use that html thingy!)\n\nChoose your combination color first. 2,3 or 4 colors is ok. Too many color will make you look like clown.\n\nThen, design on a piece of paper. Where you want to put the hyperlink is... the text... how large... what pictures..... bla bla bla.\n\nThen start on your project. If you have Microsoft Publisher or Printshop, there is tons of webpage design that you can personalize.\n\nThen, right click the save one. Right click and open with notepad. Copy the html codes from website. As example if you want your scrollbar color match your webpage, or word tailing your mouse point.....)\n\nAfter it done, upload to your hosting server like Geocities Yahoo or whatever. Rename your supposed-to-be home on your website index.html. Finish!\n\nHey, try this \nhttp://www.bravenet.com\nit's free!
793027
To design a webpage there are so many things you will need to learn but the primary thing you need to know is HTML \n\nsome good html tutorials for your reference are \n\nhttp://www.davesite.com/webstation/html/\nhttp://www.cmis.brighton.ac.uk/~mas/mas/courses/html/html.html\nhttp://founderweb.com/html_tutorial/\nhttp://www.w3schools.com/html/html_examples.asp\n\nTo spice up your site you can use javascript or flash\n\nsome javascript tutorials are \n\nhttp://www.w3schools.com/js/default.asp\nhttp://www.pageresource.com/jscript/\nhttp://www.javascriptkit.com/\nhttp://www.htmlgoodies.com/beyond/javascript/index.php\n\nflash tutorials\n\nhttp://www.actionscript.org/resources/categories/Tutorials/\nhttp://www.flashadvisor.com/movie/index.php?viewCat=32\nhttp://www.layoutgalaxy.com/html/htmnewletter30-page1.htm\n\nhope it helps
460401
Check out this link. Basically, CLASS if for multiple elements and IDs are for specific element...\nhttp://www.mako4css.com/BasClass.htm
632254
Hi,\n\nYou could take a look at the dom basics from the link:\nhttp://www.howtocreate.co.uk/tutorials/javascript/dombasics\n\nIt will explain better than I would :) And it has enriched information.\n\nGood Luck