I was looking at this wobbly java applet and wanted to make it a link on my website, hot do I do that so it uses the "#Bottom" link to go to the bottom of the webpage its on:
This neither concerns Java or JavaScript, links are matter of HTML
Somewhere in your page you will place that applet into view surrounded by link tag as this
I thought maybe (and have tried) to add the "#Bottom" as the link inside the java applet when using "mousePressed", but it didn't work. Somebody told me:
"I suspect: an object captures the mouse, so the click does not go to the <a> element in which you have embedded the object. I don't see any way around that, but you might be able to place a transparent click-catching-div in front of the object." -- but I don't want all tha MS lock-in stuff and its frontpage, which is old right?
It's annoying really, I was doing al my testing in Safari because its so clean and nice, I thik I've finished and try it in FF and it doesn't work!
You forgot to close your first tag for object before opening the next one. You closing link tag before closing "div" tag and you never close the other div at all.
Thanks for your reply, I got the code as an output from the processing app I was using, I just added the #bottom anchor to it. I've counted the object openings and divs and it looks like there are enough, I think, so I count 1stDiv open, 2ndDiv open, 1stObject open, 2ndObject open, 1stObject close, 2ndObject close, 1stDiv close, 2ndDiv close.
I've never had a problem with the processing output code before, I tried closing an object before opening another but it did not make any difference. I also tried adding two #bottom links for those object beginnings but that didn't work either.
Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.
This thread is more than three months old
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.