Advertisement
Guest User

Header.html

a guest
Dec 5th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.35 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title><THREADNAME/></title>
  4. <style type="text/css">
  5. a:hover
  6. {
  7. color: #ff0000;
  8. text-decoration: underline;
  9. }
  10.  
  11. .ref_num
  12. {
  13. color:red;
  14. }
  15.  
  16. .ref_cnt
  17. {
  18. text-decoration: none;
  19. font-weight: normal;
  20. }
  21.  
  22. .sirusi
  23. {
  24. border-style:none;
  25. border-width:1;
  26. background-color:powderblue;
  27. }
  28.  
  29. .sirusi_ref
  30. {
  31. border-style:none;
  32. border-width:1;
  33. background-color:pink;
  34. }
  35.  
  36.  
  37. .sirusi_men
  38. {
  39. border-style:none;
  40. border-width:1;
  41. background-color:silver;
  42. }
  43.  
  44. .id_default_color
  45. {
  46. color:black;
  47. }
  48.  
  49.  
  50. .cl_ketai
  51. {
  52. background: url(<SKINPATH/>img/Client_ketai.png) no-repeat;
  53. width: 16px;
  54. height: 16px;
  55. }
  56.  
  57. cl_willcom, .cl_Q
  58. {
  59. background: url(<SKINPATH/>img/Client_Q.png) no-repeat;
  60. width: 16px;
  61. height: 16px;
  62. }
  63.  
  64. .cl_iPhone
  65. {
  66. background: url(<SKINPATH/>img/Client_iPhone.png) no-repeat;
  67. width: 16px;
  68. height: 16px;
  69. }
  70.  
  71. .cl_p2
  72. {
  73. background: url(<SKINPATH/>img/Client_p2.png) no-repeat;
  74. width: 16px;
  75. height: 16px;
  76. }
  77.  
  78. </style>
  79. <script type="text/JavaScript">
  80. // リンクにマウスオーバーされたらリンク先をチェックし
  81. // ようつべかニコ動ならサムネイルを挿入してみる by 水玉さん
  82. document.onmouseover =
  83. function()
  84. {
  85. var e = window.event.srcElement;
  86. if ( e.tagName == 'A' )
  87. {
  88. // マウスオーバーされた要素がAリンクだったので
  89. if ( e.href.match( /^http:\/\/www\.youtube\.com\/watch\?v=(\w+)/ ) )
  90. {
  91. // hrefがYouTubeなので
  92. if ( !e.img )
  93. {
  94. // 挿入済みじゃないのでA要素内にサムネイルimg要素を挿入
  95. var img = "<img src='" + "http://i.ytimg.com/vi/" + RegExp.$1 + "/default.jpg' />";
  96. e.insertAdjacentHTML( 'AfterBegin' , img );
  97. e.img = true; // 挿入済みにする
  98. }
  99. }
  100. else if ( e.href.match( /^http:\/\/www\.nicovideo\.jp\/watch\/sm(\d+)/ ) )
  101. {
  102. // hrefがニコ動なので
  103. if ( !e.img )
  104. {
  105. // 挿入済みじゃないのでA要素内にサムネイルimg要素を挿入
  106. var img = "<img src='" + "http://tn-skr.smilevideo.jp/smile?i=" + RegExp.$1 + "' />";
  107. e.insertAdjacentHTML( 'AfterBegin' , img );
  108. e.img = true; // 挿入済みにする
  109. }
  110. }
  111. else if ( mr = e.href.match( /^http:\/\/.+\.2ch\.net\/test\/read\.cgi\/.+\/(\d{10})/ ) )
  112. {
  113. // 2016/12/04 Mizutama
  114. // レス中のリンクが2chスレならスレ立て時刻を表示
  115. var date = new Date( mr[1] * 1000 );
  116. e.title = date.toLocaleString();
  117. }
  118. }
  119. }
  120. </script>
  121. </head>
  122.  
  123. </head>
  124. <body bgcolor="#efefef" onmouseover="var e = window.event.srcElement;if (e.innerText.charAt(0)=='*'){window.status=e.href;setTimeout(function() { e.click(); },1);}">
  125. <font face="MS Pゴシック">
  126. <dl>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement