[SingleMessageExpander]

Dieses Script gibt eine einzelne Nachricht aus.

[Code]

[zwischen <HEAD> und </HEAD>]

<style type=text/css>
.tabc { font-weight:bold; font-size:12px; text-align:center; font-family:Arial; color:navy;}
.tajc { font-weight:bold; font-size:12px; text-align:left; font-family:Arial; color:navy;}
</style>
<!--Goes between & tags
================================== -->
<script language="JavaScript">
//************************************
//* http://members.rogers.com/bazil/ *
//* Vasile Birsan/Barsan *
//************************************
//width of the Expander in pixels: set to your own;
var dwidth=250;
//height of the Expander in pixels: set to your own;
var dheight=40;
//speed: the higher the slower - set your own!
var dspeed=100;
//1.Background color: could be like: "#ffff00" or "yellow";
//set it "" for no background color;
var dbcolor="aqua";

//Inside any message you MUST use \' in lieu of ';
mesaj='Message Expander displays character by character from left to right or center out.';

var jj=-1;
function iens6exp(){
if(jj==-1){
exptxt='';
iens6div.innerHTML=exptxt;}
jj++;
if(jj<=mesaj.length){
exptxt+= mesaj.charAt(jj);
iens6div.innerHTML='<div class=tajc>'+exptxt+"_"+'</div>';
setTimeout("iens6exp()",dspeed);}}
function ns4exp(){
if(jj==-1){
exptxt='';
ns4div.document.write(exptxt);ns4div.document.close();}
jj++;
if(jj<=mesaj.length){
exptxt+=mesaj.charAt(jj);
ns4div.document.write('<div class=tajc>'+exptxt+"_"+'</div>');
ns4div.document.close();
setTimeout("ns4exp()",dspeed);}}
function startexp(){
if(document.getElementById){
iens6div=document.getElementById('expdiv');
iens6exp();}
else if(document.all){
iens6div=expdiv;iens6exp();}
else if(document.layers){
ns4div=document.ns4expb0.document.ns4expb1;ns4exp();}}
</script>

[IN den <BODY> Tag]

onload="startexp();"

[zwischen <BODY> und </BODY>]

<table border=1 CELLSPACING="0" align="center" CELLPADDING="0"><tr><td width=250>
<script language="JavaScript">if(document.all||document.getElementById){
document.write('<div id="expdiv" style="position:relative;width:'+dwidth+';height:'+dheight+';background-color:'+dbcolor+';"></div>');
}</script>
<ilayer id="ns4expb0" width=&{dwidth}; height=&{dheight}; bgcolor=&{dbcolor};>
<layer id="ns4expb1" width=&{dwidth}; height=&{dheight};></layer></ilayer></td></tr></table>

[Autor]

Vasile Birsan/Barsan

[Download]

Kopieren Sie bitte den Code

Copyright © 1998- Nightfire Webworker Archiv Script No: 449