20 lines
796 B
JavaScript
20 lines
796 B
JavaScript
/*
|
|
* For php:
|
|
* Just as the example var voteEggURL = "http://192.168.0.222:80/egg/server/voteEgg.php";
|
|
* You maybe need to change the ip 192.168.0.222:80 to you php server and the open port php_server/php_port
|
|
* And you need to change screenmsg/server/flashscreen.php to you flashscreen.php file path under php server.
|
|
* If you php server root fold is egg, and tht voteEgg.php is under that fold, you should change it to
|
|
* "http://ip:port/egg/flashscreen.php"
|
|
*
|
|
* For tomcat:
|
|
* You just need change localhost:8080 to your (ip<you tomcat ip>:port<your tomcat port>).
|
|
* */
|
|
|
|
var hostName=window.location.hostname;
|
|
/**for jsp
|
|
*/
|
|
var voteEggURL = "http://"+hostName+":38080/123flashchat_plugins/servlet/VoteEgg";
|
|
|
|
//for php
|
|
//var voteEggURL = "http://"+hostName+"/egg/server/voteEgg.php";
|