Dynadot โ€” .com Transfer

A couple thousand of the same image one one page.

NamecheapNamecheap
Watch
Impact
26
I'm looking for an easy way to put about 50,000 of the same image on one page. I know its easy just to copy and paste the image code, but it gets sort of hard to keep count when you have such a big number. I also plan to change the one image to another image. Anyone know an easy way to manage this. I'll just give an example of what I'm trying to do. Say 50000 stop lights all red. When the time comes I want to change some to green and leave the rest red.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
.US domains.US domains
For the first part of your question, I'd copy/paste 10 times. Then copy the block of 10 and paste it 10 times, giving you a block of 100. Copy & paste the 100 10 times to give you a block of 1,000. Copy the block of 1,000 and paste it 50 times.

To change some of the the images, use a similar procedure to replace blocks with the new code.

I'm sure there are better ways, but that's probably what I'd end up doing.

P.S. remind me not to visit your page containing 50,000 images. LOL!
 
0
•••
Gene said:
For the first part of your question, I'd copy/paste 10 times. Then copy the block of 10 and paste it 10 times, giving you a block of 100. Copy & paste the 100 10 times to give you a block of 1,000. Copy the block of 1,000 and paste it 50 times.

To change some of the the images, use a similar procedure to replace blocks with the new code.

I'm sure there are better ways, but that's probably what I'd end up doing.

P.S. remind me not to visit your page containing 50,000 images. LOL!


:lol: That seems like a good way. There are probably easier ways but I'll use this for now, thanks.
 
0
•••
Wow, whats the purpose of this if I might ask? To overload a users RAM? Lol
 
0
•••
zhalefarin said:
Wow, whats the purpose of this if I might ask? To overload a users RAM? Lol

It's another project of mine. And its only one image repeated 50k times so once one loads they all load.
 
0
•••
use a loop in php to generate them, then if you want to change them, you can add certain clauses:

<?php

$image = "images/redlight.gif";
for($i=0;$i<=50000;$i++){

echo "<img src=\"".$image."\" alt=\"\" title=\"\" />";

}

?>

then you can add an if ($i == 4){echo diff image};

etc
 
0
•••
Albino said:
use a loop in php to generate them, then if you want to change them, you can add certain clauses:

<?php

$image = "images/redlight.gif";
for($i=0;$i<=50000;$i++){

echo "<img src=\"".$image."\" alt=\"\" title=\"\" />";

}

?>

then you can add an if ($i == 4){echo diff image};

etc

Thanks a lot.
 
0
•••
Yes. Using a script would be the way to do it.
It would be interesting to load 50,000 different images.
 
0
•••
creative one :

- open excel (or open office) -> paste code in first cell
-> then copy that cell down to row 50.000
-> save as .txt

thats it ;)
 
0
•••
If anyone wants to see what I'm doing just go to www.keenen.net and look where it says Click here and click there to see what I was trying to do. Don't worry it's not CPU or ram intensive.

I ended up using the HTML way because its easier overall to edit each individual guy and to add information such as name in the form of a mouse over.
 
0
•••
seeing as the count has been loading for at least a good 30 seconds for me, might i suggest making smaller images? it will also look better since the scrollbar won't be ridiculously small... btw, doesn't your host have to transfer about 1.4 gb for a single full load of all your images? yikes!!
 
0
•••
shockie said:
seeing as the count has been loading for at least a good 30 seconds for me, might i suggest making smaller images? it will also look better since the scrollbar won't be ridiculously small... btw, doesn't your host have to transfer about 1.4 gb for a single full load of all your images? yikes!!

Seriously? I don't even have that much bandwidth. I have less than 5 gigs and I've reloaded about a hundred times today.
 
0
•••
each little man is 28 KB.

so after fully loading the page it would be 50,000 x 28 KB = 1.4 GB... i think?
 
0
•••
shockie said:
each little man is 28 KB.

so after fully loading the page it would be 50,000 x 28 KB = 1.4 GB... i think?

I believe the page only needs to load one and then it is displayed 50,000 times. If it you had to load 1.4 gigs each visit it would take a lot longer than 30 seconds to load unless you have some sort of terabit connection.
 
0
•••
loaded ok for me, and I am on a lowly 512k!
 
0
•••
Use a DOM object to create the image and do a loop in Javascript and attach the image object to the body object using the appendChild method, then you don't have to send the IMG tag to the client 50,000 times. :imho:
 
Last edited:
0
•••
Humdizzy said:
I believe the page only needs to load one and then it is displayed 50,000 times.
that could be it then :)
 
0
•••
Is this a new take on the million dollar webpage? I'm looking foward to see where you are going with this :)
 
0
•••
neobodhi said:
Is this a new take on the million dollar webpage? I'm looking foward to see where you are going with this :)
Correct me if I'm wrong, but I believe that this is so that he'll be able to buy a brand new Audi TT which is 30k or so, and then have enough yet for insurance on the car afterwards, and enough $ to licence the auto.

-Commes
 
0
•••
No offense but it's the equivalent of a "web/virtual panhandler" isn't it?

Fair play to ya if you can get 50,000 people to send you a dollar, if it works out I'd imagine there will be a lot of copycat sites following shortly after....

Edit: ah what do you know, I looked it up and it appears it's being done already!

http://en.wikipedia.org/wiki/Internet_begging
 
Last edited:
0
•••
Spaceship
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back