dynamic teleprompter by joe ukpai | JavaScriptSource

dynamic teleprompter by joe ukpai

joe ukpai Jul 29, 2012

Abstract

very veery cool teleprompter. with file and text loading and script pasting options and with optional text color, font type, scrolling speed, background color and text size adjustments. it also has a pause and play button. but it works on Microsoft internet explorer,avant browser and crazy browser only.

Description

the form has two sections. the first section is if the script is in a text format or html format. all you do here is to click the browse button to locate the file. after that you check the checkbox labeled 'check if script uploaded'. the click the button labeled 'start'. the script or text document is loaded and scrolled automatically on the screen according to the settings you choose to display it from the included menu in the options. The second section of the form is for in case you want to write or paste your script or text..the text area will accommodate the script or text input you want to use. once thru you click on the checkbox labeled 'check if script pasted ' then click start to display the script, text or essay you want to display. your texts will display according to the settings you specify.very convenient to use but it works on Microsoft internet explorer,avant browser and crazy browser only.

Code Snippet

<html>
<script language=javascript>



//joeukpai@gmail.com

// JOE ISGOD
function teleprompt() {
x=document.all.joe.value


// jtwo checked
if (document.all.jtwo.checked==true && document.all.jone.checked==false)
{

y=document.all.joey.value

//processing input to remove tags

function Del(Word) {
a = Word.indexOf("<");
b = Word.indexOf(">");
len = Word.length;
c = Word.substring(0, a);
if(b == -1)
b = a;
d = Word.substring((b + 1), len);
Word = c + d;
tagCheck = Word.indexOf("<");
if(tagCheck != -1)
Word = Del(Word);
return Word;
}

{
ToCheck = y;
Checked = Del(ToCheck);
y = Checked;

} //end of processing input







document.write('<title>SM works</title>')
document.write('<center>')

document.write('<center><font id="jogod"><marquee id="joey" direction=up height=650 width=1200  scrollamount=1>',y,'</marquee>')

document.write(x)

}//end of jtwo checked

//if jone and jtwo checked or not checked
if ((document.all.jone.checked==true && document.all.jtwo.checked==true) || (document.all.jone.checked==false && document.all.jtwo.checked==false))
{alert('check one of the boxes')}

//if jone checked
if (document.all.jone.checked==true && document.all.jtwo.checked==false && document.all.tumuch.value != '')
{



var fso, ts;
joegod=document.all.tumuch.value
    
    fso = new ActiveXObject("Scripting.FileSystemObject");
   
    
    
    ts = fso.OpenTextFile(joegod)
s = ts.ReadAll();
  
    
  document.write('<center>')  
document.write('<font id="jogod"><marquee id="joey" scrollamount=1 direction=up height=500>',s,'</marquee>')
document.write('<title>SM works</title>')
document.write(x) 

}//end jone checked  


//if jone checked and uploadbox empyt
if (document.all.jone.checked==true && document.all.tumuch.value == '')
{alert('browse and select the required file type above')}






}//end of teleprompt
</script>

<title>SM works</title>








<center>
SM'S TELEPROMPTER


<form>

<br><br>

<pre>
only .txt, .html, .htm files are processed
<input type=file name=tumuch>

or

Load your script below<br>
<textarea name=joey cols=45% rows=10%> Paste or write your script here </textarea>      

<input type=checkbox name=jone> check if script uploaded
<input type=checkbox name=jtwo> check if script pasted </pre><br><br>
<input type=reset value=Clear><input type=button value=Start onClick=teleprompt()>
</form><pre>




<textarea name=joe cols=1% rows=1% input type=hidden>    










<script language=javascript>
function iam()
{
iamGod=document.all.master.selectedIndex;
powerfull=document.all.master.options[iamGod].value;

document.body.style.color=powerfull

}

function iam2()
{
iamGod2=document.all.master2.selectedIndex;
powerfull2=document.all.master2.options[iamGod2].value;

document.bgColor=powerfull2

}

function iam3() {
iamGod3=document.all.master3.selectedIndex;
powerfull3=document.all.master3.options[iamGod3].value;
document.body.style.font=powerfull3}


function setFontAttr(select) {
if (document.all && document.all.jogod) {
var choice = select.options[select.selectedIndex].value
if (choice) {
document.all.jogod.setAttribute(select.name, choice)
}
}

}// end of font attrr

function setMARQUEEAttr(select) {
if (document.all && document.all.joey) {
var choice = select.options[select.selectedIndex].value
if (choice) {
document.all.joey.setAttribute(select.name, choice)
}
}
}//end of marquee att

</script>

<pre>
scroll speed <select name="scrollAmount" onChange="setMARQUEEAttr(this)">
<option value="" selected="selected">sel
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">5
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10</select>  text face  <select name="face" onChange="setFontAttr(this)">
<option value="" selected="selected">sel
<option value="Helvetica">1
<option value="Times">2
<option value="Comic Sans MS, sans-serif">3
<option value="Courier, monospace">4
<option value="Zapf Dingbats, serif">5
<option value="Century Gothic">6
<option value="Agency FB">7
<option value="Algerian">8
<option value="Arial">9
<option value="Arial Rounded MT">10
<option value="Baskerville Old Face">11
<option value="Bauhaus 93">12
<option value="Bell MT">13
<option value="Berlin Sans FB">14
<option value="Bernard MT">15
<option value="Blackadder ITC">16
<option value="Bodoni MT">17
<option value="Bodoni MT Poster">18
<option value="Book Antiqua">19
<option value="Bookman Old Style">20
<option value="Bradley Hand ITC">21
<option value="Britannic">22
<option value="Broadway">23
<option value="Brush Script MT">24
<option value="Calibri">25
<option value="Californian FB">26
<option value="Calisto MT">27
<option value="Cambria">28
<option value="Candara">29
<option value="Castellar">30
<option value="Centaur">31
<option value="Century">32
<option value="Century Schoolbook">33
<option value="Chiller">34
<option value="Comic Sans MS">35
<option value="Colonna MT">36
<option value="Courier">37
<option value="Cooper">38
<option value="Curlz MT">39
<option value="DigifaceWide">40
<option value="Edwardian Script ITC">41
<option value="Gigi">42
<option value="Gill Sans">43
<option value="Jokerman">44
<option value="Lucida Handwriting">45
<option value="Magneto">46
<option value="Matura MT Script Capitals">47
<option value="Old English Text MT">48
<option value="Papyrus">49
<option value="Parchment">50

</select>   text color <select name=master onChange=iam()>
<option value="" selected="selected">sel
<option value="red">1
<option value="white">2
<option value="yellow">3
<option value="green">4
<option value="orange">5
<option value="purple">6
<option value="gold">7
<option value="chocolate">8
<option value="milk">9
<option value="blue">10
<option value="grey">11
<option value="#F5DEB3">12
<option value="#D8BFD8">13
<option value="#00FF7F">14
<option value="#87CEEB">15
<option value="#2E8B57">16
<option value="#4169E1">17
<option value="#B0E0E6">18
<option value="#FFDAB9">19
<option value="#98FB98">20
<option value="#000080">21
<option value="#00FA9A">22
<option value="#BA55D3">23
<option value="#FF00FF">24
<option value="#20B2AA">25
<option value="#90EE90">26
<option value="#E6E6FA">27
<option value="#ADD8E6">28
<option value="#CD5C5C">29
<option value="#00BFFF">30
<option value="#2F4F4F">31
<option value="#8B0000">32
<option value="#8B008B">33
<option value="#B8860B">34
<option value="#DC143C">35
<option value="#7FFFD4">36
<option value="#00FFFF">37
<option value="#FFE4C4">38
<option value="#8A2BE2">39
<option value="#7FFF00">40
<option value="#FFF8DC">41
<option value="#008B8B">42
<option value="#BDB76B">43
<option value="#9932CC">44
<option value="#483D8B">45
<option value="#FF1493">46
<option value="#B22222">47
<option value="#DCDCDC">48
<option value="#FF69B4">49
<option value="#F0E68C">50


</select>  body color <select name=master2 onChange=iam2()>
<option value="" selected="selected">sel
<option value="red">1
<option value="white">2
<option value="yellow">3
<option value="green">4
<option value="orange">5
<option value="purple">6
<option value="gold">7
<option value="chocolate">8
<option value="milk">9
<option value="blue">10
<option value="grey">11
<option value="#F5DEB3">12
<option value="#D8BFD8">13
<option value="#00FF7F">14
<option value="#87CEEB">15
<option value="#2E8B57">16
<option value="#4169E1">17
<option value="#B0E0E6">18
<option value="#FFDAB9">19
<option value="#98FB98">20
<option value="#000080">21
<option value="#00FA9A">22
<option value="#BA55D3">23
<option value="#FF00FF">24
<option value="#20B2AA">25
<option value="#90EE90">26
<option value="#E6E6FA">27
<option value="#ADD8E6">28
<option value="#CD5C5C">29
<option value="#00BFFF">30
<option value="#2F4F4F">31
<option value="#8B0000">32
<option value="#8B008B">33
<option value="#B8860B">34
<option value="#DC143C">35
<option value="#7FFFD4">36
<option value="#00FFFF">37
<option value="#FFE4C4">38
<option value="#8A2BE2">39
<option value="#7FFF00">40
<option value="#FFF8DC">41
<option value="#008B8B">42
<option value="#BDB76B">43
<option value="#9932CC">44
<option value="#483D8B">45
<option value="#FF1493">46
<option value="#B22222">47
<option value="#DCDCDC">48
<option value="#FF69B4">49
<option value="#F0E68C">50




</select>  text size <select name=master3 onChange=iam3()>
<option value="" selected="selected">sel
<option value="3">3
<option value="4">4
<option value="5">5
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10
<option value="11">11
<option value="12">12
<option value="13">13
<option value="14">14
<option value="15">15
<option value="16">16
<option value="17">17
<option value="18">18
<option value="19">19
<option value="20">20
<option value="21">21
<option value="22">22
<option value="23">23
<option value="24">24
<option value="25">25
<option value="26">26
<option value="27">27
<option value="28">28
<option value="29">29
<option value="30">30
<option value="31">31
<option value="32">32
<option value="33">33
<option value="34">34
<option value="35">35
<option value="36">36
<option value="37">37
<option value="38">38
<option value="39">39
<option value="40">40
</select></pre><input type=button onClick=document.all.joey.stop() value="Pause"> <input type=button onClick=document.all.joey.start() value="Play">   </textarea>

works on Microsoft internet explorer,avant browser and crazy browser only

designed by +234 8067127446  joe_ukpai@yahoo.com
</html>

Download

Download

Leave a Response

(0 comments)