شوف هذا الكود :
كود:
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function MFX_loadURL(L,URL,w,pw,h,ph){
NN=navigator.appName=='Netscape';
allX = (NN) ? window.innerWidth : document.body.clientWidth;
allY = (NN) ? window.innerHeight : document.body.clientHeight;
if(document.layers){
L=eval(L)
if(w){if(pw){
L.clip.width=(allX/100)*w;}
else {L.clip.width=w;}}
if(h){if(ph){L.clip.height=(allY/100)*h;}
else{L.clip.height=h}}
if(!w)w=L.clip.width;
L.load(URL,L.clip.width);
}
if(document.all){
eval("L=L.replace(/.layers/gi, '.all')");
if(w){if(pw){
w=eval(L + ".style.pixelWidth=\""+(allX/100)*w+"\"");}
else{w=eval(L + ".style.pixelWidth=\""+w+"\"");}}
if(h){if(ph){
h=eval(L + ".style.pixelHeight=\""+(allY/100)*h+"\"");}
else{h=eval(L + ".style.pixelHeight=\""+h+"\"")}}
if(!w)w=eval(L + ".style.pixelWidth");
if(!h)h=eval(L + ".style.pixelHeight");
myVar="<object type=text/x-scriptlet width="+w+" height="+h+" data="+URL+"></object>"
eval(L + ".innerHTML =\""+myVar+"\"");
}
document.MM_returnValue = false;
}
//-->
</script>
و يجب و ضعه فبل
</head>
و بعدين في البدي :
كود:
<body onLoad="MFX_loadURL('document.layers[\'Layer1\']','http://yahoo.com',300,0,200,0);return document.MM_returnValue">
<div id="Layer1" style="position:absolute; left:294px; top:155px; width:364px; height:152px; z-index:1"></div>
غير الموقع من yahoo.com الى ماتشاء !
قم بصنع div و أعطه ID و في البدي حدد الصفحة المطلوبة !