ما نفعت معي بالطريقه العاديه
عندي مشاكل بالاكسبلورر السابع وما يقبل بعض الدوال
عملتها بالطريقه الصعبه احسن من بلاش!!
كود:
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
var w=800;
function doit() {
//put before and after the link:
var bef="http://www.swalif.net/softs/";
var aft=".html";
//---------------------------------------
var first=parseInt(document.form1.txt1.value);
var num=parseInt(document.form1.txt2.value);
if (first<1 || first>1000 || num>9 || num<1) {
alert("wrong input");
return false; }
else {
var last= first+num;
for (i=first; i<last; i++) {
var link=bef+i+aft;
if(w==800)
props=window.open(link , i , 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800, height=600, left = 0, top = 0');
else
props=window.open(link , i , 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=1024, height=738, left = 0, top = 0');
}}
}
</SCRIPT>
</head>
<body>
Browse the results:
<form name="form1" onSubmit="doit();">
Begin with:<input type="text" name="txt1" size="4" maxlength="4" value="1">1-1000<br>
Number of results:<input type="text" name="txt2" size="4" maxlength="2" value="9">1-9<br>
<input type="submit" value="Okey">
</body>
</html>