Zou iemand kunnen kijken wat ik fout heb gedaan ?
Hij geeft een error en ik wete niet waar het hem in zit !
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> |