Forum Moderators: open

Message Too Old, No Replies

autoloading multiple Iframes

         

supermanjnk

1:16 am on Jul 12, 2004 (gmt 0)

10+ Year Member



<?
if (isset($_COOKIE["testcookie"]))
{
setcookie("testcookie", test, time()-86400);
}
?>

<HTML>
<TITLE>Load Two in One (Frames)</TITLE>
<HEAD>
<SCRIPT>
<!--
function twoinone(nr){
if (nr==1){
parent.banner.location.href="jv_2i1c.html"
parent.display.location.href="jv_2i1b.html"
}
if (nr==2){
parent.banner.location.href="jv_2i1b.html"
parent.display.location.href="jv_2i1c.html"
}
}
//-->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
Click one of the links!<br>

<A HREF="JavaScript:twoinone(1)">Link 1</A><BR>
<A HREF="JavaScript:twoinone(2)">Link 2</A>

</BODY>
</HTML>

i've been working with this script for a few hours and i can't get it to do what i want (this is the original script) Is it possible to have this script do this automatically instead of using a link? I only need one of the if statements contents, not both. I tried having the javascript:twoinone(1) sent using a header but it came back with errors.

edit: I've tried other ways and none of them seem to work.

supermanjnk

2:58 am on Jul 12, 2004 (gmt 0)

10+ Year Member



fixed it... thanks though