<
script
>
function addfavorite()
{
switch (getOs())
{
case 1 :window.external.addFavorite('http: // www.sosuo8.com','搜索吧');break;
case 2 :window.sidebar.addPanel('搜索吧', 'http: // www.sosuo8.com/', "");break;
case 0 :alert( " 您的浏览器也太牛了,我都不知道如何显示了。唉。 " ); break ;
}
}
function getOs()
{
if (navigator.userAgent.indexOf( " MSIE " ) > 0 ) return 1 ;
if (isFirefox = navigator.userAgent.indexOf( " Firefox " ) > 0 ) return 2 ;
if (isSafari = navigator.userAgent.indexOf( " Safari " ) > 0 ) return 3 ;
if (isCamino = navigator.userAgent.indexOf( " Camino " ) > 0 ) return 4 ;
if (isMozilla = navigator.userAgent.indexOf( " Gecko/ " ) > 0 ) return 5 ;
return 0 ;
}
</ script >
< a href = " Javascript:void(0) " onclick = " addfavorite() " > 把Web之路加入收藏 </ a >
function addfavorite()
{
switch (getOs())
{
case 1 :window.external.addFavorite('http: // www.sosuo8.com','搜索吧');break;
case 2 :window.sidebar.addPanel('搜索吧', 'http: // www.sosuo8.com/', "");break;
case 0 :alert( " 您的浏览器也太牛了,我都不知道如何显示了。唉。 " ); break ;
}
}
function getOs()
{
if (navigator.userAgent.indexOf( " MSIE " ) > 0 ) return 1 ;
if (isFirefox = navigator.userAgent.indexOf( " Firefox " ) > 0 ) return 2 ;
if (isSafari = navigator.userAgent.indexOf( " Safari " ) > 0 ) return 3 ;
if (isCamino = navigator.userAgent.indexOf( " Camino " ) > 0 ) return 4 ;
if (isMozilla = navigator.userAgent.indexOf( " Gecko/ " ) > 0 ) return 5 ;
return 0 ;
}
</ script >
< a href = " Javascript:void(0) " onclick = " addfavorite() " > 把Web之路加入收藏 </ a >