提示特效打字效果
<html><head><title></title>
<script language=javaScript> <!-- Beginning of JavaScript -
// CREDITS: // PopupTicker describing all your links onmouseover by Urs Dudli and Peter Gehrig // Copyright (c) 2000 Peter Gehrig and Urs Dudli. All rights reserved. // Permission given to use the script provided that this notice remains as is. // Additional scripts can be found at http://www.24fun.com. // info@24fun.ch // 8/1/2000
// IMPORTANT: // If you add this script to a script-library or a script-archive // you have to insert a link to http://www.24fun.com right into the webpage where the script // will be displayed.
// CONFIGURATION: // Go to http://www.24fun.com, open category 'text' and download the ZIP-file of this script // containing the the script-file with step-by-step instructions for easy configuration.
// width of the ticker var tickerwidth=120
// height of the ticker var tickerheight=100
// distance from the messagetext to the tickermarrgin (pixels) var tickerpadding=5
// borderwidth of the ticker (pixels) var borderwidth=2
// font-family var fnt="Verdana"
// font-size of the text var fntsize=8
// font-size of the last letter of the ticker var fntsizelastletter=8
// font-color of the text var fntcolor="008800"
// font-color of the last letter of the ticker var fntcolorlastletter="00AA00"
// font-weight. Set a value between 1 to 9 to adjust the boldness var fntweight=3
// backgroundcolor var backgroundcolor="CCFFCC"
// standstill between the messages (microseconds) var standstill=2000
// speed (a higher value will slow down the ticker) var speed=40
// horizontal distance from the textlink to the popupbox (pixels) var xdistance=50
// vertical distance from the textlink to the popupbox (pixels) var ydistance=20
// Do not edit the variables below var timer var topposition=0 var leftposition=0 var x,y var i_substring=0 var i_presubstring=0 var i_message=0 var message var messagecontent="" var messagebackground="" var messagepresubstring="" var messageaftersubstring="" fntweight=fntweight*100
function getmessagebackground() { messagebackground="<table border="+borderwidth+" width="+tickerwidth+" height="+tickerheight+" cellspacing=0 cellpadding=0><tr><td valign=top bgcolor='"+backgroundcolor+"'>" messagebackground+=" </td></tr></table>" }
function getmessagecontent() { messagecontent="<table border=0 cellspacing=0 cellpadding="+tickerpadding+" width="+tickerwidth+" height="+tickerheight+"><tr><td valign=top>" messagecontent+="<span style='position:relative; font-family:"+fnt+";color:"+fntcolor+";font-size:"+fntsize+"pt;font-weight:"+fntweight+"'>" messagecontent+="<font color='"+fntcolor+"'>" messagecontent+=messagepresubstring
|