Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Do you know where your variables are?
 
PerlMonks  

random imagemaps

by Anonymous Monk
on Dec 21, 2000 at 09:16 UTC ( #47731=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

What do you think is the best way to go about random imagemaps. Basically what I'm working on is having a random imagemap load when the page is loaded.

Comment on random imagemaps
Re: random imagemaps
by repson (Chaplain) on Dec 21, 2000 at 09:37 UTC
    Random imagemaps.....

    Depends on exactly what you want to have randomized...

    You may need two programs (or halves of one program), the first which decides on the placement of the items you want linked, and returns the html to make the image map ie <MAP> tags, including a image tag which references the same or another perl script, telling it through cgi parameters how the items are set out. The second program can then draw the image (with GD) and return it to the client.

    Another way instead of using <MAP> tags you can include an image as part of a cgi form and that cgi will recieve the x and y coordinates where the click occured and you can decide what to do based on those coordinates related to the contents of the image.

    I've got a perl program which already does what I first described. If you really want I'll post it to snippets or something. But I really suggest you have a try at making it yourself.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://47731]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2014-04-18 22:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (472 votes), past polls