Jump to content

Php How To Break Out Of Frame


Websitedev

Recommended Posts

How do I link to a seperate website which breaks out of a frame if the below is part of a frame embedded in a website ?<!--function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document); if(!x && d.getElementById) x=d.getElementById(n); return x;}onemafunction flvFLSS4(){//v1.1var v1=arguments,v2=v1[0],v3=MM_findObj(v2);if (v3&&v3.LSS6!=null){clearTimeout(v3.LSS6);}}function flvFLSS3(){//v1.1var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4=v1[1],v5='',v6;if (!v3.LSS3.complete){v6="flvFLSS3('"+v2+"',"+v4+")";setTimeout(v6,50);return;}if (v3.LSS2[v4][1]!=""){v5+='<a href="'+v3.LSS2[v4][1]+'"';if (v3.LSS1!=""){v5+=' target="'+v3.LSS1+'"';}v5+='>';}v5+='<img src="'+v3.LSS3.src+'" border="0" alt="">';if (v3.LSS2[v4][1]!=""){v5+='</a>';}if (v3.LSS2[v4][2]!=""){v5+='<br>'+unescape(v3.LSS2[v4][2]);}if (document.layers){v3.document.open();v3.document.write(v5);v3.document.close();}else {v3.innerHTML=v5;}}function flvFLSS2(){//v1.1var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4=v1[1],v5=v1[2],v6,v7,v8;if (v3&&v3.LSS2){flvFLSS4(v2);if (v4==1){v6=v3.LSS7+1;if (v6>v3.LSS2.length-1){v6=0;if (v3.LSS8==0){return;}}v8=v3.LSS2[v6][0];}else {v6=v3.LSS7-1;if (v6<0){v6=v3.LSS2.length-1;if (v3.LSS8==0){return;}}v8=v3.LSS2[v6][0];}v3.LSS7=v6;if (!document.layers&&!v3.LSS5){v3.LSS3=new Image();}v3.LSS3.src=v8;flvFLSS3(v2,v6);if (v5==1){v7="flvFLSS2('"+v2+"',"+v4+","+v5+")";v3.LSS6=setTimeout(v7,v3.LSS4);}}}function flvFLSS1(){//v1.1// Copyright 2003-2004, Marja Ribbers-de Vroed, FlevOOware (www.flevooware.nl/dreamweaver/)var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4,v5;if (v3){v3.LSS4=v1[1];v5=v1[2];v3.LSS8=v1[3];v3.LSS1=v1[4];v3.LSS2=new Array();for (var v6=5;v6<v1.length;v6+=3){v3.LSS2[v3.LSS2.length]=new Array(v1[v6],v1[v6+1],unescape(v1[v6+2]));}v3.LSS7=0;v3.LSS5=(navigator.userAgent.toLowerCase().indexOf("netscape6")!=-1);v3.LSS3=new Image();v3.LSS3.src=v1[5];flvFLSS3(v2,0);if (v5){v4="flvFLSS2('"+v2+"',1,"+v5+")";v3.LSS6=setTimeout(v4,v3.LSS4);}}}function flvFLSS5(){//v1.1var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4=v1[1],v5;if (v3&&v3.LSS2){flvFLSS4(v2);if (v4>v3.LSS2.length-1){v4=v3.LSS2.length-1}else if (v4<0){v4=0;}v5=v3.LSS2[v4][0];v3.LSS7=v4;if (!document.layers&&!v3.LSS5){v3.LSS3=new Image();}v3.LSS3.src=v5;flvFLSS3(v2,v4);}}//--><body><td height="250px" width="100"><a href="java script:;" onClick="flvFLSS2('flevLSS',0,0)"><img src="Pictures/arrow-left.jpg" height="100" alt"Previous"></a></p></td><td width="400px" p style="font-family:comic sans ms; color:black; font-size:20px;"><body onLoad="flvFLSS1('flevLSS',3500,1,1,'','Pictures/pregnantteenager.JPG','http://www.google.co.uk','Explanation for rise in teenage pregnancy ','Pictures/b.jpg','','No link','Pictures/apple.jpg','http://www.google.co.uk','Link')"></p><div id="flevLSS" ></td><td height="250px" width="100"><a href="java script:;" onClick="flvFLSS2('flevLSS',1,0)"><img src="Pictures/arrow-right.jpg" height="100" alt"Next"></td></body>

Link to comment
Share on other sites

What do you mean how do you link to it? You always use an <a> tag to write a link.
The links in bold work but I want the links to have TARGET="_top" or something similar so the links break out of the frame which the code is in. Do you know how these links could link to a new window possibly using TARGET="_top".<body onLoad="flvFLSS1('flevLSS',3500,1,1,'','Pictures/pregnantteenager.JPG','http://www.google.co.uk','Explanation for rise in teenage pregnancy ','Pictures/b.jpg','','No link','Pictures/apple.jpg','http://www.google.co.uk','Link')"></p><div id="flevLSS" >Thanks
Link to comment
Share on other sites

It's not obvious what all of those Macromedia Javascript functions do, you would need to add some debugging code to figure out what all their variables and everything mean. It looks like the target gets set to v3.LSS1, but damned if I know what that is. Can you just replace those functions with something else? What do they do?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...