Compatible with FFIE adds favorites

xiaoxiao2021-04-06  277

Occasionally on a foreign station, favorite:

The script code is as follows:

<

Script

Type

= "Text / JavaScript"

>

FUNCTION

Addbookmark () {

VAR

Nome_sito

=

"

NAPYFAB.COM

"

;

VAR

URL_SITO

=

"

http://www.napyfab.com

"

;

IF

((Navigator.Appname)

==

"

Microsoft Internet Explorer

"

)

&&&&

(PARSEINT (Navigator.AppVersion)

> =

4

)) WINDOW.EXTERNAL.ADDFAVORITE (URL_SITO, NOME_SITO);

Else

IF

(Navigator.Appname

==

"

Netscape

"

) WINDOW.SIDEBAR.ADDPANEL (Nome_sito, URL_SITO, '');

Else

Alert

"

Sorry! Cann't Add this site to your favorite !.

"

}

Script

>

The calling method is as follows:

<

a

HREF

= "#"

Onclick

= "Addbookmark ()"

>

Add to Favorites

a

>

转载请注明原文地址:https://www.9cbs.com/read-132349.html

New Post(0)