الكود بسيط و هو من صنع الاخ محمد خليل ابو صلاح لعمل قائمة بسيطة
المشكلة انه عند وضعها داخل لووب تحدث المشكلة ولا تعمل القائمة وهذا هو الكود:
<!--#include file="connection.inc"-->
<html dir="rtl">
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>index2</title>
<script language="javascript">
function show(){
// This code written by MOHD. ABU SALAH
// e-mail : mohd_kh_80@hotmail.com
var lesimg=""
if(lessons.className=="plus"){
lessons.innerHTML="هذه هي الدروس " +
" <OL> "+
"[img=opdrct.gif]
<style type="text/css">
<!--
a:actived{color:red; text-decoration:none;}
a:link{color:red; text-decoration:none;}
a:visited{color:red; text-decoration:none;}
a:hover{color:#123456; text-decoration:underline;}
-->
</style>
</head>
<body>
<% selectSQL="select * from adds order by add_date desc"
set rs=ADO.execute(selectSQL)
%>
<table align=center border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="31%">
<tr>
<td width="100%">
[img=../images/drct.gif]
<font face="Tahoma" style="font-size: 8pt; font-weight: 700" color="#FF9900">
<span lang="ar-sa" id=lessons class="plus">الدروس</span>
</font></td>
</tr>
</table>
<% do while not rs.eof
rs.movenext
loop
%>
</body></html>