I have question for this script.
How to add link page target onclick bottom?

for example:
changeBGImage(0 ) on page1.php, so open page1.php with image (0)
changeBGImage(1 ) on page2.php, so open page2.php with image (1)
changeBGImage(2 ) on page2.php, so open page3.php with image (2)
etc

What's idea?

Many Thanks