<body> <script language="Javascript" type="text/javascript"> if(!navigator.javaEnabled()){ alert('Enable your java to expeirience this java enhanced page or\n try install it...'); location.replace('http://java.sun.com'); window.open('instructionsforintallingjava.html'); } else{ document.write('<applet watever></applet>'); } </script> <noscript> Enabled javascript please </noscript> </body>
location.replace('installing java.html');
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <title>www.daniweb.com</title> </head> <body> <noscript> <p> This site requires a browser that support <b>JavaScript</b>. </p> </noscript> <div id="div0"> <script type="text/javascript"> <!-- ( function() { var applet = "applet" if( "navigator" in window ) { if ( navigator.javaEnabled() ) { if ( "createElement" in document ) { return ( function( ) { applet = document.createElement( applet ); applet.setAttribute( "code", "someclass.class" ); document.getElementById("div0").appendChild((( document.createDocumentFragment()).appendChild( applet ))); } )( ); } document.writeln( "<" + applet + " code=\"someclass.class\"></" + applet + ">" ); return; } } alert( "Enable your java to experience this java enhanced page or\ntry install it..." ); location.href = "http://java.sun.com"; window.open( "instructionsforinstallingjava.html", "JAVA Installation Manual", "width=500, height=500, location=0, scrollbars=1, toolbar=0" ); } )( ); // --> </script> </div> </body> </html>
<?php $id = $_GET['Uniqueid']; $uname = $_GET['Username']; ?> <script language="JavaScript"> <!-- function test() { var UNI = document.applets.TestApp; var subor = UNI.getFile(); alert(subor); return false; } --> </script> <head> <body> <script language="Javascript" type="text/javascript"> if(!navigator.javaEnabled()){ alert('Enable your java to expeirience this java enhanced page or\n try install it...'); window.open('JAVAInstall.php'); //location.replace('http://java.sun.com'); location.replace('InstallingJAVA.html'); } </script> <noscript> Enabled javascript please </noscript> <?php $applet='<APPLET CODE = "CapturePlayback1.class" ARCHIVE = "CapturePlayback1.jar" WIDTH = "240" HEIGHT = "210" NAME = "Bxxx" MAYSCRIPT = true> <PARAM NAME="uid" VALUE="'.$id.'"> <PARAM NAME="uname" VALUE="'.$uname.'"> </APPLET> '; echo $applet; ?> </body> </head>
<?php
$id = $_GET['Uniqueid'];
$uname = $_GET['Username'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<title>W3C Standard Template :: HTML 4.01 ( loose-dtd )</title>
</head>
<body>
<noscript>
<p> This site requires a browser that support <b>JavaScript</b>. </p>
</noscript>
<div>
<script type="text/javascript">
<!--
( function( obj ) {
if ( "navigator" in window ) {
if ( navigator.javaEnabled() ) {
try {
if ( "createElement" in document ) {
var body = document.getElementsByTagName( "body" )[ 0 ];
var fragment = document.createDocumentFragment();
var isTag = obj.match(/(applet|param)(?=\s)/ig);
var isAttribute = obj.match(/(?!(applet|param)\s)\w+[\s=]+(^|)["\w\.]+(\w+)("|\w+(?=>))/ig);
var isAttribution = new Array( isAttribute.length );
for ( var i = 0; i < isAttribute.length; i++ ) {
var trimAttr = ( isAttribute[ i ].split(/[\s"]+/)).join("");
trimAttr = trimAttr.split("=");
isAttribution[ i ] = trimAttr;
} var node = new Array( isTag.length );
for ( var o = 0; o < isTag.length; o++ ) {
node[ o ] = document.createElement( isTag[ o ].toLowerCase() );
node[ 0 ].appendChild((( o > 0 ) ? node[ o ] : void( 0 )));
}
for ( var prop in isAttribution ) {
var props = isAttribution[ prop ];
var thisAttribute = props[ 0 ].toLowerCase();
if ( prop < 6 )
node[ 0 ].setAttribute( thisAttribute, props[ 1 ] );
else if ( prop < 8 )
node[ 1 ].setAttribute( thisAttribute, props[ 1 ] );
else
node[ 2 ].setAttribute( thisAttribute, props[ 1 ] );
}
body.appendChild(( fragment.appendChild( node[ 0 ] )));
return;
} throw "cantCreateElement";
} catch( e ) {
if ( e === "cantCreateElement" ) {
document.writeln( obj );
return;
}
}
} alert( "Enable your java to expeirience this java enhanced page or\n try install it..." );
location.href = "http://java.sun.com/";
window.open( "JAVAInstall.php", target = "_blank", "Installing JAVA Application", "width=500, height=500, location=0, toolbar=0,scrollbars=1");
}
} )( <?php
/* PHP Syntax */
print '\'<APPLET CODE= "CapturePlayback1.class" ARCHIVE = "CapturePlayback1.jar" WIDTH = "240" HEIGHT = "210" NAME = "Bxxx" MAYSCRIPT = true><PARAM NAME="uid" VALUE="'.$id.'"><PARAM NAME="uname" VALUE="'.$uname.'"></APPLET>\''; ?> );
// -->
</script>
</div>
</body>
</html>
<?php $id = $_GET['Uniqueid']; $uname = $_GET['Username']; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <title>Terry's Test Page PHP</title> </head> <body> <noscript> <p> This site requires a browser that support <b>JavaScript</b>. </p> </noscript> <div id="content"> <?php $applet = '<APPLET CODE= "CapturePlayback1.class" ARCHIVE = "CapturePlayback1.jar" WIDTH = "240" HEIGHT = "210" NAME = "Bxxx" MAYSCRIPT = true>'; $applet .= '<PARAM NAME="uname" VALUE="'.$id.'"><PARAM NAME="uname" VALUE="'.$uname.'"></APPLET>'; ?> <script type="text/javascript"> <!-- function parse( xml ) { try { var xmlDOM = new ActiveXObject("Microsoft.XMLDOM"); xmlDOM.async = "false"; xmlDOM.loadXML( xml ); } catch( e1 ) { try { var Applets = new DOMParser(); var xmlDOM = Applets.parseFromString( xml, "text/xml" ); } catch( e2 ) { var xmlDOM = 0; } } if ( xmlDOM ) { var clone = xmlDOM.documentElement; var div = document.getElementById( "content" ); var cloned = document.importNode( clone, true ) var fragment = document.createDocumentFragment(); fragment.appendChild( cloned ); div.appendChild( fragment ); } else { document.write( xml ); } } function welFormedApplet( Applet ) { if ( Applet ) { var pattern = /\w*\s*=\s*/g; var compiler = Applet.match( pattern ); var splitter = ( compiler.join("").split(/\s*=\s*/)); var x, len; for ( x = 0, len = compiler.length; x < len; x++ ) { Applet = Applet.replace( compiler[ x ], splitter[ x ] + "=" ); } var pattern = /\w+=\w+/g; compiler = Applet.match( pattern ); for ( x = 0, len = compiler.length; x < len; x++ ) { Applet = Applet.replace( compiler[ x ], String(( compiler[ x ].split("=") ).join("=\"") + "\"" )); } var pattern = /<param\s(\w+|\w+\-\w+)([\=\w\-\"\s\;\/]+)>/ig; compiler = Applet.match( pattern ); for ( x = 0, len = compiler.length; x < len; x++ ) { Applet = Applet.replace( compiler[ x ], String((compiler[ x ].split(">")).join(" />"))); } parse( Applet ); } } ( function() { var java; var alertMessage = "\nEnable your java to expeirience this java enhanced page."; try { java = ( window.navigator.javaEnabled() ) ? "enabled" : "disabled"; } catch( e ) { java = false; } if ( typeof( java ) !== "boolean" ) { if ( java === "enabled" ) { var applet = '<?php echo $applet; ?>'; welFormedApplet( applet ); return; } if ( confirm( "java-disabled : install it now?" )) { var javasun = new Image(); javasun.src = "http://java.sun.com"; window.location = javasun.src; } else { alert( alertMessage ); window.open( "JAVAInstall.php", "Installing JAVA Application", "width=500, height=500, location=0, toolbar=0,scrollbars=1" ); } return 0; } alert( "java-plugin is not supported in your browser\nfor more information plese visit : http://java.sun.com/" ); return 0; } )() //--> </script> </div> </body> </html>
is not attaching the files , i solved it, the problem is the uniqueid parameter $id = $_GET['Uniqueid']; is not generated, i don't no why it was happened but somehow i manage to solve it.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <title></title> </head> <body bgcolor="#ffffff"> <script language="Javascript" type="text/javascript"> if(!navigator.javaEnabled()){ alert('Enable your java to expeirience this java enhanced page or\n try install it...'); window.open( "http://www.java.com/en/download/index.jsp", "JAVA Installation Manual", "width=500, height=500, location=0, scrollbars=1, toolbar=0" ); } </script> <noscript> Enabled javascript please </noscript> <div id="body"> </div> </body> </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <title></title> </head> <body> <SCRIPT LANGUAGE="JavaScript"> var javawsInstalled = 0; var javaws142Installed=0; var javaws150Installed=0; var javaws160Installed = 0; isIE = "false"; if (navigator.mimeTypes && navigator.mimeTypes.length) { x = navigator.mimeTypes['application/x-java-jnlp-file']; if (x) { javawsInstalled = 1; javaws142Installed=1; javaws150Installed=1; javaws160Installed = 1; } } else { isIE = "true"; } </SCRIPT> <SCRIPT LANGUAGE="VBScript"> on error resume next If isIE = "true" Then If Not(IsObject(CreateObject("JavaWebStart.isInstalled"))) Then javawsInstalled = 0 Else javawsInstalled = 1 End If If Not(IsObject(CreateObject("JavaWebStart.isInstalled.1.4.2.0"))) Then javaws142Installed = 0 Else javaws142Installed = 1 End If If Not(IsObject(CreateObject("JavaWebStart.isInstalled.1.5.0.0"))) Then javaws150Installed = 0 Else javaws150Installed = 1 End If If Not(IsObject(CreateObject("JavaWebStart.isInstalled.1.6.0.0"))) Then javaws160Installed = 0 Else javaws160Installed = 1 End If End If </SCRIPT> <script language="JavaScript"> /* Note that the logic below always launches the JNLP application *if the browser is Gecko based. This is because it is not possible *to detect MIME type application/x-java-jnlp-file on Gecko-based browsers. */ if (javawsInstalled || (navigator.userAgent.indexOf("Gecko") !=-1)) { document.write(""); } else { window.alert("Please enable your java to experience this enhanced page. If you don't have java Version 6 update 12 or higher installed please install it by clicking the \"Free Java Download\" link in the next window and incase new window don't open then copy this url to adress bar and download java by clicking the \"Free Java Download\" \nhttp://www.java.com/en/download/index.jsp"); location.replace("Java2.html"); window.open( "http://www.java.com/en/download/index.jsp", '', "width=1000, height=1000, location=0, scrollbars=1, toolbar=0" ); } </SCRIPT> </body> </html>
| DaniWeb Message | |
| Cancel Changes | |