/    Sign up×
Community /Pin to ProfileBookmark

need another level of quotations…or something

Hi everyone – I am fairly new with javascript and am trying to make a news scroller work. I got the code from a free site and the scrolling messages are clickable. Here’s my problem: whoever made the code only made the links to go directly to the url. I am trying to add a window.open to the link to have it open in a separate new window but its not working. I think it is because of the nature of the quotations. I have at least three levels in the link and only two types of quotations (” and ‘). Here is the link to the script. The problem occurs at line 12 in the “messages” array.
[url]http://www.billyzane.com/TESTING/Scripts/news_scroller.js[/url]
Any suggestions on fixing this problem (or another way around it) would be greatly appreciated.
Thanks!

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @whitney555 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...