好好学习,天天向上

VIA浏览器自定义logo设置

via浏览器比较小巧,该有的功能也都有。

自定义logo可以用html代码

1.文字logo,文字大小,样式都可以自己调整

<span style="font-size: 50px; font-weight: bold; text-transform:uppercase;">姿势小王子</span>

2.天气logo

<span style="font-size: 25px; font-weight: bold;" id="weather"><script>function ajax(a){a=a||{};a.method=a.method.toUpperCase()||"POST";a.url=a.url||"";a.async=a.async||!0;a.data=a.data||null;a.success=a.success||function(){};var b=null;b=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");var c=[],d;for(d in a.data)c.push(d+"="+a.data[d]);c=c.join("&");"POST"===a.method.toUpperCase()?(b.open(a.method,a.url,a.async),b.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),b.send(c)):"GET"===a.method.toUpperCase()&&(b.open(a.method,
a.url+"?"+c,a.async),b.send(null));b.onreadystatechange=function(){4==b.readyState&&200==b.status&&a.success(JSON.parse(b.responseText))}}ajax({method:"GET",url:"http://api.jirengu.com/getWeather.php",success:function(a){console.log(a);now=document.getElementById("weather").innerHTML=a.results[0].weather_data[0];e=document.getElementById("weather");now&&(e.innerHTML=now.weather+"("+now.temperature+")")}});</script></span>

3.网易云音乐logo,只要分享音乐,就可以获取音乐ID。高度和宽度,按你的需要调节就可以了。

<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=250 src="http://music.163.com/outchain/player?type=0&id=123216450&auto=1&height=230"></iframe>

4.设置大图为logo,高度和宽度也是看图片调整

<img src="https://ws3.sinaimg.cn/large/005BYqpgly1fxwv8bbi2lj30u017pu0z.jpg"  width="200px" height="0px/>

5.显示日期logo

<sript>
   var d = new Date();
  document.write(d.getFullYear() + "年" +(d.getMonth() + 1) + "月" + d.getDate() + "日");
  document.write(' 星期'+'日一二三四五六'.charAt(new Date().getDay()));
 </sript>

6.类似的就是显示时间logo,字体大小,颜色,样式等等都可以自己调整。

    <script language=javascript>
function CurentTime(){  
    var now = new Date();  
    var hh = now.getHours();  
    var mm = now.getMinutes();  
    var ss = now.getTime() % 60000;  
    ss = (ss - (ss % 1000)) / 1000;  
    var clock = hh+':';   if (mm < 10) clock += '0';   clock += mm+':';    if (ss < 10) clock += '0';   clock += ss;  return(clock);  
}  
function refreshCalendarClock(){  document.all.calendarClock4.innerHTML = CurentTime();  }  
document.write('<font id="calendarClock4" style="color:#000000;font-family:Arial;font-size:48pt;Line-Height=100%"></font>'); 
setInterval('refreshCalendarClock()',1000);
</script>
1+

发表评论

电子邮件地址不会被公开。 必填项已用*标注