جميل اخوي انترنت بلس .. هذا كود مقارب له تقريباً .. احتاج ارائكم
هو عبارة عن حقل مناسب لاصحاب القوائم البريدية.. مكون من حقل واحد وزر ارسال
تستطيع اضافة اي حقل تريد.. فقط قم بتحديد الملف الخاص بالاضافة ..
الكود كامل..
كود HTML:
<SCRIPT>
function openTarget (form, features, windowName) {
if (!windowName)
windowName = 'formTarget' + (new Date().getTime());
form.target = windowName;
open ('', windowName, features);
}
</SCRIPT>
<FORM name=main ACTION="http://www.swalif.com/add.php" ONSUBMIT="openTarget(this, 'width=300,height=300,resizable=1,scrollbars=1'); return true;" target="newpopup" method="POST"><input type="hidden" name="PHPSESSID" value="85230656fee9c0693e757b307fad99cb" />
<input name=email type=text value=E.mail size=17 style="border-style: solid; border-width: 1px">
<input type=submit value="اضف بريدك معنا" style="font-family: Tahoma; font-size: 8pt">
</form>
<script language="javascript">
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
</script>
باستطاعتك تحرير الحقول... وادراج الملف الخاص بالاضافة (الملف الذي سيفتح في صفحة جديدة) من هنا
كود HTML:
<FORM name=main ACTION="http://www.swalif.com/add.php" ONSUBMIT="openTarget(this, 'width=300,height=300,resizable=1,scrollbars=1'); return true;" target="newpopup" method="POST"><input type="hidden" name="PHPSESSID" value="85230656fee9c0693e757b307fad99cb" />
<input name=email type=text value=E.mail size=17 style="border-style: solid; border-width: 1px">
<input type=submit value="اضف بريدك معنا" style="font-family: Tahoma; font-size: 8pt">
</form>
من هنا تقوم بتعديل ابعاد الصفحة والية الظهور..
كود HTML:
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
</script>