![]() |
roulette javascript
Hello! this is my first post.
I am working on a website where I need a roulette. I chose this one. http://www.switchonthecode.com/tutor...#comment-11861 My problem is that I can not get the text to become a link. (clickable)(a href) I am new to JavaScript and HTML 5 <canvas> But I can not get it to work :/ Some good suggestions? I would Greatly appreciate. |
What test? And where is your code? We can't see what you did wrong if you don't show us your code.
|
Quote:
var restaraunts = ["Wendy's", "McDonalds", "Chick-fil-a", "Five Guys", "Gold Star", "La Mexicana", "Chipotle", "Tazza Mia", "Panera", "Just Crepes", "Arby's", "Indian"]; He wants to make each restaurant a clickable link. |
the problem is that text on a canvas is not text but rather a drawn shape, and therefore it's not as simple as turning "normal" html text into a link.
what you basically have to do is save the locations of your text on the canvas and then turn them into clickable regions. you can google the subject - there are plenty of tutorials out there, but I would say that if you have only a basic understanding of html and js, this is a very ambitious undertaking at this point. |
ok thx!!:thumbsup:
|
| All times are GMT +1. The time now is 04:36 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.