标签:c style class blog code java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 |
<script type= "text/javascript" > function add_favorite(a, title, url) { url = url || a.href; title = title || a.title; try { // IE window.external.addFavorite(url, title); } catch (e) { try { // Firefox window.sidebar.addPanel(title, url, "" ); } catch (e) { if (/Opera/.test(window.navigator.userAgent)) { // Opera a.rel = "sidebar" ; a.href = url; return
true ; } alert( ‘加入收藏失败,请使用 Ctrl+D 进行添加‘ ); } } return
false ; } function set_homepage(a, url) { var
tip = ‘您的浏览器不支持此操作\n请使用浏览器的“选项”或“设置”等功能设置首页‘ ; if (/360se/i.test(window.navigator.userAgent)) { alert(tip); return
false ; } url = url || a.href; try
{ a.style.behavior = ‘url(#default#homepage)‘ ; a.setHomePage(url); } catch (e) { alert(tip); } return
false ; } </script> |
标签:c style class blog code java
原文地址:http://www.cnblogs.com/jthb/p/3764821.html