Tutorials to .com

Tutorials to .com » Asp » Encoding » A JavaScript program so cool song search the MID player [IE] (JS)

A JavaScript program so cool song search the MID player [IE] (JS)

Print View , by: iSee ,Total views: 6 ,Word Count: 1365 ,Date: Thu, 28 May 2009 Time: 2:11 AM

html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
song <title> MID device </ title>
<style>. f (font-size: 9pt; width: 190pt) </ style>
<script>
/ / Program design rainbow rain
path = "http://card4.yinsha.com/midi/"
var stext = new Array ()
stext [0] = 'angels we have heard on high'
stext [1] = 'away in a manger'
stext [2] = 'beginning to look a lot like christmas'
stext [3] = 'carol bells'
stext [4] = 'chestnuts roasting on an open fire'
stext [5] = 'deck the halls'
stext [6] = 'do you hear what i hear'
stext [7] = 'frosty'
stext [8] = 'god rest ye merry gentlemen'
stext [9] = 'grandma got run over'
stext [10] = 'happy christmas'
stext [11] = 'hark the herald angels sing'
stext [12] = 'have a holly jolly christmas'
stext [13] = 'holy night'
stext [14] = 'i saw mommy kissing santa claus'
stext [15] = 'jingle bells'
stext [16] = 'the first noel'
stext [17] = 'the holly and thi iny'
stext [18] ='101 times to marry him '
stext [19] = 'Ah lam diary'
stext [20] = 'Alhambra Palace memories'
stext [21] = 'Argentina Do not cry for me'
stext [22] = 'Arab dancing girl'
stext [23] = 'Arab Qi Qu think'
stext [24] = 'Aladdin'
stext [25] = 'The Legend of Asturias'
stext [26] = 'love of the future'
stext [27] = 'love carefully'
stext [28] = 'Love Call'
stext [29] = 'love fire not'
stext [30] = 'love it re-'
stext [31] = 'love it re-'
stext [32] = 'love you forever'
stext [33] = 'love you must be happy'
stext [34] = 'love you Ten thousand years'
stext [35] = 'love you so stupid'
stext [36] = 'love to study'
stext [37] = 'eager to win through struggle'
stext [38] = 'love the White Paper'
stext [39] = 'love story'
stext [40] = 'love puppet'
stext [41] = 'love video art show'
stext [42] = 'love'
stext [43] = ''
stext [44] = 'fell in love with a person who does not go home'
stext [45] = ''
stext [46] = 'love me to life'
stext [47] = 'love my people and I love'
stext [48] = 'I love you'
stext [49] = 'endless love'
stext [50] = ''
stext [51] = '2'
stext [52] = 'love and worry'
stext [53] = 'Anne'
stext [54] = 'sweet-scented osmanthus in August over open'
stext [55] = ''
stext [56] = 'Brazil Waltz'
stext [57] = 'New Year'
stext [58] = 'a single heart'
stext [59] = 'between'
stext [60] = 'Judge'
stext [61] = 'sad Juliet'
stext [62] = 'sad Juliet'
stext [63] = 'north of the wolf'
stext [64] = ''
stext [65] = 'Beijing'
stext [66] = 'passive'
stext [67] = 'Peter and the Wolf'
stext [68] = 'change of heart wings'
stext [69] = 'Do not love me'
stext [70] = 'Do not worry I am sad'
stext [71] = 'Do not let the love dilemma'
stext [72] = 'Do not I hate you'
stext [73] = 'Do not let my last to know'
stext [74] = 'Do not ask me who'
stext [75] = 'Do not think I understand'
stext [76] = ''
stext [77] = 'Brandenburg Concertos'
stext [78] = 'is not going to cry in front of you'
stext [79] = 'impossible task'
stext [80] = 'not old legends'
stext [81] = 'can not love'
stext [82] = 'no more than love'
stext [83] = 'do not delay do not'
stext [84] = 'Do not say to him'
stext [85] = 'Do not care about who I am'
stext [86] = 'unconsciously think of you'
stext [87] = 'mine Dance'
stext [88] = 'step by step'
stext [89] = ''
stext [90] = 'picking Chasing After Butterflies'
stext [91] = 'touching'
stext [92] = 'Great Wall'
stext [93] = 'long stream ever'
stext [94] = 'night more romantic'
stext [95] = 'Superman'
stext [96] = 'city of the moon'
stext [97] = 'orange road'
stext [98] = 'naked'
stext [99] = 'red open all'
stext [100] = 'First Love'
stext [101] = 'first love'
stext [102] = 'off'
stext [103] = 'out of Lotus'
stext [104] = 'Chu Liu Xiang'
stext [105] = 'all benefit'
stext [106] = 'Legend'
stext [107] = 'Riverboat'
stext [108] = 'disperse to your dreams left behind'


stt = 0
k = 0
var otxt = new Array ()
otxt [0 ]='[>] '
otxt [1 ]='[>>] '
otxt [2] = '[>>]'
otxt [3] = '[>>]'
otxt [4] = '[>>]'
otxt [5] = '[>>]'
otxt [6] = '[>>]'
otxt [7] = '[>>]'
otxt [8] = '[>]'
function findc (obj) (
j = 1
for (i = 0; i <stext.length; i + +) (
temp = "" + stext [i]
if (temp.indexOf (obj.find.value)! =- 1)
(
var no = new Option ()
no.value = stext [i]
no.text = stext [i]
obj.music.options [j + +] = no
)
)
obj.music.options.length = j
obj.midopen.value = ""
obj.txt.value = "find the song a total of" + obj.music.options.length + "first"
)


function auto (obj) (
if (obj.midopen.value == "stop playing") (
clearInterval (stt)
obj.midopen.value = "play song"
midon = document.mid.dynsrc
document.mid.dynsrc = "about: blank"
) else (
clearInterval (stt)
obj.midopen.value = "stop playing"
document.mid.dynsrc = midon
obj.txt.value = "first" + obj.music.selectedIndex + "first title is:" + mid
stt = setInterval ( "atxt ()", 200)
)
)
function x (obj) (
mid = obj.music.options [obj.music.selectedIndex]. value;
if (mid !=""){
clearInterval (stt)
document.mid.dynsrc = "about: blank"
obj.midopen.value = "stop playing"
document.mid.dynsrc = path + mid + ". mid";
obj.txt.value = "first" + obj.music.selectedIndex + "first title is:" + mid
stt = setInterval ( "atxt ()", 200)
)
)
function atxt () (
k + +
if (k == otxt.length) k = 0
document.forms [0]. otx.value = otxt [k]
)
</ script>
<link rel="stylesheet" href="../hy.css">
</ head>

<body background="../gif/mbg.gif" bgcolor="#FFFFFF">

<form>
<div align="center">
<center>
<table border="0" bgcolor="#FCE01B" cellspacing="5">
<tr>
<td> <table border = "1" bordercolorlight = "# 000000" cellspacing = "0" bordercolordark = "# FFFFFF"
background ="../ gif / tb.gif ">
<tr>
Rainbow <td> <font color="#FF0000"> player MID drizzle </ font> </ td>
</ tr>
<tr>
<td>

<input type = "button" value = "Quick Search" onclick = "findc (this.form)" style = "background-image: url
('../ gif / tb.gif ') ">

Song name: <input type="text" name="find" size="20"> [Rainbow Rain Design]

</ td>
</ tr>
<tr>
<td>

<p> <input type = "button" value = "" onclick = "auto (this.form)" name = "midopen"
style = "background-image: url ('../ gif / tb.gif')">< img name =" mid "dynsrc =" about: blank "width =" 1 "
height = "1">
<script>
document.write ( "<select size=1 name=music onChange=x(this.form) class=f>")
document.write ( "<option value=\"\"> choice of music")
for (i = 0; i <stext.length; i + +) document.write ( "<OPTION value=\""+stext[i]+"\">" + stext [i])
document.write ( "</ select>")
</ script> </ p>

</ td>
</ tr>
<tr>
<td> <input type="text" name="otx" size="10" onFocus="blur()"> <input type = "text" name = "txt" size = "40"
onFocus = "blur ()"></ td>
</ tr>
</ table> </ td>
</ tr>
</ table>
</ center>
</ div>
</ form

</ body>

</ html>


Asp Script encoding Articles


Can't Find What You're Looking For?


Rating: Not yet rated

Comments

No comments posted.