|
Answer» Hi all,
I was wondering if it was possible to COMBINE a html script that shows a random image, with a mapped image, an image where hyperlinks only appear in the given coordinates. Seperately I get the scripts to work, but how do I get both? Since adding code here, doesn't seem to work for me I included a file with examples of the code I am using now. Can anyone help me out plz. Thx in advance!It's easy with PHP... Do you know PHP?Just the basics. I only use PHP on the main page of my SITE for the layout. All the INCLUDES (content) are html pages. If it can't be done in html can you post the code in php plz. Or does anyone know an alternative to use it in html?To be honest, it's pretty simple. Just use a switch...case statement after your random number is generated in PHP. The pseudocode:
set $rand to random integer switch $rand case 1 echo all the necessary html for the first image and image map break case 2 echo all the necessary html for the second image and image map break ...
This isn't real code, but you should get the idea.
|