Help with Java Scripting

PHWeb

Member
Joined
Aug 30, 2006
Messages
19
Reaction score
0
Location
Wtb, SA
Hi, I hope someone can help me. I need to know how to represent an ' in text mode in java
for example:

<SCRIPT LANGUAGE="JavaScript">
<!--
function rotateEvery(sec)
{
var Quotation=new Array()

// QUOTATIONS
Quotation[0] = ' Quotation 1';
Quotation[1] = ' Bla bla bla';
Quotation[3] = ' It's a beutifull day';

now the problem with this is that it does not accept quotation 3 it's, because java thinks I have ended the quotation
How can I make this work. :confused:
 
add a / infront of the '

ie: It/'s

Let me know if that works, try putting the slash the other way too.
 
I knew it was something easy. It Works when you use the use the slash the other way round, Thanx, you have been a great help
 
Top
Sign up to the MyBroadband newsletter
X