أشكركم على ردكم راح أعطيكم الكود من البداية إلى النهاية وإنتم شوفوه :
طبعا رد لسؤال الأخ الباس : فأنا أضغه في html بين الوسم </body><body>
==============================================
كود:
<script language="JavaScript">
<!--
function PopWindow()
{
window.open('http://localhost/test/add.php','ehdaa','width=600,height=320,menubar=no,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=no,top=0,left=0');
}
//-->
</script>
<DIV id=FloatMail
style="padding:5px; LEFT: 9px; WIDTH: 762px; POSITION: absolute; TOP: 38px; height:93px" align="center">
<table border="0" width="100%" id="table2" style="border-collapse: collapse">
<tr>
<td>
<input type="button" value="test" onClick="JavaScript:PopWindow()" style="position: absolute; right: 6; top: 24; height: 29px; font-family: Tahoma; font-size: 8pt"></td>
<td width="567">
<IFRAME
style="BORDER-RIGHT: 0px solid; BORDER-TOP: 0px solid; FLOAT: left; MARGIN: 20px 20px 10px; BORDER-LEFT: 0px solid; BORDER-BOTTOM: 0px solid"
name=I6 align=left
src="http://localhost/test/test.php" frameBorder=1
width="656" scrolling=no height=26 border="1"></IFRAME></td>
</tr>
</table>
</DIV>
<script language="JavaScript">
var hX = 0;
var vY = 375;
</SCRIPT>
<script language="JavaScript">
var good;function checkEmailAddress(field){
var goodEmail=field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
if (goodEmail){good = true}else{alert('Please enter a valid e-mail address.');
field.focus();field.select();good=false;}}
u=window.location;m="Check out this game at Mousebreaker.com";
function mailThisUrl(){good=false;
checkEmailAddress(document.eMailer.address);
if (good){window.location="mailto:"+document.eMailer.address.value+"?subject="+m+"&body="+document.title+" "+u;}}
var nn=(navigator.appName.indexOf("Netscape")!=-1);
var dD=document,dH=dD.html,dB=dD.body,px=dD.layers?'':'px';
function floatMail(iX,iY,id){
var L=dD.getElementById?dD.getElementById(id):dD.all?dD.all[id]:dD.layers[id];
this[id+'O']=L;if(dD.layers)L.style=L;L.nX=L.iX=iX;L.nY=L.iY=iY;
L.P=function(x,y){this.style.left=x+px;this.style.top=y+px;};L.Fm=function(){var pX, pY;
pX=(this.iX >=0)?0:nn?innerWidth:nn&&dH.clientWidth?dH.clientWidth:dB.clientWidth;
pY=nn?pageYOffset:nn&&dH.scrollTop?dH.scrollTop:dB.scrollTop;
if(this.iY<0)pY+=nn?innerHeight:nn&&dH.clientHeight?dH.clientHeight:dB.clientHeight;
this.nX+=.1*(pX+this.iX-this.nX);this.nY+=.1*(pY+this.iY-this.nY);this.P(this.nX,this.nY);
setTimeout(this.id+'O.Fm()',33);};
return L;}
floatMail(hX,vY,'FloatMail').Fm();
</SCRIPT>
=====================
وشكرا لمروركم على الموضوع :shy: