DarkPrince2005 Posted November 13, 2007 Share Posted November 13, 2007 Is there a way that I can check if java is installed on a machine and if not to then download a java plugin Link to comment https://forums.phpfreaks.com/topic/77108-detecting-and-downloading-java-plugin/ Share on other sites More sharing options...
DarkPrince2005 Posted November 14, 2007 Author Share Posted November 14, 2007 I found this JavaScript script but,can anyone tell me why it's not working? echo " <html> <head> <title>Disciplinary: Report</title> <link rel='stylesheet' href='stylesheet.css' type='text/css'> <style> a:link{font-family:'Verdana'; color:'#000000'; font-weight:700; text-decoration:none; } a:visited{font-family:'Verdana'; color:'#000000'; font-weight:700; text-decoration:None; } a:hover{font-family:'Verdana'; text-decoration:none; color:'#B37A04'; font-weight:700; } a:active{font-family:'Verdana'; color:'#000000'; font-weight:700; } </style> </head><body bgcolor='#FDCC67' topmargin='0' bottommargin='0' leftmargin='0' rightmargin='0'>"; echo "<script language=\"Javascript\" type=\"text/javascript\">"; echo "if(!navigator.javaEnabled()){"; echo "alert('Enable your java to expirience this java enhanced page or\n try install it...');"; echo "location.replace(\'http://java.sun.com\');"; echo "} else{ } </script>"; echo " <table width='100%' height='100%' cellpadding='0' border='0' cellspacing='0'><tr><td valign='top' width='140' background='graphics/nav.gif'><br><center><font size=3>MENU</font><br><img src='graphics/NavSeparator.gif' width=130></center><br> <font size='2'><a href='home.html'> <img src='graphics/NavBullet.gif' border=0> Home</a></font><br><br> <font size='2'><a href='view.php'> <img src='graphics/NavBullet.gif' border=0> View Records</a></font><br><br> <font size='2'><a href='add.html'> <img src='graphics/NavBullet.gif' border=0> Add Record</a></font><br><br> <font size='2'><a href='edit.html'> <img src='graphics/NavBullet.gif' border=0> Edit Record</a></font><br><br> <font size='2'><a href='delete.html'> <img src='graphics/NavBullet.gif' border=0> Delete Record</a></font><br><br> <font size='2'><a href='datereport.html'> <img src='graphics/NavBullet.gif' border=0> View Report</a></font><br><br> <font size='2'><a href='q.html'> <img src='graphics/NavBullet.gif' border=0> Query Report</a></font><br><br> <font size='2'><a href='search1.html'> <img src='graphics/NavBullet.gif' border=0> Search</a></font><br><br><br><center><img src='graphics/NavSeparator.gif' width=130></center><br></td> <td> <center> <table width=600> <tr><td colspan='2' align='center' bgcolor='#FFAC00'><a name='top'><a href='report1.php#occupation'>Occupation</a> | <a href='report1.php#region'>Region</a> | <a href='report1.php#levels'>Levels</a> | <a href='report1.php#race'>Race & Gender</a></td> </tr> <tr> <td colspan='2'><h1>Disciplinary Hearings</h1></td> </tr>... Link to comment https://forums.phpfreaks.com/topic/77108-detecting-and-downloading-java-plugin/#findComment-391198 Share on other sites More sharing options...
DarkPrince2005 Posted November 14, 2007 Author Share Posted November 14, 2007 am I maybe inserting the javascript incorrectly? Link to comment https://forums.phpfreaks.com/topic/77108-detecting-and-downloading-java-plugin/#findComment-391262 Share on other sites More sharing options...
DarkPrince2005 Posted November 15, 2007 Author Share Posted November 15, 2007 I have tried a great variety of ways to make it work but it doesn't seem to do anything Link to comment https://forums.phpfreaks.com/topic/77108-detecting-and-downloading-java-plugin/#findComment-391989 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.