Sub Menu
Links Menu
Online Users

In total there are 311 users online :: 3 registered, 0 hidden and 308 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot] based on users active over the past 60 minutes

COOL Typing 'on the fly' Scrolling Text

This forum contains member submitted mods and hacks for IntegraMOD/IM Portal versions

*please read the "Read Me" post*

Moderator: Integra Moderator

COOL Typing 'on the fly' Scrolling Text

PostAuthor: tattee » Fri May 23, 2008 7:05 pm

I came across this little .script and implemented it into my index page.. its a nice addition I thought I'd share with you.. the java.script coding was way outdated so I updated the variables and got it working on ie and firefox.

heres a sample page I set up for you guys to see..
Code: Select all
http]

the typing is all configurable and you can add as many lines as you want.

heres the .script.. (change the bgcolor and text color to suit your site)

[code]  <script>  /*Typing Scroller*/  //Secify scroller contentsvar line=new Array()line[1]="    Good Evening Ma'am..   Sir"line[2]="          Welcome to the Bar    "line[3]="           May I Serve You...    "line[4]="                     Martini's?        "line[5]="             Shakin' or Stirred?   "line[6]="Of Course... Coming Right Up"  //Specify font size for scollervar ts_fontsize="16px"  //--Don't edit below this line  var longestmessage=1for (i=2;i<line>line[longestmessage].length)longestmessage=i}  //Auto set scroller widthvar tscroller_width=line[longestmessage].length  lines=line.length-1 //--Number of lines  //if IE 4+ or NS6if (document.all||document.getElementById){document.write('<form>')document.write('<input type="text" name="banner" size="'+tscroller_width+'"')document.write('  style="background-color] & temp.length==line[nextline].length & nextline!=lines){nextline++;nextchar=-1;document.bannerform.banner.value=temp;temp="";setTimeout("nextstep()",2000)}else if (nextline==lines & temp==line[nextline] & temp.length==line[nextline].length){nextline=1;nextchar=-1;document.bannerform.banner.value=temp;temp="";setTimeout("nextstep()",2000)}else{nextstep()}}  function nextstep(){  if (cursor=="\"){cursor="|"}else if (cursor=="|"){cursor="/"}else if (cursor=="/"){cursor="-"}else if (cursor=="-"){cursor="\"}    nextchar++;temp+=line[nextline].charAt(nextchar);document.bannerform.banner.value=temp+cursorsetTimeout("animate()",45)}  //if IE 4+ or NS6if (document.all||document.getElementById)window.onload=animate  </script>    


place that anywhere within the BODY of your page and it shows up nicely..
Enjoy
Last edited by tattee on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GIT/CS/CM d-(++) s+: a+45 C++(++++) UB+++;++++ P++ L- E--- W+++ N+ o++ K- !w O-
M--(-) V- PS+ PE Y !PGP t-(+++) 5++ X- R tv- b++ DI+ D+++ G+++ e+;++++ h* !r !y
------END GEEK CODE BLOCK------
User avatar
tattee
Members
Members
 
Posts: 47
Likes: 0 post
Liked in: 0 post
Joined: Tue Sep 12, 2006 12:36 am
Cash on hand: 0.00

Return to Mods/Hacks

Who is online

Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot]

cron