Dynadot โ€” .com Registration $8.99

Need some help.

Spaceship Spaceship
Watch
Impact
0
(I post it in another forum, but I think this forum is better)

I am developing a funny picture site.

My problem is that I cannot reflesh the picture in the website......the pic was cached so it always show the old image.

I have to click the reload buttom in the web broswer to get the "next picture" loaded.

Any advice.

Thank in advance
Daniel.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Do you mean you want a button to change the image to a new picture?
This is often done using an array in javascript i believe. All the images are loaded into an array and every time you click on a button the next image is displayed. i can show u code if u like but theres plenty of examples around.

BTW, theres an 'n' missing on the 'email funny pictures to your friends' button.
 
0
•••
pls show me the code, it may solve my problem.
(does the code are free to use??)

thank you.
 
0
•••
try this code for a javascript image preloader. You'll need to make a few alterations to it but it should work fine for what you want. If you have alot of pictures though, this may not be best as they will all be downloaded when the page is first loaded which could take some time. In this case just do without the preloading array so the images load up as required.
 
0
•••
Unstoppable Domains
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back