1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
| <html>
<script type="text/javascript">
var persistmenu="yes" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only
if (document.getElementById){// retroune un élement par son id
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}
function SwitchMenu(obj){
if(document.getElementById){
var el = document.getElementById(obj);
var ar = document.getElementById("masterdiv").getElementsByTagName("span");
if(el.style.display != "block"){ //DynamicDrive.com change
for (var i=0; i<ar.length; i++){
if (ar[i].className=="submenu") //DynamicDrive.com change
ar[i].style.display = "none";
}
el.style.display = "block";
}else{
el.style.display = "none";
}
}
}
</script>
</head>
<!-- Keep all menus within masterdiv-->
<div id="masterdiv">
<div class="menutitle" onclick="SwitchMenu('sub1')"> <?php
$cnx = mysql_connect( "localhost", "root", "" ) ;
try {
$db = mysql_select_db( "ln" ) ;
}
catch (Exception $e)
{
die('Erreur : ' . $e->getMessage());
}
$sql_list_name="SELECT table_name FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = 'ln' ORDER BY table_name ASC";
$resul_list=mysql_query($sql_list_name);
$row = mysql_result($resul_list,9);
echo $row;?>
</div>
<span class="submenu" id="sub1">
<?php
$cnx = mysql_connect( "localhost", "root", "" ) ;
try {
$db = mysql_select_db( "ln" ) ;
}
catch (Exception $e)
{
die('Erreur : ' . $e->getMessage());
}
$sql_list_name="SELECT name_Pdt_Type FROM producttype ";
$resul_list=mysql_query($sql_list_name);
?>
</span>
<div class="menutitle" onclick="SwitchMenu('sub2')"><?php
$cnx = mysql_connect( "localhost", "root", "" ) ;
try {
$db = mysql_select_db( "ln" ) ;
}
catch (Exception $e)
{
die('Erreur : ' . $e->getMessage());
}
$sql_list_name="SELECT table_name FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = 'ln' ORDER BY table_name ASC";
// execution of the query
$resul_list=mysql_query($sql_list_name);
// to have the result
$row = mysql_result($resul_list,8);
echo $row;?> </div>
<span class="submenu" id="sub2">
- <a href=".php">Usage Terms</a><br>
- <a href="faqs.htm">DHTML FAQs</a><br>
- <a href="help.htm">Scripts FAQs</a>
</span>
<div class="menutitle" onclick="SwitchMenu('sub3')"><?php
$cnx = mysql_connect( "localhost", "root", "" ) ;
try {
$db = mysql_select_db( "ln" ) ;
}
catch (Exception $e)
{
die('Erreur : ' . $e->getMessage());
}
$sql_list_name="SELECT table_name FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = 'ln' ORDER BY table_name ASC";
$resul_list=mysql_query($sql_list_name);
$row = mysql_result($resul_list,1);
echo $row;?>
</div>
<span class="submenu" id="sub3">
- <a href="http://www.codingforums.com">Coding Forums</a><br>
</span>
<div class="menutitle" onclick="SwitchMenu('sub4')"><?php
$cnx = mysql_connect( "localhost", "root", "" ) ;
try {
$db = mysql_select_db( "ln" ) ;
}
catch (Exception $e)
{
die('Erreur : ' . $e->getMessage());
}
$sql_list_name="SELECT table_name FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = 'ln' ORDER BY table_name ASC";
$resul_list=mysql_query($sql_list_name);
$row = mysql_result($resul_list,0);
echo $row;
?>
</div>
<span class="submenu" id="sub4">
- <a href="http://www.javascriptkit.com">JavaScript Kit</a><br>
- <a href="http://www.freewarejava.com">Freewarejava</a><br>
- <a href="http://www.cooltext.com">Cool Text</a><br>
- <a href="http://www.google.com">Google.com</a>
</span>
<div class="menutitle" onclick="SwitchMenu('sub5')"> <?php
$cnx = mysql_connect( "localhost", "root", "" ) ;
try {
$db = mysql_select_db( "ln" ) ;
}
catch (Exception $e)
{
die('Erreur : ' . $e->getMessage());
}
$sql_list_name="SELECT table_name FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = 'ln' ORDER BY table_name ASC";
$resul_list=mysql_query($sql_list_name);
$row = mysql_result($resul_list,6);
echo $row;
?>
</div>
<span class="submenu" id="sub5">
- <a href="new.htm">What's New</a><br>
- <a href="hot.htm">What's hot</a><br>
- <a href="revised.htm">Revised Scripts</a><br>
- <a href="thiraivideo.com/">ca va</a>
</span>
<div class="menutitle" onclick="SwitchMenu('sub5')"> <?php
$cnx = mysql_connect( "localhost", "root", "" ) ;
try {
$db = mysql_select_db( "ln" ) ;
}
catch (Exception $e)
{
die('Erreur : ' . $e->getMessage());
}
$sql_list_name="SELECT table_name FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = 'ln' ORDER BY table_name ASC";
$resul_list=mysql_query($sql_list_name);
$row = mysql_result($resul_list,5);
echo $row;
?>
</div>
<span class="submenu" id="sub6">
- <a href="new.htm">What's New</a><br>
- <a href="hot.htm">What's hot</a><br>
- <a href="revised.htm">Revised Scripts</a><br>
- <a href="thiraivideo.com/">ca va</a>
</span>
<div class="menutitle" onclick="SwitchMenu('sub6')"> <?php
$cnx = mysql_connect( "localhost", "root", "" ) ;
try {
$db = mysql_select_db( "ln" ) ;
}
catch (Exception $e)
{
die('Erreur : ' . $e->getMessage());
}
$sql_list_name="SELECT table_name FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = 'ln' ORDER BY table_name ASC";
$resul_list=mysql_query($sql_list_name);
$row = mysql_result($resul_list,2);
echo $row;
?>
<div class="menutitle" onclick="SwitchMenu('sub10')">
<?php echo "joysey" ; ?>
</div>
<span class="submenu" id="sub6">
- <a href="new.htm">What's New</a><br>
- <a href="hot.htm">What's hot</a><br>
- <a href="revised.htm">Revised Scripts</a><br>
- <a href="thiraivideo.com/">ca va</a>
</span>
<div class="menutitle" onclick="SwitchMenu('sub7')"> <?php
$cnx = mysql_connect( "localhost", "root", "" ) ;
try {
$db = mysql_select_db( "ln" ) ;
}
catch (Exception $e)
{
die('Erreur : ' . $e->getMessage());
}
$sql_list_name="SELECT table_name FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = 'ln' ORDER BY table_name ASC";
$resul_list=mysql_query($sql_list_name);
$row = mysql_result($resul_list,3);
echo $row;
?>
</div>
<span class="submenu" id="sub7">
- <a href="new.htm">What's New</a><br>
- <a href="hot.htm">What's hot</a><br>
- <a href="revised.htm">Revised Scripts</a><br>
- <a href="thiraivideo.com/">ca va</a>
</span>
</div>
</html> |
Partager