/    Sign up×
Community /Pin to ProfileBookmark

help with object expected

it goes about the page

[url]http://musicyid.5u.com/index.html[/url]

and you can view the code at

[url]http://musicyid.5u.com/code.html[/url]

I dont know why it doesnt work

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@stymieFeb 27.2005 — <i>
</i>function sivamtime() {
var hour1 = 10;
var min1 = 10;
var sec1 = 10;
[color=red]var straddr = "&lt;!--#echo var="DATE_LOCAL"--&gt;";[/color]
var sec = (straddr.charAt(straddr.length - 6) +
straddr.charAt(straddr.length - 5));
......


Try using single quotes to enclose 'DATE_LOCAL'
Copy linkTweet thisAlerts:
@herodote92Feb 27.2005 — Looks like there are lots of syntax errors in it.

This for ex could be better:
<i>
</i>var straddr = "&lt;"+"!--#echo var='DATE_LOCAL'--"+"&gt;";


But then there are more errors around line 137 with "counter" and braces not matching.

Try using Netscape Tools / Web Development / Javascript Console for more information. It gives you rather acute help about syntax errors.
Copy linkTweet thisAlerts:
@David_HarrisonFeb 27.2005 — Looks to me like that's some server-side code to dump the date in there and your host doesn't support any server-side languages. Not sure but it looks a bit like PHP to me, though for PHP I would have thought it should be more like this:&lt;?php echo $DATE_LOCAL ?&gt;Not that it matters, probably won't work anyway.
Copy linkTweet thisAlerts:
@rnbyauthorFeb 27.2005 — the date works because when i have only the part of the time than it displays the servertime.

and i convert the time in the script to variable
×

Success!

Help @rnby 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 5.9,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...