[B]Problems incrementing the numbers at the end of a web add

admin

Administrator
Staff member
Here is what I am trying to do...
I am trying to visit webpages at a website that have numbers at the end of their web address...
example: <!-- m --><a class="postlink" href="http://www.xxxx.com/utilxxx.aspx?ID=1000">http://www.xxxx.com/utilxxx.aspx?ID=1000</a><!-- m -->

What I need the script to do is change the number at the end of the web address by 10 each time, like it could start out at say 500, then the next time it would automatically enter 510, 520, 530 and up and up. I have a script that I can enter a number in a box and then it will add it to the web address and display the website in a popup window, but if I want to increase the number by 10 each time I have to keep re-entering a new number in the box. I would like it if all I had to do was keep pressing the go button and I would get it to automatically advance the number on the web address by 10 each time.. I tweaked this script as much as I know how. Any one else know how to do this, whether this way or anyother as long as I get basically the same results??
Thx



<HTML>
<HEAD>

<title>Boxes</title>
<script type="text/javascript">
<!-- Begin
function searchWeb()

{
if (document.search.engines.selectedIndex==0) { window.open("http://www.xxxxx.com/util.aspx?Type=3&BoxID="+document.search.queryText.value.replace(" ","+")); }
if (document.search.engines.selectedIndex==1) {
window.open("http://www.xxxx.com/utilxxx.aspx?ID="+document.search.queryText.value.replace(" ","+")); }
}

// End -->
</script>

</HEAD>


<BODY>
<CENTER>
<BR>
<BR>
<form name="search">
<table bgcolor="000098" height="70">
<tr>
<td>
<select name="engines" style="font-size: 9pt">
<option value=http://www.webdeveloper.com/forum/archive/index.php/"0" selected>Ready To Print Page</option>
<option value="1">Whole Page</option>
</select>
<input type="text" size="25" value="Enter A Starting Number" onFocus=select(); name="queryText" style="font-size: 9pt" />
<input type="button" value="Go" onClick="searchWeb()" style="font-size: 9pt" />
</td>
</tr>
</table>
</form>
</CENTER>

</BODY>
</HTML>
 
Top