Hi Guys,
Im using javascript with php, and all is going well, but i’m trying to tidy my code I have this which works great:
[code]
tickercontent[0]='<?
// php select statement
?>
<img class=”mainStoryImage” src=”<? echo $parentSite; ?><?echo $topImagepic; ?>” alt=”Top <? echo $sectionName; ?> story” /><p class=”topstory”><a href=”<? echo $fullURL; ?>articles/1/<? echo $topID; ?>” title=”View Article”><? echo $topHeadline; ?></a></p>’
But I want to put the html on two lines like so:
[code]
tickercontent[0]='<?
// php select statement
?>
<img class=”mainStoryImage” src=”<? echo $parentSite; ?><?echo $topImagepic; ?>” alt=”Top <? echo $sectionName; ?> story” />
<p class=”topstory”><a href=”<? echo $fullURL; ?>articles/1/<? echo $topID; ?>” title=”View Article”><? echo $topHeadline; ?></a></p>’
However the Javascript then stops working. How can I break the lines?
Thanks
Chris