Menu
for example
in the index.html I read some cookies.
I make a function in the index file with these cookies.
on a sub.html file i want to execute a fuction that I made in the index.html
[i]Originally posted by itsmadmax [/i]
[B]for example
in the index.html I read some cookies.
I make a function in the index file with these cookies.
on a sub.html file i want to execute a fuction that I made in the index.html [/B][/QUOTE]
[i]Originally posted by itsmadmax [/i]
[B]in the index.html file I make a function that i want to use in every sub page because i do not want to type the same things there over and over again.
But the most important thing is that if 1 thing changes in the function I have to change it in all the sub pages.
see this and read after the script.
<script>
var fil = YouWrote;
function noaccesstore(){
if ( fil == 01 || fil == 02 || fil == 03 || fil == 04 || fil == 05 || fil == 06 || fil == 07 || fil == 08 || fil == 09 || fil == 41 || fil == 48 || fil == 45)
{
window.open("paggeentoegang.html", "example1", "width=270, height=80, left=50, top=60, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=no");
window.open("paghoofdmenu.html","left");
}
function noaccesoffice(){
if (fil == 48 }
window.open("paggeentoegang.html", "example1", "width=270, height=80, left=50, top=60, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=no");
window.open("paghoofdmenu.html","left");
}
function noaccesdepartment(){
if (fil == 45 }
window.open("paggeentoegang.html", "example1", "width=270, height=80, left=50, top=60, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=no");
window.open("paghoofdmenu.html","left");
}
</script>
*****************************************************
in a subpage(s) i want to say:
noaccesoffice()
In and other subpage(s) i want to say
noaccesstore() [/B][/QUOTE]
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 5">
<title>Welcome to Adobe GoLive 5</title>
<script language="javascript" src="code.js"></script>
</head>
<body bgcolor="#ffffff">
<p></p>
</body>
[i]Originally posted by itsmadmax [/i]
[B]ok i understand this but nothing seems to happen.
i did a test with a file code.js
in there i wrote these lines.
<script>
function test(){
window.open("open.txt")
}
</script>
nothing more and nothing less. I assume this is just a plain txt file with no other html stuff in it?
then i made a test.html
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 5">
<title>Welcome to Adobe GoLive 5</title>
<script language="javascript" src="code.js"></script>
</head>
<script>
test();
</script>
<body bgcolor="#ffffff">
<p></p>
</body>
</html>
but it does not work ? [/B][/QUOTE]
[i]Originally posted by itsmadmax [/i]
[B]YESSSSSSSS that worked....for this little test lol
Your good in this !!
BUT it did not yet for the password and cookie test...
but thats a thing i am going to find out tomorrow....(i hope)
its midnight here in Amsterdam
So thnx for now ? and maybe some help tomorrow [/B][/QUOTE]
0.1.9 — BETA 5.19