Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5

frage an Themes ersteller/html experten
#1

tach

ich habe ein iphone theme für den lockscreen, der je nach tageszeit den hintergrund ändert.

nur habe ich das problem, das auch wenn das iphone geladen wird, nicht der batteriestatus angezeigt wird sondern weiterhin den hintergrund des theme

wie kann ich im code einstellen, das batterielogo vorrang hat?

p.s.
lockscreen widget is in einem gesamten theme mit icons, BATTERIICONS, uvm drinne

hier der code:

Code:
<?xml version="1.0" encoding="UTF-16"?>
<html><head>
    <base href="Private/"/>
    <!--meta name="viewport" content="width=320, minimum-scale=1.0, maximum-scale=1.0"/-->
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>


    

    
    
    <noscript>
<!--
    We have the "refresh" meta-tag in case the user's browser does
    not correctly support JavaScript or has JavaScript disabled.

    Notice that this is nested within a "noscript" block.
-->
<meta http-equiv="refresh" content="60">

</noscript>

<script language="JavaScript">
<!--

var sURL = unescape(window.location.pathname);

function doLoad()
{
    // the timeout value should be the same as in the "refresh" meta-tag
    setTimeout( "refresh()", 60*1000 );
}

function refresh()
{
    
    window.location.href = sURL;
}
//-->
</script>

<script language="JavaScript1.1">
<!--
function refresh()
{

    window.location.replace( sURL );
}
//-->
</script>

<script language="JavaScript1.2">
<!--
function refresh()
{
    window.location.reload( true );
}
//-->
</script>
</head>


    
    
    
    <style>
        body {
            background-color: black;
            margin: 0;
            padding: 20px 0 0 0;
            height: 442px;
            width: 320px;
        }

        img {
            -webkit-transition-property: opacity;
            -webkit-transition-duration: 2s;
            position: absolute;
            width: 320px;
            height: auto;
        }

        img.fade-out {
            opacity: 0;
        }

        img.fade-in {
            opacity: 1;
        }
    </style>
    <script language="JavaScript">
    
day=new Date()    
x=day.getHours()    

if(x>=0 && x<6) {

   document.write('<style type="text/css">body{background: white url(night.jpg); color: black}"></style>')

} else


if(x>=6 && x<8) {

   document.write('<style type="text/css">body{background: white url(sunrise.jpg); color: black}"></style>')

} else


if(x>=8 && x<10) {

   document.write('<style type="text/css">body{background: white url(morning.jpg); color: black}</style>')
  
} else


if(x>=10 && x<17) {

   document.write('<style type="text/css">body{background: white url(sunshine.jpg); color: black}</style>')

} else

if(x>=17 && x<19) {

   document.write('<style type="text/css">body{background: white url(sunset.jpg); color: black}</style>')

} else

if (x>=19 && x<24) {

   document.write('<style type="text/css">body{background: white url(night.jpg); color: black}</style>')

}

</script>












</head><body style="color: black" onload="doLoad()">


</body></html>

mfg
Zitieren


Möglicherweise verwandte Themen…
Thema / Verfasser Antworten Ansichten Letzter Beitrag



Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste