-
Posts
1,819 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by scott100
-
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 )
-
sure do: elm=document.forms[0];for (i=0;i<elm.length;++ i){ elm[i].disabled=true;}
-
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
-
doh! i think you may be right Jonas
-
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
-
<head><script> //put javascript here</script><link rel="stylesheet" type="text/css" href="http://www.myplace.com/my_css.css" /></head>
-
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
-
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>
-
Nope, browsers like opera/firefox will just ignore this and use there default.
-
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
-
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
-
Works fine I removed this because it didn't make sensebackground-attachment: fixed;
-
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
-
Add 100% width to the parent table.<table border="0" width="100%">
-
Sorry i skimmed the question Maybe windows just needed a moment to refresh itself
-
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
-
You should have another folder in WINDOWS named Fonts, save them there.C:\WINDOWS\Fonts
-
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
-
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
-
Ask Google http://www.google.co.uk/search?hl=en&q...earch&meta=
-
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>
-
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
-
Are you just trying to redirect a page Meta tag is an easy one: http://www.w3schools.com/tags/tryit.asp?fi...ryhtml_redirect
-
You can do this with plain html - <base target="_blank" />Example: http://www.w3schools.com/tags/tryit.asp?fi...me=tryhtml_base