ginebra/chrome/demochrome/snippets/PopSnippet.html
changeset 0 1450b09d0cfd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ginebra/chrome/demochrome/snippets/PopSnippet.html	Tue May 04 12:39:35 2010 +0300
@@ -0,0 +1,62 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+
+  <head>
+    <link rel="stylesheet" id = "CSSLink" type="text/css" href="../css/chromeStyleBlack.css" />
+  </head>
+  <script type="text/javascript">
+       function chromeSelect(){
+        var p = document.getElementsByName("ChromeSelection");
+        for(i = 0; i < p.length; i ++){
+          if(p[i].checked == true){
+            return p[i].value;
+          }
+        }
+      }
+
+      function styleSelect() {
+        var p = document.getElementsByName("StyleSelection");
+        for(i = 0; i < p.length; i ++){
+          if(p[i].checked == true){
+            return p[i].value;
+          }
+        }
+      }
+  </script>
+  <body>
+    <h3>Chrome settings</h3>
+    <hr/>
+    Chrome:
+    <br/>
+    Simple
+    <input type ="radio"
+           checked = "checked"
+           name = "ChromeSelection"
+           value="chrome.html"/>
+
+    <button type="button" class="Button" onclick="window.chrome.updateChrome('chrome/' + chromeSelect());">Update</button>
+
+    <br/>
+    Veggie
+    <input type ="radio"
+           name = "ChromeSelection"
+           value="veggie-chrome.html"/>
+    <hr/>
+    Style:
+    <br/>
+    Simple
+    <input type ="radio"
+           checked = "checked"
+           name = "StyleSelection"
+           value="chromeStyleFlat.css"/>
+    <button type="button" class="Button" onclick="newStyle('css/' + styleSelect());">Update</button>
+
+    <br/>
+    Curved
+    <input type ="radio"
+           name = "StyleSelection"
+           value="chromeStyleBlack.css"/>
+    <br/>
+  </body>
+</html>