Click here to Skip to main content
15,920,633 members
Home / Discussions / Java
   

Java

 
QuestionIs there a Java compiler ? Pin
yarp17-Dec-01 9:21
yarp17-Dec-01 9:21 
AnswerRe: Is there a Java compiler ? Pin
markkuk17-Dec-01 20:32
markkuk17-Dec-01 20:32 
GeneralRe: Is there a Java compiler ? Pin
yarp18-Dec-01 3:59
yarp18-Dec-01 3:59 
QuestionHow do you include a jpeg in an applet lay out manager? Pin
15-Dec-01 11:56
suss15-Dec-01 11:56 
Generalprogram interaction Pin
Ever123414-Nov-01 9:29
Ever123414-Nov-01 9:29 
QuestionHelp Cracking a code? Pin
InterKoro11-Nov-01 10:03
InterKoro11-Nov-01 10:03 
AnswerRe: Help Cracking a code? Pin
Jon Sagara11-Nov-01 11:08
Jon Sagara11-Nov-01 11:08 
GeneralRe: Help Cracking a code? Pin
11-Nov-01 21:39
suss11-Nov-01 21:39 
InterKoro-- I cant do that, but intstead i'll post the java:





<title>name of site

function typeo(x) {

if (x.i == null) {
x.i = -1;
x.chri = 0;
x.txt = x.innerHTML;
x.lng = x.txt.length;
x.innerHTML = "";
x.style.visibility = "visible";
x.msg = "";
}

/* still making msg */
if (x.i < x.lng) {
for (x.i = 0; x.i < x.lng; x.i++) {
chr = x.txt.charAt(x.i)

if (chr == "<") {
aTag = "<";
while (chr != ">") {
x.i++;
chr = x.txt.charAt(x.i);
aTag = aTag + chr;
}
aTag = aTag;
x.msg = x.msg + aTag;
}

if (chr != ">") {
x.msg = x.msg + "<span style='display: none' id=" + x.id + "_" + x.chri + ">" + chr + "</span>";
x.chri++;
}
}
}

/* made msg */
if (x.i == x.lng) {
if (x.cmpl == null) {
x.innerHTML = x.msg;
x.cmpl = x.chri;
x.chri = 0;
}
//the number in abl variable controls time between letters
if (x.chri < x.cmpl) {
t = eval(x.id + "_" + x.chri);
t.style.display = "";
x.chri++;
ab1 = window.setTimeout("typeo(" + x.id + ")", 75);
}
}
}




function animatedObject(elementName,loop,speed,steps,endRoutines,route){
this.elementName = elementName;
this.loop = loop;
this.speed = speed;
this.steps = steps;
this.frameIndex = 0;
this.endRoutines = endRoutines;
this.route = route.split(',');
this.animate = animateObject;
this.move = moveObject;
this.show = showObject;
this.hide = hideObject;
animatedObjects[elementName] = this;
}

function stopTimeline(timelineNumber){
animationTime[timelineNumber] = animationTimeline[timelineNumber].length;
}


function startTimeline(timelineNumber) {
animationTime[timelineNumber] = 0;
timelineController(timelineNumber);
}

function timelineController(timelineNumber) {
if (animationTime[timelineNumber] <= animationTimeline[timelineNumber].length - 1) {
animationTime[timelineNumber]++;
if (animationTimeline[timelineNumber][animationTime[timelineNumber]] != null){
eval(animationTimeline[timelineNumber][animationTime[timelineNumber]]);
}
setTimeout('timelineController(' + timelineNumber + ')', 100);
}
}

function showObject(){
eval(layerObj + '["' + this.elementName + '"]' + styleObj + '.visibility = "visible"');
}

function hideObject(){
eval(layerObj + '["' + this.elementName + '"]' + styleObj + '.visibility = "hidden"');
}

function moveObject(left, top){
eval(layerObj + '["' + this.elementName + '"]' + styleObj + '.top = top');
eval(layerObj + '["' + this.elementName + '"]' + styleObj + '.left = left');
}

function animateObject(){
if (this.route.length > 4 && this.frameIndex < this.route.length) {
this.move(this.route[this.frameIndex], this.route[this.frameIndex + 1]);
this.frameIndex += 2;
setTimeout('animatedObjects["' + this.elementName + '"].animate()', this.speed);
}
else if (this.route.length == 4 && this.frameIndex <= this.steps) {
this.move(parseInt(this.route[0]) + (this.frameIndex * ((parseInt(this.route[2]) - parseInt(this.route[0])) / this.steps)), parseInt(this.route[1]) + (this.frameIndex * ((parseInt(this.route[3]) - parseInt(this.route[1])) / this.steps)));
this.frameIndex++;
setTimeout('animatedObjects["' + this.elementName + '"].animate()', this.speed);
}
else {
eval(this.endRoutines + "");
this.frameIndex = 0;
if (this.loop == "yes"){
this.animate();
}
}
}

function initAnimation() {
layerObj = (isNS) ? 'document' : 'document.all';
styleObj = (isNS) ? '' : '.style';
animationTime = new Array();
animationTimeline = new Array();
animatedObjects = new Object();

alvin = new animatedObject('alvinL','yes',100,400,'null','200,0,200,320');
bubble = new animatedObject('bubbleL', 'yes', 300, 25, 'null', '100,500,100,50');
morebubbles = new animatedObject('morebubblesL', 'yes', 300, 25, 'null', '500,500,500,50');

animationTimeline[0] = new Array();

animationTimeline[0][10] = 'alvin.show(); bubble.show(); alvin.animate(); bubble.animate();';
animationTimeline[0][50] = 'morebubbles.show(); morebubbles.animate();';


startTimeline(0);
}

var layerObj, styleObj, totalTime, currTime;
var animationTime, animationTimeline, animatedObjects;
var bon, boff;
var isNS = (document.layers);
var isDHTML = (document.layers || document.all);




can you crack the code?


















)
// This is to validate the code. If
// the code is 1234 the mul = 1*2*3*4 = 24
// If your code is 9562 it will be
// usermulcode = 540 (9*5*6*2)
{
window.open("switch.pl/"+code+".shtml",'_top')
fails++
code=0 // Reset values
mul=1
digit=0
}
else
{
fails++ // Increase fails
code=0 // Reset values
mul=1
digit=0
if (fails<6)
{
if (fails<5)
{document.codepad.thecode.value="Try again"}
if (fails==5)
{document.codepad.thecode.value="Last time"}
}
else // To many tries = worp back
{
location="http://name of site/crash.shtml"
document.codepad.thecode.value="Bye!"
}
}
}
}

function keycodepad(mulcode)
{
usermulcode=mulcode
document.write("<form name=\"codepad\">");
document.write("<input type=\"button\" value=\" 1 \" onClick=\"Enter_code(1)\">");
document.write("<input type=\"button\" value=\" 2 \" onClick=\"Enter_code(2)\">");
document.write("<input type=\"button\" value=\" 3 \" onClick=\"Enter_code(3)\"><br>");
document.write("<input type=\"button\" value=\" 4 \" onClick=\"Enter_code(4)\">");
document.write("<input type=\"button\" value=\" 5 \" onClick=\"Enter_code(5)\">");
document.write("<input type=\"button\" value=\" 6 \" onClick=\"Enter_code(6)\"><br>");
document.write("<input type=\"button\" value=\" 7 \" onClick=\"Enter_code(7)\">");
document.write("<input type=\"button\" value=\" 8 \" onClick=\"Enter_code(8)\">");
document.write("<input type=\"button\" value=\" 9 \" onClick=\"Enter_code(9)\"><br>");
document.write("<input type=\"text\" name=\"thecode\" size=10 value=\"\"><br>");
document.write("</form>");
}
// Key-code script by Bart Jellema -->







 




keycodepad(24)

<bgsound src="music.mid" autostart="true" loop="infinite">






++interkoro++

GeneralRe: Help Cracking a code? Pin
Jarek G21-Nov-01 8:52
Jarek G21-Nov-01 8:52 
GeneralAnyone please help me : Java Extension Installation. Pin
Kobayakawa1-Nov-01 17:54
Kobayakawa1-Nov-01 17:54 
GeneralRe: Anyone please help me : Java Extension Installation. Pin
Jarek G21-Nov-01 8:56
Jarek G21-Nov-01 8:56 
GeneralManage file-permissions with Java Pin
30-Oct-01 2:50
suss30-Oct-01 2:50 
QuestionNeed Graphics for your Project? Pin
30-Oct-01 2:37
suss30-Oct-01 2:37 
AnswerRe: Need Graphics for your Project? Pin
Rassman13-Nov-01 3:27
Rassman13-Nov-01 3:27 
GeneralRe: Need Graphics for your Project? Pin
alex.barylski11-Feb-02 6:03
alex.barylski11-Feb-02 6:03 
GeneralGray Box Where Applet Should Be Pin
jerry0davis30-Oct-01 0:13
jerry0davis30-Oct-01 0:13 
GeneralRe: Gray Box Where Applet Should Be Pin
30-Oct-01 1:02
suss30-Oct-01 1:02 
GeneralRe: Gray Box Where Applet Should Be Pin
jerry0davis30-Oct-01 4:03
jerry0davis30-Oct-01 4:03 
GeneralRe: Gray Box Where Applet Should Be Pin
jerry0davis30-Oct-01 4:20
jerry0davis30-Oct-01 4:20 
GeneralRe: Gray Box Where Applet Should Be Pin
30-Oct-01 5:17
suss30-Oct-01 5:17 
GeneralRe: Gray Box Where Applet Should Be Pin
Malcolm McMahon9-Jan-02 0:14
Malcolm McMahon9-Jan-02 0:14 
GeneralRe: Gray Box Where Applet Should Be Pin
Standoni29-Jan-02 4:40
Standoni29-Jan-02 4:40 
GeneralDisplay an Applet loading status while loading large applet. Pin
Kobayakawa24-Oct-01 21:12
Kobayakawa24-Oct-01 21:12 
QuestionJava - Whats the big deal? Pin
22-Oct-01 12:43
suss22-Oct-01 12:43 
AnswerRe: Java - Whats the big deal? Pin
Nemanja Trifunovic22-Oct-01 12:53
Nemanja Trifunovic22-Oct-01 12:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.