在Flash中添加“设为首页”、“加为收藏”?

      网页设计 2004-8-15 2:29
  在Flash中实现“设为首页”和“加为收藏”功能是使用Get URL结合javascript来实现的。

  设为首页代码:

on (release) {
getURL("javascript:void(document.links[0].style.behavior='url(#default#homepage)');void document.links[0].setHomePage('http://www.purple-vine.com/');", "_self", "POST");
}

  加为收藏代码:

on (release) {
getURL("javascript:window.external.AddFavorite('http://www.purple-vine.com/','紫藤文学社')");
}
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}