JavaScript - Geeft ' Syntax Erro' Line 1

Pagina: 1
Acties:
  • 40 views sinds 30-01-2008

  • BPG908
  • Registratie: Oktober 2001
  • Laatst online: 15-07 14:01

BPG908

Ik ben bijna jarig !

Topicstarter
Zou iemand kunnen kijken wat ik fout heb gedaan ?
Hij geeft een error en ik wete niet waar het hem in zit !
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<script language="JavaScript"> 
<!--  
//frequency cap, pop-up per number of hours
var frequencyCap = 0.0; //hours 
function setCookie(cookieName,cookieValue, expirehours) {

  if (frequencyCap > 0){
    var today = new Date();
    var expire = new Date();
     expire.setTime(today.getTime() + 3600000 * frequencyCap);
     document.cookie = cookieName+"="+escape(cookieValue)
             + ";expires="+expire.toGMTString();
  }else{
     document.cookie = cookieName+"="+escape(cookieValue);
  }


}
function ReadCookie(cookieName) {
 var theCookie=""+document.cookie;
 var ind=theCookie.indexOf(cookieName);
 if (ind==-1 || cookieName=="") return ""; 
 var ind1=theCookie.indexOf(';',ind);
 if (ind1==-1) ind1=theCookie.length; 
 return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
}
if (ReadCookie('PayPopupAds') != 'yes')  
{ 
 setCookie('PayPopupAds','yes', frequencyCap); 
//Pop-Up Code Here
 document.write('<SCRI'+'PT LANGUAGE="JavaScript1.1" '); 
 document.write(' SRC="http://www.print-songteksten.nl/pop_leukestart.htm">'); 
 document.write('</SCR'+'IPT>'); 
//Pop-Up Code End
} 

// --> 
</script>

  • Janoz
  • Registratie: Oktober 2000
  • Laatst online: 28-08 12:00

Janoz

Moderator Devschuur®

!litemod

Helaas, zo werkt dat hier niet.
1. Topic als 'Dit is mijn source en het werkt niet' zijn niet de bedoeling hier. Dat zul je wat specefieker moeten aangeven.
2. Javascript hoort niet in P&W, maar in W&G.

Ik raad je aan ff de faq en/of quickstart te lezen.

Ken Thompson's famous line from V6 UNIX is equaly applicable to this post:
'You are not expected to understand this'


Dit topic is gesloten.