赛迪网

新用户注册

赛迪社区

帮助

  新闻中心 | 关注 | 技术天地 | 软件特供 | IT财经 | 市场专家 | 互动学校 | DIY专区 | 新游戏客栈 | 媒体全文



相关文章

  最简单的发声Java小程序
  Visual J++常见问题解答
  Visual J++ 6.0做了哪些重要升级
  如何在Java中实现远程方法调用
  Applet加载Java应用程序







 当前页面位置: 主页: 技术天地: 模板源码: 技术文章

新闻滚动播出Java小程序
(作者: 2000年11月17日 10:01)

[程序语言] IE3, IE4, IE5, NS3, NS4+



[下载源程序] 立即下载


[运行平台] windows,nt



[源码来源] http://www.zdnet.com/devhead/resources/scriptlibrary/applets/navigation.html



[功能描述]

  该新闻滚动播出Java小程序可以从放在网络服务器上的文件读入数据,你还可以使用背景图象。



  以下为该数据文件的范例以及参数说明:



  # 参数:

  # @HEAD 必须。必须为新闻的第一个项目。可以多余一行。以如下的符号作为结束:

  #     @URL, @MSG, 或者 @END 标记

  # @URL 可选。一个URL将同新闻项目联系起来。如果用鼠标点取该项,则加载URL。必须在一行内。

  # @FRAME 可选。但是要先定义URL。

  # @MSG 必须。正文部分,可以多行。结束符号为@END标识。

  # @END 需要。表示新闻的结束。



  # Unicode has not been tried within any of these, but I imagine

  # it'd work.



  @HEADThis is a headline.

  @MSGAnd this is the message text.

  @END



  # Linked text

  @HEADThis is linked

  @URLhttp://www.io.com/~crackers/index.html

  @MSGThis is an example of linked text. It reloads the first page.

  @END



  # Frame target

  @HEADFrames!

  @URLHome.html

  @FRAMEfrmMain

  @MSGThis item uses the FRAME parameter. It'll reload the first page in this frame.

  @END



  # Real news

  @HEADActual News!

  @MSGNote for previous users: the HrefScroller class is gone. It's

  URL linking and mouse detection methods have been rolled into the

  Scroller class.

  @END



  # Java Boutique

  @HEADJava Boutique

  @URLhttp://javaboutique.internet.com/

  @MSGThis is one of my favorite places to look for applets and

  Java news. They were also kind enough to judge this thing was

  good enough to win a contest!

  @END



  # Long headline

  @HEADThis is an incredibly long headline. It's doubtful that

  you would want to do this, but the capability is there.

  @MSGOkay?

  @END



  # The End

  @HEADThe End

  @MSGThis is the last message. As soon as it's scrolled off,

  everything starts over again.

  @END



与CCIDNET联系
webmaster@ciw.com.cn