What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Increasing links by a number

Increasing links by a number
Author: Message:
tony
Senior Member
****

Avatar

Posts: 976
Reputation: 54
36 / Male / Flag
Joined: Jul 2004
O.P. Increasing links by a number
Hello guys, anyone knows how to create an HTML page that does the following.

For example, i want to create links like this one (increasing one by one):

http://xxxxxx.com/rxxxx/AAA399495790
http://xxxxxx.com/rxxxx/AAA399495791
http://xxxxxx.com/rxxxx/AAA399495792
http://xxxxxx.com/rxxxx/AAA399495793

ETC ETC..

[Image: beginnerbadgeef2.gif][Image: danceichigoow9.gif]
04-27-2008 04:24 PM
Profile PM Web Find Quote Report
Jesus
Scripting Contest Winner
****

Avatar
Koffie, my cat ;)

Posts: 623
Reputation: 15
38 / Male / Flag
Joined: Jul 2005
RE: Increasing links by a number
you can use javascript for that.
google for javascript innerhtml and you should find quite a few useful results.
Man is least himself when he is in his own person. Give him a mask and he will tell you the truth. (Oscar Wilde)
04-27-2008 04:52 PM
Profile PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Increasing links by a number
A JavaScript for loop with document.write("linkurl.com/"+i); should do it shouldn't it?

EDIT: Beaten anyway :(

This post was edited on 04-27-2008 at 04:55 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
04-27-2008 04:54 PM
Profile PM Find Quote Report
Jesus
Scripting Contest Winner
****

Avatar
Koffie, my cat ;)

Posts: 623
Reputation: 15
38 / Male / Flag
Joined: Jul 2005
RE: Increasing links by a number
quote:
Originally posted by SpunkyLoveMuff
Beaten anyway
document.write may be easier indeed, depending on the site and what it's used for. ;)
Man is least himself when he is in his own person. Give him a mask and he will tell you the truth. (Oscar Wilde)
04-27-2008 05:01 PM
Profile PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Increasing links by a number
Or use PHP but then you can't add more after it has processed.
[Image: 1-0.png]
             
04-27-2008 05:27 PM
Profile PM Web Find Quote Report
tony
Senior Member
****

Avatar

Posts: 976
Reputation: 54
36 / Male / Flag
Joined: Jul 2004
O.P. RE: Increasing links by a number
Samples?
[Image: beginnerbadgeef2.gif][Image: danceichigoow9.gif]
04-27-2008 05:30 PM
Profile PM Web Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: Increasing links by a number
Not sure if this is what you want, but this will display the first 50 numbers (if you use firefox you could put it all on one line and paste "javascript:<code>" into the address bar for it to show):

code:
var s = "";
var url = "http://xxxxxx.com/rxxxx/AAA";
var start = 399495790;
for(var i = 0; i < 50; i++) {
s += url + (start + i) + "<br/>";
}
document.write(s);

Change the 399495790 to change the first number it displays and the 50 to change how many it displays.

This post was edited on 04-27-2008 at 05:59 PM by deAd.
04-27-2008 05:57 PM
Profile PM Find Quote Report
Jesus
Scripting Contest Winner
****

Avatar
Koffie, my cat ;)

Posts: 623
Reputation: 15
38 / Male / Flag
Joined: Jul 2005
RE: Increasing links by a number
SLM's suggestion is probably the easiest way:
code:
<html>
<head>
<title></title>
</head>
<body>
<script type="text/javascript">
var i=1;
for (i=1; i<=10; i++)
{
document.write("<a href=\"http://www.yourwebsite.com/number" + i + "\">URL" + i + "</a><br>")
}
</script>
</body>
</html>

though google could have told you that, too...

edit: meh too slow:P

This post was edited on 04-27-2008 at 06:08 PM by Jesus.
Man is least himself when he is in his own person. Give him a mask and he will tell you the truth. (Oscar Wilde)
04-27-2008 06:07 PM
Profile PM Find Quote Report
tony
Senior Member
****

Avatar

Posts: 976
Reputation: 54
36 / Male / Flag
Joined: Jul 2004
O.P. RE: Increasing links by a number
Thanks for your help, all of you. :)
[Image: beginnerbadgeef2.gif][Image: danceichigoow9.gif]
04-27-2008 06:28 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On