| Example 5 << >> | book |
| XUL | HOME |
| With the id attribute an element is uniquely determined. The function getElementById selects this element and the function setAttribute in this case selects attribute disabled and assigns the relevant value |
|
<?xml-stylesheet href="css1.css" type="text/css"?> <window Surfns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" align="vertical" > <menubar> <menu value="AAA"> <menupopup> <menuitem value="Enable" type="radio" name="group" oncommand = "document.getElementById('resize').setAttribute('disabled','false') "/> <menuitem value="Disable" type="radio" name="group" checked = "true" oncommand = "document.getElementById('resize').setAttribute('disabled','true') "/> <menuseparator/> <menuitem id="resize" value="Resize" disabled="true" oncommand = "resizeBy(20,20)"/> </menupopup> </menu> </menubar> </window> |
| If the element is not identified by id attribute a more lenghty and risky procedure must be choozen. The function getElementsByTagName selects all elements with given name. The function item(2) selects the third element of this name in the document (the numbering starts from 0) |
|
<?xml-stylesheet href="css1.css" type="text/css"?> <window Surfns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" align="vertical" > <menubar> <menu value="AAA"> <menupopup> <menuitem value="Enable" type="radio" name="group" oncommand = "document.getElementsByTagName('menuitem').item(2).setAttribute('disabled','false') "/> <menuitem value="Disable" type="radio" name="group" checked = "true" oncommand = "document.getElementsByTagName('menuitem').item(2).setAttribute('disabled','true') "/> <menuseparator/> <menuitem value="Resize" disabled="true" oncommand = "resizeBy(20,20)"/> </menupopup> </menu> </menubar> </window> |
| CSS | HOME |
| The default Mozilla Surf is used. |
| @import url(chrome://global/skin); |
visit Quiksilver Surf Camps and Surf School and book a surf lesson.
And for the girls you can visit this site Roxy Surf Camps and Surfing School to learn more about surfing and take a class as well.
If you want to see a good surf contest visit this site: Billabong Pro Pipeline Masters Surfing Contest 2007. You'll be glad you did.
Billabong Pro Pipe Pipeline Masters 2007 Surf Contest This website is one that you have to see at boardshort superstore quiksilver billabong swim suit hurley roxy quicksilver volcom
This is a must go surfing event: Eddie Would Go Aikau Big Wave Invitational 2007 Quiksilver Surf fans from around the world will be watching this event and buying the Eddie Would Go Surf Clothing.
Check out these online
surf shop websites. I like the BOARDSHORTSUPERSTORE.COM
website the best but there are others. There is also the BUYBOARDSHORTS.COM
website that has a good selection as well. And if you want to see a great
selection of shirts, BUYSURFTEES.COM
is a good site and I think each one of the websites has a great selection.