K
Ken Smith
I have a little video poker game I created in Javascript.
It uses Tables and inner html stuff - for example: (psudo-code)
imagePicked=random card image (2h.gif);
getElementById(cellNum).innerHTML="<img src='imagePicked'>";
I use small 1k.gif images for the cards.
Sometimes on the net the 1k.gifs take a while to load & kills bandwith
traffic.
Is there a way to load 53(52 + 1 back-of-card image) images into memory
before game starts for a 1 time load?
then use the getElementById(cellNum) example above?
I've tried even displaying all cards on screen during game play, but it does
nothing.
Thanx in advance
It uses Tables and inner html stuff - for example: (psudo-code)
imagePicked=random card image (2h.gif);
getElementById(cellNum).innerHTML="<img src='imagePicked'>";
I use small 1k.gif images for the cards.
Sometimes on the net the 1k.gifs take a while to load & kills bandwith
traffic.
Is there a way to load 53(52 + 1 back-of-card image) images into memory
before game starts for a 1 time load?
then use the getElementById(cellNum) example above?
I've tried even displaying all cards on screen during game play, but it does
nothing.
Thanx in advance