简体   繁体   English

如何将信息从Java小程序发送到html / javascript / css?

[英]how can i send information from a java applet to my html/javascript/css?

I have a simple page with a header on top and a java applet on the bottom. 我有一个简单的页面,顶部有一个标题,底部有一个Java applet。 the applet uses an input (passed via php get parameter, aka index.php?url= http://www.image.com/img.jpg . This java script will calculate the average color throughout the picture. i'd like the header to match this average color. 小程序使用输入(通过php get参数,也称为index.php?url = http://www.image.com/img.jpg传递。此Java脚本将计算整个图片的平均颜色。我希望标头以匹配此平均颜色。

how can i send this information back to the DOM? 我如何将这些信息发送回DOM?

thanks!! 谢谢!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM