Jump to content

scott100

Members
  • Posts

    1,819
  • Joined

  • Last visited

Everything posted by scott100

  1. Yeah it does work, it's just shorthand for the second one.elm.disabled=true;elm.elements.disabled=true;but yeah yours was a bit more detailed so it'd work better cause mine would disable everthing (like the submit button )
  2. sure do: elm=document.forms[0];for (i=0;i<elm.length;++ i){ elm[i].disabled=true;}
  3. It works fine, it should look like this<head><style type="text/css">body{background-color:yellow}h1 {background-color: transparent}h2 {background-color: transparent}p {background-color: rgb(250,0,255)}</style></head> http://www.w3schools.com/css/tryit.asp?fil...ackground-color
  4. doh! i think you may be right Jonas
  5. Not css but javascript, if you get the id of the element you can disable it.http://www.w3schools.com/js/tryit.asp?file...select_disabled
  6. <head><script> //put javascript here</script><link rel="stylesheet" type="text/css" href="http://www.myplace.com/my_css.css" /></head>
  7. scott100

    Images

    Create a new folder and call it "website" or something.Save both the page and picture into this folder.You will now be able to link the picture to the page with something like <img src="mypic.jpg" />If you create the same structure when you upload then it should work correctly aswell.http://www.w3schools.com/html/html_images.asp
  8. scott100

    add total

    I have totalled up the toppings and sent an alert to screen, from that you should be able to figure out how to add the pizza size<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><title>pizza</title><style></style><script type="text/javascript">var total=0;var topping=1;function check(size){document.getElementById("answer").value=size}function createOrder(){total=0;pizza=document.forms[0].pizzatxt=""for (i=0;i<pizza.length;++ i){if (pizza[i].checked){txt=txt + pizza[i].value + " ";total+=topping}}alert("Total $"+total);document.getElementById("order").value="You ordered a pizza with " + txt}</script></head><body><form> Pizza<p>Select size and toppings then click total </p><br> <input type=radio name="size"onclick="check(this.value)" value="small">small $8<br><input type=radio name="size"onclick="check(this.value)" value="medium">medium $12<br> <input type=radio name="size"onclick="check(this.value)" value="large">large $16<br><p>Size <input type="text" id="answer" size="6"></p><p>add $1 for each topping</p><input type="checkbox" name="pizza" value="extra cheese">extra cheese<br /><input type="checkbox" name="pizza" value="pepperoni">pepperoni<br /><input type="checkbox" name="pizza" value="sausage">sausage<br /><input type="checkbox" name="pizza" value="mushrooms">mushrooms<br /><br> <input type="button" onclick="createOrder()" value="Send order"><br /><br /><input type="text" id="order" size="70"></form></body></html>
  9. Nope, browsers like opera/firefox will just ignore this and use there default.
  10. Tabless layouthttp://www.w3.org/2002/03/csslayout-howtoThere are many others on google if you do a search z-index allows you to layer things on a page depending on their number, highest has most priority (sits on top)http://www.w3schools.com/dhtml/tryit.asp?f...rydhtml_zindex2
  11. Tables na i wouldn't bother.Sounds as though css would be a better choice, especially if you want to "layer" elements on the page, you can use z-index
  12. Works fine I removed this because it didn't make sensebackground-attachment: fixed;
  13. The one on the right sticks out more because you have 4-4-5 table rows. It's also because the contents are centered in the table so the first two are lower down, add valign="top" to even things up.<table border="1"><tr><td width=15% height=100% valign="top"><table class="groove" align=left><tr><td width=15% height=100%>content</td></tr><tr><td width=15% height=100%>content</td></tr><tr><td width=15% height=100%>content</td></tr><tr><td width=15% height=100%>content</td></tr></table></td><td width=70% height=100% valign="top"><table class="groove" align=center width=100%><tr><td width=70% height=100%>content</td></tr><tr><td width=70% height=100%>content</td></tr><tr><td width=70% height=100%>content</td></tr><tr><td width=70% height=100%>content</td></tr></table></td><td width=15% height=100% valign="top"><table class="groove" align=right><tr><td width=15% height=100%>content</td></tr><tr><td width=15% height=100%>content</td></tr><tr><td width=15% height=100%>content</td></tr><tr><td width=15% height=100%>content</td></tr><tr><td width=15% height=100%>content</td></tr></table></td></tr></table>*EDITED
  14. Add 100% width to the parent table.<table border="0" width="100%">
  15. scott100

    Fonts

    Sorry i skimmed the question Maybe windows just needed a moment to refresh itself
  16. scott100

    Positioning

    No you can only have one value.You could open the picture in an editor and add extra space above it, that would push the picture down when centered on the page, just remember and colour the extra space the same as the web page background
  17. scott100

    Fonts

    You should have another folder in WINDOWS named Fonts, save them there.C:\WINDOWS\Fonts
  18. scott100

    Header image

    You would just use the code above along with an image that has been made lighter by an image editorhttp://www.w3schools.com/dhtml/tryit.asp?f...l_css_watermark
  19. scott100

    Header image

    You have said background-image but added other values, remove -image and it should work.trybody {background: url('afbeeldingen/afbeelding1.gif') no-repeat fixed center; } http://www.w3schools.com/css/tryit.asp?fil...ycss_backgroundbackground can have all thesebackground-colorbackground-imagebackground-repeatbackground-attachmentbackground-position
  20. Ask Google http://www.google.co.uk/search?hl=en&q...earch&meta=
  21. It's all css <head><STYLE type="text/css"><!--body {SCROLLBAR-ARROW-COLOR: #000000;SCROLLBAR-BASE-COLOR: #666666;SCROLLBAR-FACE-COLOR: #696969;SCROLLBAR-HIGHLIGHT-COLOR: #A9A9A9;SCROLLBAR-SHADOW-COLOR: #778899;SCROLLBAR-3DLIGHT-COLOR: #778899;SCROLLBAR-TRACK-COLOR: #808080;SCROLLBAR-DARKSHADOW-COLOR: #778899;}a:link { color : slategray; text-decoration : none;}a:visited { color : #C1C4C6; text-decoration : none;}a:active { color : #C1C4C6; text-decoration : none;}a:hover { color :#666666; text-decoration : none;}--></STYLE></head><body><a href="http://www.google.com">Google</a></body>
  22. scott100

    Header image

    You can't create your own tags with css, but you can create your own classes and apply them to existing html tags.In this example i have said - center the contents of all divs only if they have class "image". (i made this up, image could be called potatoes or whatever!) There are of course many ways to do one job with css
  23. scott100

    Wont show

    Yeah but what host are you using? You would submit the form to a script that sends the mailhttp://www.w3schools.com/asp/asp_send_email.aspAll this and more can be found in the asp tutorial.http://www.w3schools.com/asp/default.asp
  24. scott100

    Header and CSS

    Are you just trying to redirect a page Meta tag is an easy one: http://www.w3schools.com/tags/tryit.asp?fi...ryhtml_redirect
  25. You can do this with plain html - <base target="_blank" />Example: http://www.w3schools.com/tags/tryit.asp?fi...me=tryhtml_base
×
×
  • Create New...