Question by Mani: All the javascripts on my website stopped working and maybe a minor mistake and please help me?
All the javascripts on my website stopped working while i’m editing my site but the html codes works fine. Please view the source code of my site and spot out the problem to me!
my website url http://wapmani.mywibes.com
Best answer:
Answer by Ratchetr
Open your site using FireFox, then open the Error Console window (Tools…Web Developer…Error Console, or just CTRL SHIFT J).
You have quite a few syntax errors:
Error: missing ) after argument list
Source File: http://wapmani.mywibes.com/
Line: 14, Column: 42
Source Code:
expireDate.setMonth(expireDate.getMonth() 6)
Error: missing ; before statement
Source File: http://wapmani.mywibes.com/
Line: 67, Column: 99
Source Code:
var message=”Did you remember to bookmark this page? If not, please go back and bookmark it now!” document.cookie=”test” var toalert=true var results=document.cookie.split(“;”) for (n=0;n<=results.length-1;n ){ if (results[n].substring(1,8)=='alerted'){ toalert=false break } } function bookmarkme(){ if (document.cookie!=''&&toalert){ alert(message) document.cookie="alerted=yes" } }
Error: missing ; before statement
Source File: http://wapmani.mywibes.com/
Line: 103, Column: 38
Source Code:
var cont=titles[MachoManRandomSavage] "
” descriptions[MachoManRandomSavage]
Error: syntax error
Source File: http://wapmani.mywibes.com/
Line: 127
Source Code:
var myimages=new Array()
Error: invalid XML markup
Source File: http://fastonlineusers.com/online.php?d=wapmani.mywibes.com
Line: 1
Error: page_counter is not defined
Source File: http://wapmani.mywibes.com/
Line: 151
Error: missing ) after argument list
Source File: http://wapmani.mywibes.com/
Line: 162, Column: 23
Source Code:
var re=new RegExp(Name “=[^;] “, “i”);
Error: missing ) after argument list
Source File: http://wapmani.mywibes.com/
Line: 218, Column: 417
Source Code:
var OSName=”Mobile”;if (navigator.appVersion.indexOf(“Win”)!=-1) OSName=”Windows”;if (navigator.appVersion.indexOf(“Mac”)!=-1) OSName=”MacOS”;if (navigator.appVersion.indexOf(“X11″)!=-1) OSName=”UNIX”;if (navigator.appVersion.indexOf(“Linux”)!=-1) OSName=”Linux”;if (navigator.appVersion.indexOf(“Android”)!=-1) OSName=”Android”;if (navigator.appVersion.indexOf(“Symbian”)!=-1) OSName=”Symbian”;document.write(‘OS: ‘ OSName);
Add your own answer in the comments!





© Copyright 2010-2012. Technology2Reality. All Rights Reserved