<script type="text/javascript">function addToFavorite(obj) { var url = "http://www.weiduduan.com/"; var title = "淄博安泽特气有限公司"; var ua = navigator.userAgent.toLowerCase(); if (ua.indexOf("360se") >
javascript添加到收藏夹写法 <pre>function addFavorite2() { var url = window.location; var title = document.title; var ua = navigator.userAgent.toLowerCase(); if (ua.indexOf("360se") > -1) { alert("由于360浏览器功能限制,请按 Ctrl+D 手动收藏!"); } else
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Typ
function AddToFavorites() { var title = document.title; var url = location.href; if (window.sidebar) // Firefox window.sidebar.addPanel(title, url, ''); else if(window.opera && window.print) // Opera { var elem = document.createElement('a'); elem.
工作需要了解了一下点击加入收藏这个功能 <script> function _addFavorite() { var url = window.location; //获取当前网页网址 var title = document.title; //获取当前网页标题 var ua = navigator.userAgent.toLowerCase(); //获取当前浏览器 //判断浏览器版本 if (ua.indexOf("360se") > -1) { alert(&q