養魚手札

關於部落格


var banner= new Array()
banner[0]=" http://farm3.static.flickr.com/2606/4105087991_82545aa5cd_o.jpg"
banner[1]=" http://farm3.static.flickr.com/2587/4105856210_22c6f97e8a_o.jpg"
banner[2]=" http://farm3.static.flickr.com/2630/4105088775_b64e5da559_o.jpg"
banner[3]=" http://farm3.static.flickr.com/2785/4105856964_2ccc1c8f19_o.jpg"
banner[4]=" http://farm3.static.flickr.com/2711/4105089487_18c2d2ea62_o.jpg"
banner[5]=" http://farm3.static.flickr.com/2724/4105857870_e67852af97_o.jpg"
banner[6]=" http://farm3.static.flickr.com/2604/4105858324_8c33d63f64_o.jpg"
var random=Math.floor(6*Math.random());
document.write("");
document.write("#banner {");
document.write(' background-image:url("' + banner[random] + '") ;');
document.write(" }");
document.write("");




function toggle() {
var ele = document.getElementById("navbarb");
if(ele.style.display == "block") {
ele.style.display = "none";
}
else {
ele.style.display = "block";
}
}






  • 197915

    累積人氣

  • 0

    今日人氣

    0

    訂閱人氣

好看的文字底線

.自訂名稱 { line-height:22px; padding:4px 2px 2px 0px; letter-spacing:2px; background:url(圖片網址) repeat-x bottom }

把上段放進css,更改自訂名稱與圖片網址即可
使用時在文字前後標示 如右:<span class="自訂名稱">特別標示的文字</span>

範例:
<span class="l01">漂亮底線1</span>   =  漂亮底線1
<span class="l02">漂亮底線2</span>   =  漂亮底線2
<span class="l03">漂亮底線3</span>   =  漂亮底線3
<span class="l04">漂亮底線4</span>   =  漂亮底線4
<span class="l05">漂亮底線5</span>   =  漂亮底線5
<span class="l06">漂亮底線6</span>   =  漂亮底線6
<span class="l07">漂亮底線7</span>   =  漂亮底線7
<span class="l08">漂亮底線8</span>   =  漂亮底線8

來源:月光下的嘆息 http://moonpoet.com/2008/08/10/under-line-blog-2/
相簿設定
標籤設定
相簿狀態