Javascript Line 1 Syntax error in IE

Can someone figure out what Line 1 syntax error is? I am trying to debug in IE6 and IE7 and cannot find the source of the problem.

http://ci.elfster.net/apps/game/tree/design.aspx

thanks

+3
source share
4 answers

Right after this line of comment:

<!-- Begin -  Site: Elfster.com Zone: 2008 Master Template Leaderboard -->

you are trying to embed javascript:

var src = 'http://ads.elfster.com/go/a.aspx?ZoneID=' + ZoneID + '&amp;Task=Get&amp;IFR=False&amp;PageID=27668&amp;SiteID=' + SiteID + '&amp;Random=' + browDateTime;

I have this way:

a.aspx ZoneId = 4 &? Task = Get & IFR = False & PageId = 27668 & SiteID = 1 & Random = 1250553113754

This URL returns HTML, not javascript, therefore you will get an error.

+7
source

javascript- http://jslint.com - , IE.

, - , ( ).

0

, IE :

document.getElementById('_ornamentSelectorsLeft').onclick = scrollPicsLeft;

scrollPicsLeft - (: ...)

, (, - , scrollPicsLeft), IE scrollPicsLeft, , , .

You might want to enable JavaScript debugging in IE and use Visual Studio to find out where IE hangs. (that I found your mistake)

0
source

jslint.com helped me find some IE bug. I wanted to declare a constant variable with const indentifier = value, but this function is still not supported by IE.

0
source

Source: https://habr.com/ru/post/1715379/


All Articles