Click to See Complete Forum and Search --> : Random text question???


cscartman
02-15-2003, 06:03 PM
i have a code but i cant seam to get it to work with the word verses because its a script that im makeing for random verses and i use the quotes but when i use verese it wont work it has errors heres the code im trying to take the word quote and make it verses is that possible?




var quotes=new Array()

//To add more copy and paste one and rename the [with the next number]
//Copy right cody selzer

quotes[0]='A man's life consisteth not in the abundance of the things which

he possesseth.<i>-Luke 12:15.</i>'

quotes[1]='Therefore being jusified by faith we have peave God through our

Lord Jesus Christ<i>-Rom. 5:1</i>'

quotes[2]='If riches increase, set not your heart upon them.<i>-Ps.

62:10</i>'

quotes[3]='Meditate upon these things: give thyself wholly to them; that thy

profiting may apear to all.<i>-1 Tim 4:15</i>'

quotes[4]='But the mercy of the Lord is from everlasting upon them that fear

him, and his righteusness upon children's children.<i>-Ps. 103:17</i>'

quotes[5]='What things were gain to me, those I counted loss for

Christ.<i>-Phil. 3:7</i>'

quotes[6]='His compassions fail not. They are new every morning: great is thy

faithfulness.<i>-Lam. 3:22,23</i>'

quotes[7]='Upon the first of the week let every one of you lay by him in

store, as God hath prospered him.<i>-1 Cor. 16:2</i>'

quotes[8]='Neither is there salvation in any other; for there is none other

name under heaven given admong men, whereby we must be saved.<i>-Acts

4:12</i>'

quotes[9]='Blessed is the man whom thou chatenest, O Lord, and the teachest

him of thy law.<i>-Ps. 94:12</i>'

quotes[10]='And when they had lifted up their eyes, they say no man, save

Jesus only.<i>-Matt. 17:8</i>'

quotes[11]='Whosever will save his life shall loose it: and whosever will

lose his life for my sake shall find it.<i>-Matt. 16:25</i>'

quotes[12]='He brought me up also out of an horrible pit, out of the miry

clay,and set my feet upon a rock,and established my goigs.<i>-Ps. 40:2</i>'

quotes[13]='But we beholding as in a glass the glory of the Lord, are changed

into the same image<i>-2 corinthians 3:18</i>'

quotes[14]='He shall see of the travail of his soul,and shall be

satified.<i>-Isa.53:11</i>'

quotes[15]='At the commandment of the Lord they rested in the tens , and at

the commandment of the Lord the journed.<i>-Num.9:23</i>'

quotes[16]='text<i>-The verse</i>'

quotes[17]='text<i>-The verse</i>'

quotes[18]='text<i>-The verse</i>'

quotes[19]='text<i>-The verse</i>'

quotes[20]='text<i>-The verse</i>'

quotes[21]='text<i>-The verse</i>'

quotes[22]='text<i>-The verse</i>'


quotes[23]='text<i>-The verse</i>'

quotes[24]='text<i>-The verse</i>'

quotes[25]='text<i>-The verse</i>'

quotes[26]='text<i>-The verse</i>'

quotes[27]='text<i>-The verse</i>'

quotes[28]='text<i>-The verse</i>'

quotes[29]='text<i>-The verse</i>'

quotes[30]='text<i>-The verse</i>'

var whichquote=Math.floor(Math.random()*(quotes.length))
document.write(quotes[whichquote])

Dan Drillich
02-15-2003, 06:49 PM
Please try -

var quotes=new Array()

//To add more copy and paste one and rename the [with the next number]
//Copy right cody selzer

quotes[0]="A man's life consisteth not in the abundance of the things which he possesseth.<i>-Luke 12:15.</i>"

quotes[1]='Therefore being jusified by faith we have peave God through our Lord Jesus Christ<i>-Rom. 5:1</i>'

quotes[2]='If riches increase, set not your heart upon them.<i>-Ps. 62:10</i>'

quotes[3]='Meditate upon these things: give thyself wholly to them; that thy profiting may apear to all.<i>-1 Tim 4:15</i>'

quotes[4]="But the mercy of the Lord is from everlasting upon them that fear him, and his righteusness upon children's children.<i>-Ps. 103:17</i>"

quotes[5]='What things were gain to me, those I counted loss for Christ.<i>-Phil. 3:7</i>'

quotes[6]='His compassions fail not. They are new every morning: great is thy faithfulness.<i>-Lam. 3:22,23</i>'

quotes[7]='Upon the first of the week let every one of you lay by him in store, as God hath prospered him.<i>-1 Cor. 16:2</i>'

quotes[8]='Neither is there salvation in any other; for there is none other name under heaven given admong men, whereby we must be saved.<i>-Acts 4:12</i>'

quotes[9]='Blessed is the man whom thou chatenest, O Lord, and the teachest him of thy law.<i>-Ps. 94:12</i>'

quotes[10]='And when they had lifted up their eyes, they say no man, save Jesus only.<i>-Matt. 17:8</i>'

quotes[11]='Whosever will save his life shall loose it: and whosever will lose his life for my sake shall find it.<i>-Matt. 16:25</i>'

quotes[12]='He brought me up also out of an horrible pit, out of the miry clay,and set my feet upon a rock,and established my goigs.<i>-Ps. 40:2</i>'

quotes[13]='But we beholding as in a glass the glory of the Lord, are changed into the same image<i>-2 corinthians 3:18</i>'

quotes[14]='He shall see of the travail of his soul,and shall be satified.<i>-Isa.53:11</i>'

quotes[15]='At the commandment of the Lord they rested in the tens , and at the commandment of the Lord the journed.<i>-Num.9:23</i>'

quotes[16]='text<i>-The verse</i>'

quotes[17]='text<i>-The verse</i>'

quotes[18]='text<i>-The verse</i>'

quotes[19]='text<i>-The verse</i>'

quotes[20]='text<i>-The verse</i>'

quotes[21]='text<i>-The verse</i>'

quotes[22]='text<i>-The verse</i>'


quotes[23]='text<i>-The verse</i>'

quotes[24]='text<i>-The verse</i>'

quotes[25]='text<i>-The verse</i>'

quotes[26]='text<i>-The verse</i>'

quotes[27]='text<i>-The verse</i>'

quotes[28]='text<i>-The verse</i>'

quotes[29]='text<i>-The verse</i>'

quotes[30]='text<i>-The verse</i>'

var whichquote=Math.floor(Math.random()*(quotes.length))
document.write(quotes[whichquote])

cscartman
02-15-2003, 07:31 PM
thanx i desided to make it in php i thought it would be a little easier to right them in there thanx alot though