Im trying to make a small news bulletin that other website owners can copy
to their websites
But my problem is that im not good at java.
I have 2 problems:
1. how do i make a line break in the
news[1]="bla bla bla";
So it would appear as
bla bla
bla
2. how do i make a link in
document.write(news[1]);
so it would appear
link bla bla bla
The file is called news.js
***********
news=new Array;
news[1]="bla bla bla";
news[2]="blu blu";
news[3]="bly bly";
news[4]="bla blo";
news[5]="blo bla";
function Shownews() {
document.write(news[1]);
document.write(news[2]);
document.write(news[3]);
document.write(news[4]);
document.write(news[5]);
}
**************
This is what i want other website owners to place on their sites.
*************
<script type="text/javascript" src="news.js"></script>
<script type="text/javascript">
Shownews();
*************