We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › can this stuff be used as buttons for a website
Page Index Toggle Pages: 1
can this stuff be used as buttons for a website? (Read 403 times)
can this stuff be used as buttons for a website?
Oct 24th, 2008, 11:13am
 
I think that some of the patterns that can be easily conjured would make really pretty buttons for a website. Once placed on a webpage can I somehow use it as a button, so by clicking it I get feedback which will trigger an action to send me to another page?
Re: can this stuff be used as buttons for a websit
Reply #1 - Oct 25th, 2008, 4:32pm
 
Sure it COULD be used to build a menu for a site, but you have to think about accessibility and speed...for those who do have an up-to-date java install, it'll take a while to  load, far longer than any other part of the site.  My suggestion would be to build your sketch, output it as a .mov, convert to .flv and build the actual menu in flash which is designed for that kind of stuff.
Re: can this stuff be used as buttons for a websit
Reply #2 - Oct 26th, 2008, 1:10am
 
Thanks for your reply! Sunday must be the day of posting. The whole point about me going with Processing was to avoid Flash, I can't do HTML very well at all, I certainly can't do JavaScript or DHTML etc.. but I don't have flash and dont want to pay £900, so I went open source.

I basically have a main script to load and a button, that can't be much, I want to place them with css on an HTML page. No flash. The reason I wanted to use this as a button was because:

1. Of difficulty with JQuery buttons
2. For uniformity
3. Serendipity with a tutorial

The thing is I cannot right click one of the java object, which lead me to wonder if I could wonder if I could click it like  button.
Re: can this stuff be used as buttons for a websit
Reply #3 - Oct 26th, 2008, 1:47am
 
Flex IDE is free, and it outputs a flash file
Re: can this stuff be used as buttons for a websit
Reply #4 - Oct 26th, 2008, 3:14am
 
I took a look, it looks powerful in the right hands. My hands not so. I like Processing for the fun shapes it makes. I'm sure I can find way to get what I want from Processing.

Thanks for the tip though.
Re: can this stuff be used as buttons for a websit
Reply #5 - Oct 28th, 2008, 9:51pm
 
I used link() to go to the wanted page, you can use modifiers (open in new window, etc.).
Just click on the green dot in my demo...
Re: can this stuff be used as buttons for a websit
Reply #6 - Oct 29th, 2008, 5:56pm
 
Thanks, I was looking however to link to an anchor in the same webpage:

<a href="#Bottom"><img src='448.gif'></a>

I tried a few combinations but they did not work, I am looking into treating the java applet as a clickable item so I can do this in HTML but not having much success.
Re: can this stuff be used as buttons for a websit
Reply #7 - Nov 9th, 2008, 11:40am
 
Its so simple, sorry, just encapsulate the whole piece of java in between the link tags:

<a href="#Bottom">APPLET_HERE</a>


and then where to go, put this somewhere in the page:

<a name="Bottom">Bottom</a>
Page Index Toggle Pages: 1