Author: remi
Date: 2009-07-17 11:22:33 +0200 (Fri, 17 Jul 2009)
New Revision: 5121

Modified:
   
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/livewithtux.css
   
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/livewithtux.xsl
Log:
* Fixed button "Sound On/Off" behavior in the page "Live with Tux"

Modified: 
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/livewithtux.css
===================================================================
--- 
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/livewithtux.css
      2009-07-17 09:19:02 UTC (rev 5120)
+++ 
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/livewithtux.css
      2009-07-17 09:22:33 UTC (rev 5121)
@@ -502,64 +502,110 @@
     overflow:hidden;
 }
 
-img.statusBtnSoundOn{
-    top:0px;
-    left:0px;
-       width:101px;
+.statusBtnSoundOnEnable{
+    width:71px;
+    _width:101px;
     height:32px;
+    padding-left:30px;
+    padding-top:-1px;
     margin-left:10px;
     margin-top:9px;
     display:table;
     float:left;
+    line-height:32px;
+    font-size:11px;
+    color:#FFFFFF;
+    text-align:center;
+    vertical-align:middle;
+    font-weight:bold;
+    overflow:hidden;
+    text-decoration:none;
+    font-family:Verdana, Bitstream Vera Sans;
+    
background-image:url(/data/web_interface/user_01/img/status_btn_soundon_enable.png);
 }
 
-.statusBtnSoundOnLabel{
-    top:0px;
-    left:0px;
-       width:70px;
+.statusBtnSoundOnEnable:hover{
+    
background-image:url(/data/web_interface/user_01/img/status_btn_soundon_activate.png);
+}
+
+.statusBtnSoundOnActivate{
+    width:71px;
+    _width:101px;
     height:32px;
-    margin-left:-70px;
-    margin-top:8px;
+    padding-left:30px;
+    padding-top:-1px;
+    margin-left:10px;
+    margin-top:9px;
     display:table;
     float:left;
     line-height:32px;
     font-size:11px;
     color:#FFFFFF;
     text-align:center;
+    vertical-align:middle;
     font-weight:bold;
     overflow:hidden;
+    text-decoration:none;
     font-family:Verdana, Bitstream Vera Sans;
+    
background-image:url(/data/web_interface/user_01/img/status_btn_soundon_activate.png);
 }
 
-img.statusBtnSoundOff{
-    top:0px;
-    left:0px;
-       width:102px;
+.statusBtnSoundOnActivate:hover{
+    
background-image:url(/data/web_interface/user_01/img/status_btn_soundon_activate.png);
+}
+
+.statusBtnSoundOffEnable{
+    width:80px;
+    _width:102px;
     height:32px;
+    padding-left:22px;
+    padding-top:-1px;
     margin-left:0px;
     margin-top:9px;
     display:table;
     float:left;
+    line-height:32px;
+    font-size:11px;
+    color:#FFFFFF;
+    text-align:center;
+    vertical-align:middle;
+    font-weight:bold;
+    overflow:hidden;
+    text-decoration:none;
+    font-family:Verdana, Bitstream Vera Sans;
+    
background-image:url(/data/web_interface/user_01/img/status_btn_soundoff_enable.png);
 }
 
-.statusBtnSoundOffLabel{
-    top:0px;
-    left:0px;
-       width:70px;
+.statusBtnSoundOffEnable:hover{
+    
background-image:url(/data/web_interface/user_01/img/status_btn_soundoff_activate.png);
+}
+
+.statusBtnSoundOffActivate{
+    width:80px;
+    _width:102px;
     height:32px;
-    margin-left:-75px;
-    margin-top:8px;
+    padding-left:22px;
+    padding-top:-1px;
+    margin-left:0px;
+    margin-top:9px;
     display:table;
     float:left;
     line-height:32px;
     font-size:11px;
     color:#FFFFFF;
     text-align:center;
+    vertical-align:middle;
     font-weight:bold;
     overflow:hidden;
+    text-decoration:none;
     font-family:Verdana, Bitstream Vera Sans;
+    
background-image:url(/data/web_interface/user_01/img/status_btn_soundoff_activate.png);
 }
 
+.statusBtnSoundOffActivate:hover{
+    
background-image:url(/data/web_interface/user_01/img/status_btn_soundoff_activate.png);
+}
+
 .leightbox {
        color: #333;
        display: none;

Modified: 
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/livewithtux.xsl
===================================================================
--- 
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/livewithtux.xsl
      2009-07-17 09:19:02 UTC (rev 5120)
+++ 
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/livewithtux.xsl
      2009-07-17 09:22:33 UTC (rev 5121)
@@ -196,8 +196,8 @@
 
             function showSoundOn()
             {
-                document.getElementById("statusBtnSoundOn").src = 
"/data/web_interface/user_01/img/status_btn_soundon_activate.png";
-                document.getElementById("statusBtnSoundOff").src = 
"/data/web_interface/user_01/img/status_btn_soundoff_enable.png";
+                document.getElementById("statusBtnSoundOn").className = 
"statusBtnSoundOnActivate";
+                document.getElementById("statusBtnSoundOff").className = 
"statusBtnSoundOffEnable";
             }
 
             function setSoundOn()
@@ -207,8 +207,8 @@
 
             function showSoundOff()
             {
-                document.getElementById("statusBtnSoundOn").src = 
"/data/web_interface/user_01/img/status_btn_soundon_enable.png";
-                document.getElementById("statusBtnSoundOff").src = 
"/data/web_interface/user_01/img/status_btn_soundoff_activate.png";
+                document.getElementById("statusBtnSoundOn").className = 
"statusBtnSoundOnEnable";
+                document.getElementById("statusBtnSoundOff").className = 
"statusBtnSoundOffActivate";
             }
 
             function setSoundOff()
@@ -592,21 +592,19 @@
                     <xsl:attribute 
name="src">/data/web_interface/user_01/img/status_battery_nodongle.png</xsl:attribute>
                 </xsl:element>
                 <!-- STATUS BTN SOUND ON -->
-                <xsl:element name="img">
-                    <xsl:attribute 
name="class">statusBtnSoundOn</xsl:attribute>
+                <xsl:element name="a">
+                    <xsl:attribute 
name="class">statusBtnSoundOnEnable</xsl:attribute>
                     <xsl:attribute name="id">statusBtnSoundOn</xsl:attribute>
                     <xsl:attribute 
name="onclick">javascript:setSoundOn();return false;</xsl:attribute>
-                    <xsl:attribute 
name="src">/data/web_interface/user_01/img/status_btn_soundon_enable.png</xsl:attribute>
+                    <xsl:attribute name="href">#</xsl:attribute><xsl:value-of 
select="root/translations/sound_on"/>
                 </xsl:element>
-                <span class="statusBtnSoundOnLabel"><xsl:value-of 
select="root/translations/sound_on"/></span>
                 <!-- STATUS BTN SOUND OFF -->
-                <xsl:element name="img">
-                    <xsl:attribute 
name="class">statusBtnSoundOff</xsl:attribute>
+                <xsl:element name="a">
+                    <xsl:attribute 
name="class">statusBtnSoundOffActivate</xsl:attribute>
                     <xsl:attribute name="id">statusBtnSoundOff</xsl:attribute>
                     <xsl:attribute 
name="onclick">javascript:setSoundOff();return false;</xsl:attribute>
-                    <xsl:attribute 
name="src">/data/web_interface/user_01/img/status_btn_soundoff_activate.png</xsl:attribute>
+                    <xsl:attribute name="href">#</xsl:attribute><xsl:value-of 
select="root/translations/sound_off"/>
                 </xsl:element>
-                <span class="statusBtnSoundOffLabel"><xsl:value-of 
select="root/translations/sound_off"/></span>
             </div>
         </div>
         <!-- EXAMPLE OF LIGHTBOX -->


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to